Bug 30918: Allow passing filtered record to get_marc_notes
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 7 Jun 2022 12:45:14 +0000 (13:45 +0100)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Thu, 11 Aug 2022 15:05:40 +0000 (17:05 +0200)
commitf5b7ad6ef35aabda51e4e80decfb2732858aa631
tree8c87270433fae6e872166e4c28c4760462af4bb0
parentb10ac8189facd7b6e36f986dd392730a27b7ccbd
Bug 30918: Allow passing filtered record to get_marc_notes

This patch does the absolute bare minimum to prevent private notes from
appearing on the OPAC.

Test plan
1. Go to Koha Administration -> Koha bibliographic frameworks
2. View the MARC structure for your BKS framework (or something else)
3. Search for tag 583, edit subfields
4. Go to subfield 'x' - nonpublic note. Confirm the OPAC visibility
   checkbox is UNCHECKED.
5. Edit or create a record using the BKS framework. Put a note in the
   583$x.
6. View this record in the OPAC
7. Go to the Title notes tab. Confirm the non-public note is
   showing, even though the framework says it should not be
   visible via the OPAC.
8. Apply patch
9. Confirm the non-public note is no longer visible

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 0efae9ed0565aac7ade8b9febfcd0e44fe35d420)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 2ad8c15dbf41e738f7cc14adcd23befdf053a62a)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Koha/Biblio.pm
opac/opac-detail.pl