Skip to content

unset prop value in api#2187

Open
mquantin wants to merge 4 commits intoomeka:developfrom
mquantin:unset_prop_in_api
Open

unset prop value in api#2187
mquantin wants to merge 4 commits intoomeka:developfrom
mquantin:unset_prop_in_api

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