[Koha-cvs] CVS: koha/opac opac-detail.pl,1.9.2.1,1.9.2.2
Owen Leonard
oleonard at users.sourceforge.net
Tue Feb 17 21:20:46 CET 2004
Update of /cvsroot/koha/koha/opac
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9775/opac
Modified Files:
Tag: rel_2_0
opac-detail.pl
Log Message:
Fix for Bug 679 (courtesy Stephen)
Index: opac-detail.pl
===================================================================
RCS file: /cvsroot/koha/koha/opac/opac-detail.pl,v
retrieving revision 1.9.2.1
retrieving revision 1.9.2.2
diff -C2 -r1.9.2.1 -r1.9.2.2
*** opac-detail.pl 6 Jan 2004 15:46:17 -0000 1.9.2.1
--- opac-detail.pl 17 Feb 2004 20:20:44 -0000 1.9.2.2
***************
*** 41,44 ****
--- 41,54 ----
}
+ my @subjects;
+ my $subject;
+ my @subj = split /, /,($dat->{'subject'}); #split returned string into array
+ foreach my $subjct (@subj) {
+ $subject= {
+ SUBJECTS => $subjct,
+ };
+ push @subjects, $subject;
+ }
+
$template->param(norequests => $norequests);
***************
*** 49,56 ****
--- 59,68 ----
my $webarray=\@webbiblioitems;
my $sitearray=\@websites;
+ my $subjectsarray=\@subjects;
$template->param(BIBLIO_RESULTS => $resultsarray);
$template->param(ITEM_RESULTS => $itemsarray);
$template->param(WEB_RESULTS => $webarray);
+ $template->param(SUBJECTS => $subjectsarray);
$template->param(SITE_RESULTS => $sitearray,
LibraryName => C4::Context->preference("LibraryName"),
More information about the Koha-cvs
mailing list