Skip to content

Instantly share code, notes, and snippets.

@atz
Last active June 5, 2017 17:40
Show Gist options
  • Save atz/7e21e9500268e72479f2b473ac45972d to your computer and use it in GitHub Desktop.
Save atz/7e21e9500268e72479f2b473ac45972d to your computer and use it in GitHub Desktop.
Addressing Lease/Embargo (and other) Visibility constraints in Samvera
SAMVERA PROPOSAL:
"Scope of visibility" questions should resolve to (multivalued) date range fields:
~ visibility_public_drsim
~ visibility_institution_drsim
~ etc.
For each non-private vis. type the user has access to, queries of the form, e.g.:
"-visibility_public_drsim:[* TO *] OR visibility_public_drsim:NOW"
That is to say: "either it doesn't have visibility_public date period, or that period intersects now"
Advantages:
~ solves the complete problem.
~ combines both lease and embargo elements, allows multiples of each if desired
~ allows calendar visualization from indexed doc, both user and admin views
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment