Closed orangewolf closed 4 months ago
I'm just curious if there's a reason that https://github.com/samvera-labs/order_already couldn't be used in this situation?
My understanding is that OrderAlready orders items with in a field (think multiple author names ["Rob", "LaRita", "Shana"]. This is across works: Book -> Attachment 1 -> Attachment 2 -> Attachment 3
Normally attachments would simply appear in the order they are added. But we need to be able to reorder them. So we are setting a sequence number on each Attachment and then we are displaying them in the sequence order. The Allinsonflex is here:
sequence:
available_on:
class:
- Attachment
- GenericWork
- Image
- Video
- Audio
- Pdf
- Book
- CompoundObject
- Newspaper
cardinality:
maximum: 1
minimum: 0
multi_value: true
controlled_values:
format: http://www.w3.org/2001/XMLSchema#integer
sources:
- 'null'
definition:
default: Numberic order in which to display pages or other items
display_label:
default: Sequence
index_documentation: displayable, stored_searchable
indexing:
- displayable
- stored_searchable
mappings: {}
property_uri: http://www.w3.org/2003/12/exif/ns#xResolution
range: http://www.w3.org/2001/XMLSchema#integer
requirement: optional
mappings:
blacklight: sequence_sim
mods_oai_pmh: mods:sequence
qualified_dc_pmh: dcterms:sequence
simple_dc_pmh: dc:sequence
I'm just curious if there's a reason that https://github.com/samvera-labs/order_already couldn't be used in this situation?