Bug 29406: Improve display of OPAC suppression message
authorOwen <oleonard@myacpl.org>
Wed, 3 Nov 2021 15:27:26 +0000 (15:27 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 2 Dec 2021 06:19:59 +0000 (20:19 -1000)
commitffdf994057e9fdaac93f715d208faf1b52ad21dd
tree3c343d89837a50e7cd4add8a539980287fcd8be7
parent6f1082166e90429e6d3b00c8351c1d46f42c1592
Bug 29406: Improve display of OPAC suppression message

This patch changes the way the "Suppressed in OPAC" message is shown on
the staff interface search results and the bibliographic detail page.
Now the information is displayed like other bibliographic details.

To test, apply the patch and restart services.

- Enable the OpacSuppression system preference and modify at least one
  record to be suppressed in the OPAC (942$n in MARC21).
- Perform a catalog search which will return this record in the staff
  client.
- The entry for that record in the search results should include the
  message "Suppressed in OPAC" at the bottom of the list of other
  bibliographic details.
- View the details for that record. You should see a line labeled "OPAC
  view" It should say "Suppressed in OPAC."
- Test a record which is not suppressed. If you have OPACBaseURL
  populated you should see "OPAC view: Open in new window."

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl