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

Metadata helpers #4

Open
stephenwf opened this issue Mar 21, 2022 · 0 comments
Open

Metadata helpers #4

stephenwf opened this issue Mar 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@stephenwf
Copy link
Member

stephenwf commented Mar 21, 2022

Similar to refs (#8) metadata is a field type that could be cumbersome to update all at once (in a reactive setting).
Where you currently can only replace the entire metadata value:

vault.setEntityValue(manifest, 'metadata', newArray);

We could split this:

vault.addMetadata(manifest, atIndex);
vault.removeMetadata(manifest, index);
vault.updateMetadata(manifest, atIndex, newValue);
vault.reorderMetadata(manifest, startIndex, endIndex);
@stephenwf stephenwf added the enhancement New feature or request label Mar 21, 2022
@stephenwf stephenwf mentioned this issue Aug 2, 2022
3 tasks
@stephenwf stephenwf transferred this issue from IIIF-Commons/vault Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant