diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm index 125e5df850..3102f2163e 100644 --- a/Koha/Biblio.pm +++ b/Koha/Biblio.pm @@ -1080,10 +1080,10 @@ sub get_marc_notes { push @marcnotes, { marcnote => $field->as_string($othersub) }; foreach my $sub ( $field->subfield('u') ) { $sub =~ s/^\s+|\s+$//g; # trim - push @marcnotes, { marcnote => $sub }; + push @marcnotes, { marcnote => $sub, tag => $tag }; } } else { - push @marcnotes, { marcnote => $field->as_string() }; + push @marcnotes, { marcnote => $field->as_string(), tag => $tag }; } } return \@marcnotes; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 95ceb7a0e1..ffe3127816 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -738,12 +738,12 @@
- [% IF MARCNOTE.marcnote.match('^https?://\S+$') %] - [% MARCNOTE.marcnote | html %] - [% ELSE %] - [% MARCNOTE.marcnote | html | html_line_break %] - [% END %] +
+ [% IF MARCNOTE.marcnote.match('^https?://\S+$') %] + [% MARCNOTE.marcnote | html %] + [% ELSE %] + [% MARCNOTE.marcnote | html | html_line_break %] + [% END %]
[% END %]