upenndigitalscholarship / deep

MIT License
3 stars 1 forks source link

Move Variants (but NOT Variant Links) from Item to Edition level #150

Closed ZacharyLesser closed 8 months ago

ZacharyLesser commented 1 year ago

The text in the Variants field should be made identical across all the items in the same edition, so that this data can live at the Edition level, making it much easier to edit. As is, it is NEARLY identical but with the exception that a very few records are slightly different in that they do not link to another record and hence do not have "See also DEEP" at the end. I think that's the only differences among Items in the same Edition.

So to make this shift:

1) check all Items within the same Edition, for each Edition, and check if there are any differences in the data in Variants. Let us know all Items that DO have some differences

2) we will then deal with those (few) Items with differences

3) move the field and its data to the Edition level

4) We will now need to add "See also DEEP" in the code instead of having it in the Variants field itself. For any item with a record in the "Variant links" field (which must remain at Item level), the code should add "See also DEEP" and then add the DEEP number of the Items in "Variants links", separated by semicolon, just like it does now. The only change here is also having it add "See also DEEP" before the first DEEP number.