From bf60f51dc5be08a4fb71eb5e3d96c06335b9e28d Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 14 Nov 2023 04:49:14 +0000 Subject: [PATCH] Bug 35328: Add a notes pop-up for authority records to authority search results This enhancement makes authority record notes (6xx) more accessible in a special Notes pop-up, available in all authority search result lists. To test: 1) In the staff interface, go to the Authorities module and conduct a search. Any records with 6xx fields should show with an italicised Notes link under the heading. Click on the Notes link for each record and confirm the correct notes for that record show. 2) Test this in the following staff interface pages: - authority plugin when cataloguing a biblio record - batch authority record modification - batch authority record deletion 3) Test the Notes pop-up is available in the OPAC authority search 4) Confirm the Notes link does NOT show if there is no 6xx field in the record Sponsored-by: Education Services Australia SCIS Signed-off-by: Phil Ringnalda Signed-off-by: Nick Clemens --- .../includes/authorities-search-results.inc | 30 +++++++++++++++++++ .../includes/authorities-search-results.inc | 30 +++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc index 5d7d2004f86..74f6e72fd04 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc @@ -112,6 +112,12 @@ [% END %] [% ELSE %] + [% IF summary.notes.size %] +
+ [% PROCESS notesmodal notes=summary.notes authid=authid %] + Notes +
+ [% END %] [% IF ( summary.seefrom.size >= 1 ) %]
used for/see from: @@ -152,3 +158,27 @@ [% CASE %][% lang | html %] [% END %] [% END %] + +[% BLOCK notesmodal %] + + +[% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc index 934cb46a60d..305a0bc3cc5 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc @@ -98,6 +98,12 @@
[% END %] [% ELSE %] + [% IF summary.notes.size %] +
+ [% PROCESS notesmodal notes=summary.notes authid=authid %] + Notes +
+ [% END %] [% IF ( summary.seefrom.size >= 1 ) %] used for/see from: [% FOREACH seefro IN summary.seefrom %] @@ -119,3 +125,27 @@ [% END # / IF marcflavour = 'UNIMARC' %] [% END # / UNLESS summary.summaryonly %] [% END # / BLOCK authresult %] + +[% BLOCK notesmodal %] + + +[% END %] -- 2.30.2