ProjectMirador / m1

An open-source, web-based 'multi-up' viewer that supports zoom-pan-rotate functionality, ability to display/compare simple images, and images with annotations. This repository is no longer maintained, for further project details, see the latest version at http://github.com/IIIF/mirador.
Other
40 stars 9 forks source link

Metadata elements should be repeatable #118

Open regisrob opened 10 years ago

regisrob commented 10 years ago

When you have several metadata elements with the same label (e.g. multiple "Author"), only the last one is displayed in metadataView.

azaroth42 commented 10 years ago

+1 A workaround would be to have a list for the value:

  {"label": "Author", "value": ["Froissart", "Jehan le Bel", "anonymous chronicler A"]}
regisrob commented 10 years ago

Yes it works with a list. Just need a quick (and dirty) workaround in $.stringifyObject https://github.com/IIIF/mirador/blob/master/js/src/mirador.js#L207 to remove the brackets and do some basic formatting (e.g. an html list)