#1085: model for entry category info in schema

opened by tcatapano

related to #819, integrating entry terms into the markup, I see at least 3 options:

  1. a category attribute with multiple values separated by pipes

<div id="p005r_1" category="casting|metal process|practical optics" >

  1. a category1, category2 annd category3 attributes each with a single value

<div id="p005r_1" category1="casting" category2="metal process" category3="practical optics" > 3. repeatable empty <category> child elements with value attributes containing a single category term

``` <div id="p005r_1"> <category term="casting"/> <category term="metal process"/> <category term="practical optics"/>

```

@NickLaiacona do you have any preferences?


NickLaiacona commented:

We're currently drawing the data from here:

https://github.com/cu-mkp/m-k-manuscript-data/blob/master/metadata/entry_metadata.tsv

Will your code add the categories to this csv?


tcatapano commented:

Actually, the most up to date entry metadata table is here:

https://github.com/cu-mkp/m-k-manuscript-data/blob/master/metadata/DCE_entry-category-metadata.csv

The aim of this task is to add the category terms into the XML markup so that the transcriptions and translations contain this info rather than it be completely external. It can, but does not need to replace a lookup table for your purposes. If you think it would be too onerous for you to draw from the XML data rather than a table in building the entry list feature, we can continue to maintain a lookup table, in which case this issue is irrelevant for you.