Bugzilla – Attachment 19228 Details for
Bug 10505
Add a separator between title and subtitle for OPAC without XSLT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-10505-Add-a-separator-between-title-and-subtitle.patch (text/plain), 3.24 KB, created by
Fridolin Somers
on 2013-06-25 10:10:03 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2013-06-25 10:10:03 UTC
Size:
3.24 KB
patch
obsolete
>From 72415798b0bbaf79cf4195015b555eb42b70b3f2 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >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 %] >- <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1> >+ <h1 class="title">[% title |html %][% IF ( subtitle ) %] : <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1> > [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %] > > <span class="results_summary">[% 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 %]<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title"> > [% END %] > [% END %] >- [% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title |html %][% ELSE %]No title[% END %] [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield|html %][% END %]</a> >+ [% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title |html %][% ELSE %]No title[% END %] : [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield|html %][% END %]</a> > [% IF ( SEARCH_RESULT.author ) %]by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% SEARCH_RESULT.author |url %]" title="Search for works by this author" class="author">[% SEARCH_RESULT.author %]</a> > [% ELSE %] > [% END %] >-- >1.7.10.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 10505
: 19228