fixing up few loose ends. Also made opac-searchresults.pl use only on tmplate: opac-searchresults.tmpl
This commit is contained in:
parent
03dd02f026
commit
9eeb45b3e3
|
|
@ -10,15 +10,15 @@ my $query=new CGI;
|
|||
|
||||
my ($loggedinuser, $cookie, $sessionID) = checkauth($query, 1);
|
||||
|
||||
my $template = gettemplate ("detail.tmpl", "opac");
|
||||
my $template = gettemplate ("opac-detail.tmpl", "opac");
|
||||
|
||||
my $biblionumber=$query->param('bib');
|
||||
my $type='intra';
|
||||
|
||||
|
||||
# change back when ive fixed request.pl
|
||||
my @items = ItemInfo(undef, $biblionumber, $type);
|
||||
my $dat=bibdata($biblionumber);
|
||||
my ($authorcount, $addauthor)= &addauthor($biblionumber);
|
||||
my @items = &ItemInfo(undef, $biblionumber, 'opac');
|
||||
my $dat = &bibdata($biblionumber);
|
||||
my ($authorcount, $addauthor) = &addauthor($biblionumber);
|
||||
my ($webbiblioitemcount, @webbiblioitems) = &getwebbiblioitems($biblionumber);
|
||||
my ($websitecount, @websites) = &getwebsites($biblionumber);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,14 +2,13 @@
|
|||
use strict;
|
||||
require Exporter;
|
||||
|
||||
use C4::Output; # contains picktemplate
|
||||
use C4::Output;
|
||||
use CGI;
|
||||
use C4::Auth;
|
||||
|
||||
my $query = new CGI;
|
||||
#my ($loggedinuser, $cookie, $sessionID) = checkauth($query);
|
||||
my ($loggedinuser, $cookie, $sessionID) = checkauth($query ,1);
|
||||
|
||||
my $template = gettemplate("opac-search.tmpl", "opac");
|
||||
|
||||
#$template->param(SITE_RESULTS => $sitearray);
|
||||
print "Content-Type: text/html\n\n", $template->output;
|
||||
|
|
|
|||
|
|
@ -11,13 +11,15 @@ my $query=new CGI;
|
|||
my ($loggedinuser, $cookie, $sessionID) = checkauth($query, 1);
|
||||
|
||||
|
||||
my $template;
|
||||
my $template = gettemplate ("opac-searchresults.tmpl", "opac");
|
||||
|
||||
|
||||
|
||||
my $subject=$query->param('subject');
|
||||
# if its a subject we need to use the subject.tmpl
|
||||
|
||||
|
||||
if ($subject) {
|
||||
$template = gettemplate ("subject.tmpl", "opac");
|
||||
} else {
|
||||
$template = gettemplate ("searchresults.tmpl", "opac");
|
||||
$template->param(subjectsearch => $subject);
|
||||
}
|
||||
|
||||
# get all the search variables
|
||||
|
|
|
|||
Loading…
Reference in New Issue