Usage: dscacher.py [options]

 

Options:

  --version             show program's version number and exit

  -h, --help            show this help message and exit

  -q, --quiet           

  -v, --verbose         

  -d, --debug           

  -p, --pretty          pretty-print JSON or XML output

 

  Actions:

    -l, --links         list document resources with DSpace link

    -m, --missing       list document resources without DSpace link

    -u, --update-all    update existing metadata for all resources

    -a, --fetch-all     fetch metadata from DSpace for all resources without

    -f UUID, --fetch=UUID

                        fetch/update metadata from DSpace for this UUID

    -j UUID, --json=UUID

                        show metadata for this UUID (as JSON)

    -x UUID, --xml=UUID

                        show metadata for this UUID (as XML)

    -i, --iso-all       set ISO language code from cached DSpace metadata

 

    

The `dscacher.py` program tries to find or update DSpace Dublin Core metadata based on the handle link that can be added to the editor. It uses the SimpleREST interface and caches JSON inside the editor's database.

 

This metadata is used for exporting and setting valid language ISO tags; it can be used for setting other (editor) metadata such as title and author (work in progress).

 

It can also show the metadata for a document as JSON or XML.

 

This command is only useful for documents that actually have DSpace metadata and a handle link to the relevant item in the DSpace database.

 

 

  • No labels