From 25c112ab869694a4853649e242ba7c4687691bac Mon Sep 17 00:00:00 2001 From: tipaul Date: Mon, 14 Oct 2002 07:40:04 +0000 Subject: [PATCH] merging arens + my modifs/bugfixes --- moredetail.pl | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/moredetail.pl b/moredetail.pl index a8b4c7c377..0380376e86 100755 --- a/moredetail.pl +++ b/moredetail.pl @@ -26,18 +26,27 @@ use C4::Koha; use CGI; use C4::Search; use C4::Acquisitions; +<<<<<<< moredetail.pl +use C4::Output; + +======= use C4::Output; # contains gettemplate +>>>>>>> 1.14 my $query=new CGI; my $includes = C4::Context->config('includes') || "/usr/local/www/hdl/htdocs/includes"; my $startfrom=$query->param('startfrom') || 0; - -my $template = gettemplate("catalogue/moredetail.tmpl"); - -# get variables +my $subject=$query->param('subject'); +# if its a subject we need to use the subject.tmpl +my $template; +if ($subject){ + $template = gettemplate("catalogue/subject.tmpl"); +} else { + $template = gettemplate("catalogue/moredetail.tmpl"); +} my $biblionumber=$query->param('bib'); my $title=$query->param('title'); -- 2.39.5