Bugzilla – Attachment 89364 Details for
Bug 22572
Garbled content of MARC control fields in MARC view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22572: Display multiple spaces in MARC view
Bug-22572-Display-multiple-spaces-in-MARC-view.patch (text/plain), 2.11 KB, created by
Jonathan Druart
on 2019-05-05 17:58:11 UTC
(
hide
)
Description:
Bug 22572: Display multiple spaces in MARC view
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-05-05 17:58:11 UTC
Size:
2.11 KB
patch
obsolete
>From 2fa37e5f6bd2b42a0ac34930c7bbae3c333d9cb4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sun, 5 May 2019 12:57:18 -0500 >Subject: [PATCH] Bug 22572: Display multiple spaces in MARC view > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >index 7034199f20..c2a2a58b4d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >@@ -72,11 +72,13 @@ > <div class="tag"> > [% END %] > [% FOREACH subfiel IN tab0X.subfield %] >+ [% marc_value_with_spaces = BLOCK %][% subfiel.marc_value | html %][% END %] >+ [% SET marc_value_with_spaces = marc_value_with_spaces.replace(' ', ' ') %] > <p class="subfield_line"> > <span class="subfield-label"> > [% UNLESS ( subfiel.hide_marc ) %]<span class="subfield-code">[% subfiel.marc_subfield | html %]</span>[% END %] > <span class="desc" title="[% subfiel.long_desc | html %]">[% subfiel.short_desc | html %]</span></span> >- [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value | url %]">[% subfiel.marc_value | html %]</a>[% ELSE %][% subfiel.marc_value | html %][% END %] >+ [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value | url %]">[% subfiel.marc_value | html %]</a>[% ELSE %][% marc_value_with_spaces | $raw %][% END %] > [% IF ( subfiel.link ) %] > <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&idx=[% subfiel.link | uri %],phr&type=intranet&q=[% subfiel.marc_value |url %]"> > <img src="[% interface | html %]/[% theme | html %]/img/filefind.png" height="15" title="Search on [% subfiel.marc_value | html %]" alt="Search on [% subfiel.marc_value | html %]" /> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22572
: 89364