https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8331 Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |44284 Status|ASSIGNED |Needs Signoff --- Comment #14 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Following the approach discussed on bug 44284 (let Koha::Filter::MARC::ViewPolicy decide what the staff interface hides), this patch makes the remaining staff views load the record with Koha::Biblio->metadata_record( { interface => 'intranet' } ): * Normal view (catalogue/detail.pl): the filtered record is used for the whole page, as opac-detail.pl already does. * Labeled MARC view (catalogue/labeledMARCdetail.pl): also leaked hidden subfields. It uses the framework picked in the 'With framework' menu, through the frameworkcode parameter bug 44284 adds to metadata_record. Hence the dependency. * Plain MARC view (catalogue/showmarc.pl): all formats (plain, 'html' and 'card') are filtered. The 'html' and 'card' formats used to re-read the raw XML with GetXmlBiblio; they now use the filtered record. Two deliberate exceptions: * showmarc.pl is also used by the merge records page. Cataloguers need to see everything they are about to merge, so merge.tt now requests the full record with unfiltered=1. Import/Z39.50 records (importid=) are not filtered either. * svc/records/preview is left unfiltered, as discussed in comment 8: batch modification needs to show the full record so nothing is changed unknowingly. Tested in KTD hiding BKS 245$c from the staff interface: with the patch it is hidden in the normal, plain MARC (all formats), labeled MARC, MARC and ISBD views, and still shown in the merge preview, in svc/records/preview and in the labeled view with the Default framework. Without the patch it shows in the normal, plain MARC (all formats) and labeled MARC views. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44284 [Bug 44284] MARC view in the staff interface hides subfields whose visibility is -5 (OPAC, staff interface, collapsed) -- You are receiving this mail because: You are watching all bug changes.