OD1 Migration Tools Examples - OregonDigital/hyrax-migrator GitHub Wiki

Example commands to make a pidlist for a given collection:

Dump by collection:

# Use asset-search tool in od-migration-tools
$ ./asset-search -d ./searchdata/
>
# use refine command to filter
# refine operates on current set and can be repeated
> refine collection http://oregondigital.org/resource/oregondigital:osu-baseball
> refine intact #filters out destroyed items
> refine reviewed #filters out unreviewed items
> refine parent #only cpds
> refine noparent #no cpds
> refine date created >= xxxx-xx-xx
> refine date modified >= xxxx-xx-xx

# note that when providing a filename, only letters, numbers, and underscore may be used
# dump all the pids with collection to file named osubaseball.yml
> dump pidsbycollection osubaseball

# dump all pids without collection to file
> dump pids osubaseball

# reset to do a new search
> new

> exit

# inspect output
$ less searchdata/osubaseball.yml