[Koha-bugs] [Bug 11592] opac-detail.pl and opac-MARCdetail.pl do not respect marc tag visibility
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jan 22 06:30:44 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11592
--- Comment #1 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 24600
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=24600&action=edit
Bug 11592 - opac scripts do not respect marc tag visibility
Added two functions to C4/Biblio: GetFilteredOpacBiblio
and GetOpacHideMARC.
GetFilteredOpacBiblio returns a MARC::Record stripped of all the
fields and subfields which are supposed to be hidden in OPAC.
GetOpacHideMARC returns a hash of whether a particular key
(eg. title, subtitle, etc.) is hidden. A value of 0 means no,
a value of 1 means hidden.
Made GetCOinSBiblio function handle hiding of 245$a more
gracefully. Also, modified GetMarcSubjects to not generate an
array entry of empty values.
Tweaked C4/XSLT.pm to delete a field, if there weren't any
subfields to actually update with.
Properly hid 245$a, in the case that there is no visibility
for OPAC, for opac-MARCdetail.
opac-detail now filters the MARC::Record according to the hidden
value in marc_subfield_structure properly. It also corrects a
couple minor issues with a parameter not passed being used in a
concatenation. How the subtitle values calculation works changed.
It is now based on marc_subfield_structure and not fieldmapping.
And, the GetBiblioData hash that generates template variables is
now filtered by the results of a GetOpacHideMARC call.
Lastly, opac-showmarc now converts the MARCXML record to a
MARC::Record to easily filter using GetFilteredOpacBiblio, which
is then turned back into MARCXML for processing.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list