PHPackages                             discoverygarden/dgi\_standard\_derivative\_examiner - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. discoverygarden/dgi\_standard\_derivative\_examiner

ActiveDrupal-module[Utility &amp; Helpers](/categories/utility)

discoverygarden/dgi\_standard\_derivative\_examiner
===================================================

v2.1.0(4mo ago)03094[1 PRs](https://github.com/discoverygarden/dgi_standard_derivative_examiner/pulls)1GPL-3.0-or-laterPHPCI passing

Since Mar 21Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/discoverygarden/dgi_standard_derivative_examiner)[ Packagist](https://packagist.org/packages/discoverygarden/dgi_standard_derivative_examiner)[ RSS](/packages/discoverygarden-dgi-standard-derivative-examiner/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (15)Used By (1)

DGI Standard Derivative Examiner
================================

[](#dgi-standard-derivative-examiner)

Introduction
------------

[](#introduction)

Provides tools for identifying missing derivatives given DGI's standard content model.

Requirements
------------

[](#requirements)

This module requires the following modules/libraries:

- [Islandora](https://www.github.com/islandora/islandora)

Installation
------------

[](#installation)

Install as usual, see [this](https://www.drupal.org/docs/extending-drupal/installing-modules) for further information.

Usage
-----

[](#usage)

The `dgi-standard-derivative-examiner:derive` command accepts a CSV-like structure with the first column representing the node IDs to process.

```
$ ddev drush dgi-standard-derivative-examiner:derive --help
Given node IDs on stdin, report on or derive derivatives.

Outputs to STDOUT.

Options:
 --dry-run                       Flag to avoid making changes.
 --model-uri=MODEL-URI           One (or more, comma-separated) model URIs to which to filter.
 --source-use-uri=SOURCE-USE-URI One (or more, comma-separated) media use URIs to which to filter.
 --dest-use-uri=DEST-USE-URI     One (or more, comma-separated) media use URIs to which to filter.
 --fields[=FIELDS]               Comma-separated listing of fields. [default: nid,model_uri,model_plugin,target_plugin,target_uri,expected,exists,message]
 --force                         Flag to force triggering derivative action even if the derivative exists.
 --output-header                 Flag, output header CSV row.
--u, --user=USER                 The Drupal user as whom to run the command.

[...]

Aliases: dsde:d

```

Patterns of execution might look like:

```
drush sql:query "select nid from node where type = 'islandora_object';" > nodes.csv
drush dgi-standard-derivative-examiner:derive --user=1
