Bugzilla – Attachment 65362 Details for
Bug 12644
Add subtitles to staff client cart
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12644 - Add subtitles to staff client cart
Bug-12644---Add-subtitles-to-staff-client-cart.patch (text/plain), 3.36 KB, created by
Nick Clemens (kidclamp)
on 2017-07-31 15:53:24 UTC
(
hide
)
Description:
Bug 12644 - Add subtitles to staff client cart
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-07-31 15:53:24 UTC
Size:
3.36 KB
patch
obsolete
>From a7e9e3a3ea16af28fe42787c4d461f0b23020757 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 25 May 2017 12:40:43 +0000 >Subject: [PATCH] Bug 12644 - Add subtitles to staff client cart > >This patch adds display of subtitles to the staff client cart. > >To test you should have some values mapped to subtitle in Administration >-> Keyword to MARC Mapping. > >1. Apply the patch. >2. Add some records to the staff client cart which have subtitles. >3. Open the cart and onfirm that subtitles display correctly in both the > brief and "More details" view. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > basket/basket.pl | 3 +++ > koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt | 6 +++--- > 2 files changed, 6 insertions(+), 3 deletions(-) > >diff --git a/basket/basket.pl b/basket/basket.pl >index 14f661f..ae65a8e 100755 >--- a/basket/basket.pl >+++ b/basket/basket.pl >@@ -61,9 +61,12 @@ if (C4::Context->preference('TagsEnabled')) { > foreach my $biblionumber ( @bibs ) { > $template->param( biblionumber => $biblionumber ); > >+ my $fw = GetFrameworkCode($biblionumber); >+ > my $dat = &GetBiblioData($biblionumber); > next unless $dat; > my $record = &GetMarcBiblio($biblionumber); >+ $dat->{subtitle} = GetRecordValue('subtitle', $record, $fw); > my $marcnotesarray = GetMarcNotes( $record, $marcflavour ); > my $marcauthorsarray = GetMarcAuthors( $record, $marcflavour ); > my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour ); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >index c4f0e11..30f276c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >@@ -78,12 +78,12 @@ > <h3> > [% IF ( print_basket ) %] > [% BIBLIO_RESULT.title |html %] >- [% IF ( BIBLIO_RESULT.subtitle ) %] [% BIBLIO_RESULT.subtitle %][% END %] >+ [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield | html %][% END %] > [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author %][% END %] > [% ELSE %] > <input type="checkbox" class="select_record" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" /> > [% BIBLIO_RESULT.title |html %] >- [% IF ( BIBLIO_RESULT.subtitle ) %] [% BIBLIO_RESULT.subtitle %][% END %] >+ [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield | html %][% END %] > [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author %][% END %] > [% END %] > </h3> >@@ -253,7 +253,7 @@ > > </td> [% END %] > <td><a href="[% BIBLIO_RESULT.dest %]?biblionumber=[% BIBLIO_RESULT.biblionumber %]" class="open_title"> >- [% BIBLIO_RESULT.title |html %] >+ [% BIBLIO_RESULT.title |html %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield | html %][% END %] > </a> > [% BIBLIO_RESULT.author %] > <p>[% IF ( BIBLIO_RESULT.publishercode ) %]- [% BIBLIO_RESULT.publishercode %] >-- >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 12644
:
63713
|
63719
| 65362