View | Details | Raw Unified | Return to bug 14156
Collapse All | Expand All

(-)a/Koha/Biblio.pm (-2 / +2 lines)
Lines 1080-1089 sub get_marc_notes { Link Here
1080
            push @marcnotes, { marcnote => $field->as_string($othersub) };
1080
            push @marcnotes, { marcnote => $field->as_string($othersub) };
1081
            foreach my $sub ( $field->subfield('u') ) {
1081
            foreach my $sub ( $field->subfield('u') ) {
1082
                $sub =~ s/^\s+|\s+$//g; # trim
1082
                $sub =~ s/^\s+|\s+$//g; # trim
1083
                push @marcnotes, { marcnote => $sub };
1083
                push @marcnotes, { marcnote => $sub, tag => $tag };
1084
            }
1084
            }
1085
        } else {
1085
        } else {
1086
            push @marcnotes, { marcnote => $field->as_string() };
1086
            push @marcnotes, { marcnote => $field->as_string(), tag => $tag };
1087
        }
1087
        }
1088
    }
1088
    }
1089
    return \@marcnotes;
1089
    return \@marcnotes;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-7 / +6 lines)
Lines 738-749 Link Here
738
<div class="content_set">
738
<div class="content_set">
739
739
740
    [% FOREACH MARCNOTE IN MARCNOTES %]
740
    [% FOREACH MARCNOTE IN MARCNOTES %]
741
        <p>
741
        <p class="marcnote marcnote-[% MARCNOTE.tag | html %]" id="marcnote-[% MARCNOTE.tag | html %]-[% loop.count | html %]">
742
        [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
742
            [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
743
            <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
743
                <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
744
        [% ELSE %]
744
            [% ELSE %]
745
            [% MARCNOTE.marcnote | html | html_line_break %]
745
                [% MARCNOTE.marcnote | html | html_line_break %]
746
        [% END %]
746
            [% END %]
747
        </p>
747
        </p>
748
[% END %]
748
[% END %]
749
</div>
749
</div>
750
- 

Return to bug 14156