https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44284 --- Comment #8 from David Cook <dcook@prosentient.com.au> --- (In reply to babar junaid from comment #7)
Thanks David, that is a better fix.
You are right that the record should go through ViewPolicy. catalogue/ISBDdetail.pl already does this with metadata_record( { embed_items => 1, interface => 'intranet' } ), and the intranet list in Koha::Filter::MARC::ViewPolicy (-8, -7, -4, -3, -2, 2, 3, 5, 8) is exactly the set I matched by hand. EmbedItems runs before ViewPolicy, so the item subfields are filtered too. The three regular expression checks in MARCdetail.pl can then be removed instead of fixed, so there is one place that decides what the staff interface hides.
I'll attach a reworked patch along those lines, with a test, and obsolete the current one.
On a duplicate: the closest I found is bug 8331 (hidden subfields still shown in the staff normal view and plain MARC view). That is the opposite case, too little hidden rather than too much, on other pages, so I don't think this duplicates it. I'll add it to See Also.
Perfect. Thanks for that! -- You are receiving this mail because: You are watching all bug changes.