Homec4science

WebStyle: more accurate "Restricted" flag display

Authored by Jerome Caffaro <jerome.caffaro@cern.ch> on Mar 19 2013, 09:30.

Description

WebStyle: more accurate "Restricted" flag display

  • Rely on search_engine.get_restricted_collections_for_recid(..) and search_engine.is_record_in_any_collection(..) in order to test if restricted flag should be displayed or not, instead of search_engine.record_public_p(..). It avoids displaying the flag when the record belong to a collection not directly searchable from the home collection. It allows to display an alternative flag when the record has not been fully integrated (not linked to any collection). It also display the restricted flag on record belonging to both a restricted collection and a public collection searchable from the home tree. (addresses #867)
  • Added regression test for record belonging to both a public and a restricted collection.

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Mar 19 2013, 14:12
Parents
R3600:c1cbe6bb3316: installation: oaiREPOSITORY_last_updated upgrade
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:19c6c59d1961: WebStyle: more accurate "Restricted" flag display (authored by Jerome Caffaro <jerome.caffaro@cern.ch>).Mar 19 2013, 14:12