Hello Alan,

you may create your own curation task using required metadata as a template.
There are further option, the db and oai:

a) query the db:

All Items missing a metadata field
SELECT item_id FROM  item WHERE in_archive=true AND item_id NOT IN
(SELECT item_id FROM metadatavalue WHERE
metadata_field_id=[METADATAFIELDID]) ORDER BY item_id ;

All Items in a specific collection missing a metadata field
SELECT item_id FROM  item WHERE in_archive=true AND
owning_collection=[COLLECTIONID] AND item_id NOT IN (SELECT item_id FROM
metadatavalue WHERE metadata_field_id=[METADATAFIELDID]) ORDER BY item_id ;

Just replace [METADATAFIELDID] and [COLLECITONIID] with the right values.

b) oai
Create an own context or just a set use the
DSpaceAtLeastOneMetadataFilter in combination with the notFilter.


Hope this helps

Claudia Jürgen

Am 07.05.2017 um 16:13 schrieb Alan Orth:
Hello,

I'm interested in using the `requiredmetadata` curation task to find items
missing required metadata in a community/collection:

$ [dspace]/bin/dspace curate -t requiredmetadata -i 10568/2 -r -

This works, but stops when it finds an item that is missing required
metadata. According to the documentation[0] this is by design, but I want
to know how to run this task more like a report, to find all items missing
required metadata so I can fix them in a batch script.

How are people solving this issue? We are running DSpace 5.5 with
PostgreSQL.

Thanks,

[0]
https://wiki.duraspace.org/display/DSDOC5x/Curation+System#CurationSystem-RequiredMetadata

--
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia.juer...@tu-dortmund.de
www.ub.tu-dortmund.de

Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist 
ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese 
E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und 
vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen 
ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform 
(mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen 
Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is 
solely intended for the recipient. If you are not the intended recipient of 
this e-mail please contact the sender and delete this message. Thank you. 
Without prejudice of e-mail correspondence, our statements are only legally 
binding when they are made in the conventional written form (with personal 
signature) or when such documents are sent by fax.

--
You received this message because you are subscribed to the Google Groups "DSpace 
Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to