Bugzilla – Attachment 160591 Details for
Bug 35328
Add a notes pop-up for authority records to authority search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35328: Add a notes pop-up for authority records to authority search results
Bug-35328-Add-a-notes-pop-up-for-authority-records.patch (text/plain), 5.30 KB, created by
Nick Clemens (kidclamp)
on 2024-01-05 20:15:39 UTC
(
hide
)
Description:
Bug 35328: Add a notes pop-up for authority records to authority search results
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-01-05 20:15:39 UTC
Size:
5.30 KB
patch
obsolete
>From bf60f51dc5be08a4fb71eb5e3d96c06335b9e28d Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleisha@catalyst.net.nz> >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 <phil@chetcolibrary.org> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > .../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 @@ > </div> > [% END %] > [% ELSE %] >+ [% IF summary.notes.size %] >+ <div class="authres_notes"> >+ [% PROCESS notesmodal notes=summary.notes authid=authid %] >+ <span><a href="#" data-toggle="modal" data-target="#notesModal_[% authid | html %]">Notes</a></span> >+ </div> >+ [% END %] > [% IF ( summary.seefrom.size >= 1 ) %] > <div class="seefrom"> > <span class="seefrom">used for/see from:</span> >@@ -152,3 +158,27 @@ > [% CASE %]<span>[% lang | html %]</span> > [% END %] > [% END %] >+ >+[% BLOCK notesmodal %] >+<!-- notes modal --> >+<div style='font-style:normal;' class="modal fade notesModal" id="notesModal_[% authid | html %]" tabindex="-1" role="dialog" aria-labelledby="notesModalLabel"> >+ <div class="modal-dialog" role="document"> >+ <div class="modal-content"> >+ <div class="modal-header"> >+ <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">Ã</button> >+ <h4 class="modal-title" id="notesModalLabel">Notes</h4> >+ </div> >+ <div class="modal-body"> >+ <ul> >+ [% FOREACH note IN notes %] >+ <li>[% note.note | html %]</li> >+ [% END %] >+ </ul> >+ </div> >+ <div class="modal-footer"> >+ <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> >+ </div> >+ </div> >+ </div> >+</div> >+[% 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 @@ > </div> > [% END %] > [% ELSE %] >+ [% IF summary.notes.size %] >+ <div class="authres_notes"> >+ [% PROCESS notesmodal notes=summary.notes authid=authid %] >+ <span><a href="#" data-toggle="modal" data-target="#notesModal_[% authid | html %]">Notes</a></span> >+ </div> >+ [% END %] > [% IF ( summary.seefrom.size >= 1 ) %] > <span class="seefrom">used for/see from:</span> > [% FOREACH seefro IN summary.seefrom %] >@@ -119,3 +125,27 @@ > [% END # / IF marcflavour = 'UNIMARC' %] > [% END # / UNLESS summary.summaryonly %] > [% END # / BLOCK authresult %] >+ >+[% BLOCK notesmodal %] >+<!-- notes modal --> >+<div style='font-style:normal;' class="modal fade notesModal" id="notesModal_[% authid | html %]" tabindex="-1" role="dialog" aria-labelledby="notesModalLabel"> >+ <div class="modal-dialog" role="document"> >+ <div class="modal-content"> >+ <div class="modal-header"> >+ <h4 class="modal-title" id="notesModalLabel">Notes</h4> >+ <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">Ã</button> >+ </div> >+ <div class="modal-body"> >+ <ul> >+ [% FOREACH note IN notes %] >+ <li>[% note.note | html %]</li> >+ [% END %] >+ </ul> >+ </div> >+ <div class="modal-footer"> >+ <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> >+ </div> >+ </div> >+ </div> >+</div> >+[% END %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35328
:
158902
|
158959
| 160591