Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flexible order of entries in metadata panel #438

Closed
jfrer opened this issue May 16, 2024 · 4 comments
Closed

Flexible order of entries in metadata panel #438

jfrer opened this issue May 16, 2024 · 4 comments
Assignees
Labels

Comments

@jfrer
Copy link
Collaborator

jfrer commented May 16, 2024

In GitLab by @mweidling on May 16, 2024, 08:21

Currently the order of entries in the metadata panel is hard-coded. In some cases it makes sense to have a different order than intended by TIDO.

Currently, the only way to achieve another order is to mess around with the TextAPI and heavily use the Metadata Object to achieve the sorting a project wants. It would be better to make the display order configurable.

Relevant projects:

  • EUPT
@jfrer
Copy link
Collaborator Author

jfrer commented May 16, 2024

In GitLab by @mweidling on May 16, 2024, 08:50

mentioned in issue subugoe/eupt/eupt-textapi#14

@orlinmalkja orlinmalkja self-assigned this Oct 9, 2024
@orlinmalkja
Copy link
Contributor

I think that the AC for this issue should be as following:

  • Flexible order of metadata between different document types: collection, manifest, item
  • Flexible order of metadata items within a document type
    The user config would be like the following in the options of metadata panel:
    "orderDocumentsTypes": ["item", "collection", "metadata"] -> first show the metadata of item, then collection ...
    "orderCollectionMetadata": ['title','collector', 'description'],
    "orderManifestMetadata": ['Label', 'License', 'Date of creation', 'Place of origin', 'Current location', 'TEI document'],
    "orderItemMetadata": ['label', 'language', 'image_license', 'image_notes']

What do you think about the AC ? @mweidling @paulpestov

@mweidling
Copy link
Contributor

From my point of view this would be sufficient (for now that is–who know what will come next ;) ).

@paulpestov
Copy link
Collaborator

paulpestov commented Nov 26, 2024

Sounds reasonable, although we will have to revisit this again when dealing with translations. One small thing: I think the ...Metadata ending of the keys is redundant since we already know that we are in the metadata config options, so just orderCollection should be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants