#867: WebStyle: "Restricted" flag to be displayed more accurately
-----------------------+----------------------
Reporter: jcaffaro | Owner: jcaffaro
Type: defect | Status: new
Priority: minor | Milestone:
Component: WebStyle | Version:
Keywords: websearch |
-----------------------+----------------------
A "Restricted" flag is displayed on each detailed record which is
considered as restricted. The current implementation checks the
restriction using the search_engine.record_public_p() function, with the
consequence that records that belongs only to virtual collections will
erroneously feature this flag.
The code in webstyle_templates.detailed_record_container_top()
(source:modules/webstyle/lib/webstyle_templates.py@06eea92e18a90be1727cf85122b17da442b4c863#L725)
should be updated to consider the above case. For speed reasons it will be
good to wait for branch invenio-rajimene/711-system-collections (#711) to
be available in order to rely on pre-created system collection of public
(or restricted) records.
--
Ticket URL: <http://invenio-software.org/ticket/867>
Invenio <http://invenio-software.org>