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

unset prop value in api #2187

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Conversation

mquantin
Copy link

This light and simple api method allows to unset a value (property) in an item representation.

  • Because it's better than filter it xx times in loops
  • Because values of item representation are protected
  • Because the view file can't do such filtering (with parameters)
  • Because it does not affect the item itself, so it is safe

thx

@zerocrates
Copy link
Member

Where are you'd thinking you'd use this, in a theme, something like that?

@mquantin
Copy link
Author

yes exactly ! in a theme. dedicated to CIDOC CRM (event oriented data modeling)
I display side-by-side the object (1 omeka resource) and events (1 omeka resource for each) of its life-cycle.
As the object and its life-cycle events are on the same page, it is useless to display the property saying "this event concerns this object". It is implicit.
The easiest and cleanest way is to modify the item representation.

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

Successfully merging this pull request may close these issues.

2 participants