Bugzilla – Attachment 47517 Details for
Bug 15697
Unnecessary comma between title and subtitle on opac-detail.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15697 - Unnecessary comma between title and subtitle on opac-detail.pl
Bug-15697---Unnecessary-comma-between-title-and-su.patch (text/plain), 2.44 KB, created by
Nick Clemens (kidclamp)
on 2016-02-01 16:32:39 UTC
(
hide
)
Description:
Bug 15697 - Unnecessary comma between title and subtitle on opac-detail.pl
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2016-02-01 16:32:39 UTC
Size:
2.44 KB
patch
obsolete
>From 11c5679c04cddfc67448a9f7e408cc004b4e6685 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 28 Jan 2016 20:33:58 +0000 >Subject: [PATCH] Bug 15697 - Unnecessary comma between title and subtitle on > opac-detail.pl > >To test: >1 - Go to Administration->Keyword to MARC mapping >2 - Add a mapping (or ensure it exists) > Field name: subtitle > MARC field: 245 > MARC subfield: b >3 - View a record with a subtitle in the opac >4 - Note in MARC 21 you have "Title of record:, subtitle of record" >5 - Apply patch >6 - View the record again and note the comma is no longer present. > >Note: this patch removes the comma only for MARC21 where subtitle is not >repeatable. UNIMARC seems to be repeatable and does not include >punctuation so I believe this may be needed there. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index b9ab8cb..ba45596 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -24,7 +24,7 @@ > [% SET protocol = "http://" %] > [% END %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Details for: [% title %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield %][% END %]</title> >+<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Details for: [% title %][% FOREACH subtitl IN subtitle %][% UNLESS Koha.Preference('marcflavour')=='MARC21' %],[% END %] [% subtitl.subfield %][% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > [% IF ( bidi ) %] > [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />[% END %] >@@ -40,7 +40,7 @@ > <div class="main"> > <ul class="breadcrumb"> > <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li> >- <li><a href="#">Details for: [% title %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield %][% END %]</a></li> >+ <li><a href="#">Details for: [% title %][% FOREACH subtitl IN subtitle %][% UNLESS Koha.Preference('marcflavour')=='MARC21' %],[% END %] [% subtitl.subfield %][% END %]</a></li> > </ul> > > <div class="container-fluid"> >-- >2.1.4
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 15697
:
47410
|
47517
|
47524
|
47554
|
47577
|
47578
|
48341
|
48342