https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44284 Bug ID: 44284 Summary: MARC view in the staff interface hides subfields whose visibility is -5 (OPAC, staff interface, collapsed) Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: babarjunaid1122@gmail.com QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl Target Milestone: --- catalogue/MARCdetail.pl skips subfields that are hidden in the staff interface with an unanchored regular expression: next if ( $sf->{hidden} =~ /-7|-4|-3|-2|2|3|5|8/ ); -5 (OPAC + Intranet + Collapsed checked, Editor not) contains "5", so it matches and the subfield is not shown, although "Intranet" is checked. The same test is used for control fields (line 159) and for the item subfields (line 250). To reproduce (main): 1. Administration > MARC bibliographic framework > BKS > 245 > subfield b: check OPAC, Intranet and Collapsed, uncheck Editor (hidden = -5). 2. Open the MARC tab (catalogue/MARCdetail.pl) of a BKS record that has a 245$b, e.g. biblionumber 1 in the sample data. 3. 245$b is not shown. With hidden = 0 it is. Expected: a subfield is hidden from the staff MARC view only when its "Intranet" box is not checked (-8, -7, -4, -3, -2, 2, 3, 5, 8). Reproduced on main (c8e8025). -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.