Just realized the links I shared are from a forked repository. The file for reference in the official repository is:
https://github.com/Koha-Community/Koha/blob/master/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl Good luck, Pedro Amorim 2016-12-15 16:58 GMT-01:00 Pedro Amorim <[email protected]>: > Hello R. Antonio, > > I'm guessing you're using MARC21, so: > > You need to edit the file located at: > /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/<language> > /xslt/MARC21slim2OPACDetail.xsl > > And make the changes you want, like deleting fields you don't want showing > and adding new fields that aren't showing. > > ------------------------- > > For reference, to hide fields 336-338 see the link below: > https://github.com/colinsc/koha/blob/master/koha-tmpl/ > opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl#L439 > > And just delete the lines from 439 to 477 which is the block rendering the > fields 336, 337 and 338. > > To show any field in the 86* range, you can check how 866 is rendered: > https://github.com/colinsc/koha/blob/master/koha-tmpl/ > opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl#L1061 > > Copy that block and repeat for every other field you need enabled. > You don't even need to have any special xsl knowledge - of course if you > do, you can do a lot more and be a lot more specific about what and how > things are being rendered. > > Hope this helps. > > Regards, > > Pedro Amorim > > > 2016-12-15 15:05 GMT-01:00 R. A. Muñoz Gómez <[email protected]>: > >> Hello everyone! >> >> I was wondering if anyone could advise on how to hide fields from the >> "Normal view" of a record in the OPAC. Specifically 336-338 fields. >> >> I tried going to Administration/MARC frameworks/subfield >> structure/advanced >> constraints and then un-checking the box that says "OPAC". However, the >> only thing that this does is hide the fields from the records' "MARC view" >> in the OPAC, but not from the "Normal view" (which is what patrons see and >> are interested in). >> >> In terms of display, I don't seem to be able to have fields 863-865, 867 >> and 868 show in the Normal view of the record. Field 866 is working well. >> >> Any help would be much appreciated. Thanks a lot in advance! >> >> R. Antonio Muñoz Gómez >> Candidate to MI Library and Information Science >> Collaborative Program in Book History and Print Culture >> [Expected 2017] >> Faculty of Information, University of Toronto >> _______________________________________________ >> Koha mailing list http://koha-community.org >> [email protected] >> https://lists.katipo.co.nz/mailman/listinfo/koha >> > > _______________________________________________ Koha mailing list http://koha-community.org [email protected] https://lists.katipo.co.nz/mailman/listinfo/koha

