From ffdf994057e9fdaac93f715d208faf1b52ad21dd Mon Sep 17 00:00:00 2001 From: Owen Date: Wed, 3 Nov 2021 15:27:26 +0000 Subject: [PATCH] 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 Signed-off-by: Nick Clemens Signed-off-by: Fridolin Somers --- .../en/xslt/MARC21slim2intranetDetail.xsl | 30 +++++++++++-------- .../en/xslt/MARC21slim2intranetResults.xsl | 15 +++++----- 2 files changed, 26 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index d7cdb80a03..6983988867 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -97,13 +97,6 @@ - - - - Suppressed in OPAC - - - @@ -1428,11 +1421,24 @@ - - OPAC view: - /cgi-bin/koha/opac-detail.pl?biblionumber=_blankOpen in new window. - - + + + + + OPAC view: + Suppressed in OPAC + + + + + OPAC view: + /cgi-bin/koha/opac-detail.pl?biblionumber=_blankOpen in new window. + + + + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl index aa11b41975..ab6bbb9530 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl @@ -283,13 +283,6 @@ --> - - - - Suppressed in OPAC - - - @@ -1016,6 +1009,14 @@ + + + + + Suppressed in OPAC + + + -- 2.20.1