From 72415798b0bbaf79cf4195015b555eb42b70b3f2 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Tue, 25 Jun 2013 11:57:36 +0200 Subject: [PATCH] Bug 10505 - Add a separator between title and subtitle for OPAC without XSLT When using OPAC without XSLT, user can not distinguish the limit between the title and the subtitle. With XSLT, there is a ":" separator (for example between 200 $a and $e in UNIMARC). Test plan : - Set XSLT off for OPAC results and detail - Check you have a mapping for "subtitle" in "Keyword to MARC mapping" : for example 200$e in UNIMARC - Select a biblio that have a subtitle - At OPAC, perform a search that will contain this biblio => you see the separator - At OPAC, look at this biblio detail page => you see the separator --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index 4e4d140..274c4f2 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -538,7 +538,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% IF ( OPACXSLTDetailsDisplay ) %] [% XSLTBloc %] [% ELSE %] -

[% title |html %][% IF ( subtitle ) %] [% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %][% END %]

+

[% title |html %][% IF ( subtitle ) %] : [% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %][% END %]

[% IF ( author ) %]
by [% author |html %]
[% END %] [% UNLESS ( item_level_itypes ) %] diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt index 923effa..3433823 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ -510,7 +510,7 @@ $(document).ready(function(){ [% ELSE %] [% END %] [% END %] - [% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title |html %][% ELSE %]No title[% END %] [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield|html %][% END %] + [% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title |html %][% ELSE %]No title[% END %] : [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield|html %][% END %] [% IF ( SEARCH_RESULT.author ) %]by [% SEARCH_RESULT.author %] [% ELSE %]  [% END %] -- 1.7.10.4