From 89e4e6ba20e043cf592c96fb2cd459ba2d8782e5 Mon Sep 17 00:00:00 2001 From: tipaul Date: Thu, 10 Feb 2005 13:15:27 +0000 Subject: [PATCH] * multiple biblio subtitles are correctly stored & shown in simple (non-MARC) view, even after a biblio modif. --- C4/Search.pm | 11 +++++++++++ admin/marc_subfields_structure.pl | 2 +- koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl | 10 ++++++++-- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 0d7ac455fc..92c9a797fd 100755 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1487,6 +1487,17 @@ sub bibdata { my $data; $data = $sth->fetchrow_hashref; $sth->finish; + # handle management of repeated subtitle + $sth = $dbh->prepare("Select * from bibliosubtitle where biblionumber = ?"); + $sth->execute($bibnum); + my @subtitles; + while (my $dat = $sth->fetchrow_hashref){ + my %line; + $line{subtitle} = $dat->{subtitle}; + push @subtitles, \%line; + } # while + $data->{subtitles} = \@subtitles; + $sth->finish; $sth = $dbh->prepare("Select * from bibliosubject where biblionumber = ?"); $sth->execute($bibnum); my @subjects; diff --git a/admin/marc_subfields_structure.pl b/admin/marc_subfields_structure.pl index bf33e2134b..4a172ad87e 100755 --- a/admin/marc_subfields_structure.pl +++ b/admin/marc_subfields_structure.pl @@ -109,7 +109,7 @@ if ($op eq 'add_form') { # other subfields push @kohafields, "additionalauthors.author"; push @kohafields, "bibliosubject.subject"; - push @kohafields, "bibliosubtitle.title"; + push @kohafields, "bibliosubtitle.subtitle"; # build authorised value list $sth2->finish; $sth2 = $dbh->prepare("select distinct category from authorised_values"); diff --git a/koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl b/koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl index 2ac0d945e3..8905328b09 100644 --- a/koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl @@ -40,12 +40,18 @@ - (record ) + - Subtitle: + + Subtitle(s): + + ; + +
+ Author:
Additional Author:
Published by :