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> Signed-off-by: Brendan Gallagher <bredan@bywatersolutions.com>
This commit is contained in:
parent
aec6235762
commit
67f91f24e5
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue