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>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Aleisha Amohia 2023-11-14 04:49:14 +00:00 committed by Katrin Fischer
parent 63b61e34b3
commit 75275ec291
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
2 changed files with 60 additions and 0 deletions

View file

@ -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 %]

View file

@ -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 %]