LibreCat / Dancer-Plugin-Catmandu-OAI

OAI-PMH provider backed by a searchable Catmandu::Store
http://librecat.org
2 stars 1 forks source link

More elements in the XML response for Identify #13

Closed snorri closed 7 years ago

snorri commented 7 years ago

The following are allowed but can't be specified in the plugin:

nicolasfranck commented 7 years ago

I agree with the first two options. I'll see to it. The description can be easily solved by just dropping a (list of) description(s) from the config. It's not so hard to put xml-data in your yaml config. Why should a template be necessary?

nicolasfranck commented 7 years ago

See https://github.com/LibreCat/Dancer-Plugin-Catmandu-OAI/pull/14

snorri commented 7 years ago

No, probably it can work and is easier having it in the config. But how would you distinguish between what should be an attribute and what should be a sub-element in YAML? Use always arrays for elements and single values for attributes?

nicolasfranck commented 7 years ago

oh no, in the pull request ( as mentioned above ), one can just drop the xml data in the YAML config. No need to convert from hash to XML. Although it's not easy in the current YAML implementation for perl to embed XML ( you have to put everything on one line ).

nics commented 7 years ago

Included in release 0.0401