From 625021ada7caa8e849130ed1ade4406953bd4853 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 12 Feb 2010 09:52:38 -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 Signed-off-by: Galen Charlton --- C4/VirtualShelves/Page.pm | 12 ++++++------ .../prog/en/modules/catalogue/detail.tmpl | 4 ++-- koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl | 6 +++--- koha-tmpl/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 14f9816b1b..ee105f447e 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 0f6dac91f9..3d8a9afcdd 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 -->