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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 1 Jul 2022 12:17:20 +0000 (09:17 -0300)
commit0efae9ed0565aac7ade8b9febfcd0e44fe35d420
tree0bdcfb6b601c2a6cde6f7b4dd13e8e44b1ce0f2b
parent8c926c976a7a5057c578d8f5d41f4cdaa1d8ab5e
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>
Koha/Biblio.pm
opac/opac-detail.pl