[Koha-bugs] [Bug 17127] Can't blacklist MARC21 500 with NotesBlacklist
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Feb 25 12:28:03 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17127
--- Comment #3 from Magnus Enger <magnus at libriotech.no> ---
The template code that outputs the notes in
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt looks like this:
704 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary &&
SYNDETICS_SUMMARY )) %]
705 <div id="descriptions">
706 <div class="content_set">
707
708 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY
) %]
709 <h4>Enhanced descriptions from Syndetics:</h4>
710 <p>[% SYNDETICS_SUMMARY | html %]</p>
711 [% END %]
712
713 [% IF ( MARCNOTES ) %]
714 <div id="marcnotes">
715 [% FOREACH MARCNOTE IN MARCNOTES %]
716 <p>
717 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
718 <a href="[% MARCNOTE.marcnote | url %]">[%
MARCNOTE.marcnote | html %]</a>
719 [% ELSE %]
720 [% MARCNOTE.marcnote | html | html_line_break %]
721 [% END %]
722 </p>
723 [% END %]
724 </div>
725 [% ELSE %]
726 [% IF ( notes ) %]
727 <p>[% notes | html %]</p>
728 [% END %]
729 [% END %]
730
731 </div>
732 </div> <!-- / #descriptions -->
733 [% END # / IF MARCNOTES || notes %]
If I have notes in e.g. 500 and 518, and NotesBlacklist holds a single field,
the remaining field is output by the line "[% MARCNOTE.marcnote | html |
html_line_break %]", as it should be.
If NotesBlacklist is given a list of fields, like "500,518", nothing is output
by "[% MARCNOTE.marcnote | html | html_line_break %]", BUT the text of the 500
field is output by this line: "<p>[% notes | html %]</p>". I have not been able
to figure out where the "notes" variable comes from!
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list