Bugzilla – Attachment 51196 Details for
Bug 16315
OPAC Shelfbrowser doesn't display the full title
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16315 - OPAC Shelfbrowser doesn't display the full title
Bug-16315---OPAC-Shelfbrowser-doesnt-display-the-f.patch (text/plain), 2.94 KB, created by
Jonathan Druart
on 2016-05-04 16:14:04 UTC
(
hide
)
Description:
Bug 16315 - OPAC Shelfbrowser doesn't display the full title
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-05-04 16:14:04 UTC
Size:
2.94 KB
patch
obsolete
>From 22374c133e7cff17991d3adfb08c61268515e334 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 3 May 2016 09:48:11 -0400 >Subject: [PATCH] Bug 16315 - OPAC Shelfbrowser doesn't display the full title > >This patch adds subtitle information to the display of titles in the >OPAC's shelf browser. > >To test, apply the patch and make sure OPACShelfBrowser is enabled. > >- View the detail page for any title in the OPAC which has items. >- Click the "Browse shelf" link next to any item in the holdings table. >- The titles in the shelf browser should display with all subtitle > information as defined in Keywords to MARC mapping. > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Adding 245a and c as 'subtitle' in Keywords to Marc make them >show on shelf browser. >No errors. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/ShelfBrowser.pm | 1 + > koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc | 8 +++++++- > 2 files changed, 8 insertions(+), 1 deletion(-) > >diff --git a/C4/ShelfBrowser.pm b/C4/ShelfBrowser.pm >index 8e8e05b..923b7fe 100644 >--- a/C4/ShelfBrowser.pm >+++ b/C4/ShelfBrowser.pm >@@ -229,6 +229,7 @@ sub GetShelfInfo { > $item->{'browser_normalized_oclc'} = GetNormalizedOCLCNumber($this_record,$marcflavour); > $item->{'browser_normalized_isbn'} = GetNormalizedISBN(undef,$this_record,$marcflavour); > $item->{'browser_normalized_ean'} = GetNormalizedEAN($this_record,$marcflavour); >+ $item->{'subtitle'} = GetRecordValue('subtitle', $this_record, GetFrameworkCode( $item->{biblionumber} )); > push @valid_items, $item; > } > return @valid_items; >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc >index f806b4f..161f279 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc >@@ -81,7 +81,13 @@ > [% FOREACH item IN shelfbrowser_items %] > <td class="top"> > [% item.itemcallnumber %] >- <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% item.biblionumber %]&shelfbrowse_itemnumber=[% item.itemnumber %]#shelfbrowser">[% item.title |html %]</a> >+ <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% item.biblionumber %]&shelfbrowse_itemnumber=[% item.itemnumber %]#shelfbrowser"> >+ [% item.title |html %] >+ [% FOREACH subtitl IN item.subtitle %] >+ [% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] >+ [% subtitl.subfield |html %] >+ [% END %] >+ </a> > </td> > [% END %] > </tr> >-- >2.7.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 16315
:
51140
|
51163
| 51196