From 004b0e523545567d17edebdc8b57dc71213a75df Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 11 Feb 2010 15:53:04 -0500 Subject: [PATCH] Changes to further work on Bug 3550, Use GetRecordValue to get the subtitle - Adding subtitle display to OPAC Cart, lists, and reading record - Minor tweaks to some displays --- C4/VirtualShelves/Page.pm | 12 ++++++------ .../prog/en/modules/catalogue/detail.tmpl | 4 ++-- .../opac-tmpl/prog/en/modules/opac-basket.tmpl | 6 +++--- .../opac-tmpl/prog/en/modules/opac-detail.tmpl | 4 ++-- .../prog/en/modules/opac-readingrecord.tmpl | 4 +++- .../opac-tmpl/prog/en/modules/opac-shelves.tmpl | 3 ++- opac/opac-basket.pl | 2 ++ opac/opac-readingrecord.pl | 7 +++++-- 8 files changed, 25 insertions(+), 17 deletions(-) diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm index 14f9816..ee105f4 100644 --- a/C4/VirtualShelves/Page.pm +++ b/C4/VirtualShelves/Page.pm @@ -197,7 +197,7 @@ sub shelfpage ($$$$$) { $this_item->{'dateadded'} = format_date( $this_item->{'dateadded'} ); $this_item->{'imageurl'} = getitemtypeinfo( $this_item->{'itemtype'} )->{'imageurl'}; $this_item->{'coins'} = GetCOinSBiblio( $this_item->{'biblionumber'} ); - $this_item->{'subtitle'} = C4::Biblio::get_koha_field_from_marc( 'bibliosubtitle', 'subtitle', $record, '' ); + $this_item->{'subtitle'} = GetRecordValue('subtitle', $record, GetFrameworkCode($this_item->{'biblionumber'})); # Getting items infos for location display my @items_infos = &GetItemsInfo( $this_item->{'biblionumber'}, $type ); @@ -348,10 +348,10 @@ sub shelfpage ($$$$$) { $template->param( seflag => 1 ); } - #FIXME: This refresh really only needs to happen when there is a modification of some sort - # to the shelves, but the above code is so convoluted in its handling of the various - # options, it is easier to do this refresh every time C4::VirtualShelves::Page.pm is - # called + #FIXME: This refresh really only needs to happen when there is a modification of some sort + # to the shelves, but the above code is so convoluted in its handling of the various + # options, it is easier to do this refresh every time C4::VirtualShelves::Page.pm is + # called my ( $total, $pubshelves, $barshelves ) = RefreshShelvesSummary( $query->cookie("CGISESSID"), $loggedinuser, ( $loggedinuser == -1 ? 20 : 10 ) ); @@ -419,4 +419,4 @@ __END__ =back -=cut +=cut \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl index 0f6dac9..3d8a9af 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl @@ -1,5 +1,5 @@ -Koha › Catalog › Details for <!-- TMPL_VAR NAME="title" escape="html" --> +Koha › Catalog › Details for <!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_LOOP NAME="subtitle" --> <!-- TMPL_VAR NAME="subfield" --><!-- /TMPL_LOOP -->