tuub / kitodo-mediaserver

Kitodo Mediaserver
GNU General Public License v3.0
7 stars 6 forks source link

Add METS/MODS file entry for full PDF #205

Closed ponchofiesta closed 5 years ago

ponchofiesta commented 5 years ago

In Kitodo.Presentation and DFG-Viewer we need an entry for our all-images-in-one-PDF file. As Kitodo.Production can not do it, the Mediaserver should add an Action to do the job on work import.

This is needed for #198 to make it work.

ponchofiesta commented 5 years ago

This adds the IMetsTransformer interface and the XsltMetsTransformer implementation to transform one XML file to another using a xslt file.

The new AddFullPdfToMetsAction transforms the METS file using this transformer. It provides the xslt parameters rootUrl and workId. So you can easily configure the full PDF URL in the xslt file.

This action can be activated in local.yml:

  actionsBeforeIndexing:
    - addFullPdfToMetsAction

The XsltMetsTransformer could be used for the "METS reduction" task too.