THEME:
foreach my $th (@themes) {
foreach my $la (@languages) {
- warn "File = $htdocs/$th/$la/$tmpl\n";
+# warn "File = $htdocs/$th/$la/$tmpl\n";
if (-e "$htdocs/$th/$la/$tmpl") {
$theme = $th;
$lang = $la;
$dbh = C4::Context->dbh;
my $template=gettemplate('marcimport/ListFileRecords.tmpl');
-
# File can be z3950 search query or uploaded MARC data
# if z3950 results
my $file= MARC::File::USMARC->indata($input->param('file'));
my $numrecord = $input->param('numrecord');
if ($numrecord) {
- for (my $i==1;$i<$numrecord;$i++) {
- # FIXME - This "==" was supposed to be a "=", right?
+ for (my $i=1;$i<$numrecord;$i++) {
$record=$file->next;
}
} else {
#---------------
# $Log$
+# Revision 1.18 2002/10/14 07:41:04 tipaul
+# merging arens + my modifs/bugfixes
+#
# Revision 1.17 2002/10/13 07:39:26 arensb
# Added magic RCS comment.
# Removed trailing whitespace.
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') ||
my $query=new CGI;
my $type=$query->param('type');
-(-e "opac") && ($type='opac');
+warn $type;
-my ($loggedinuser, $cookie, $sessionID) = checkauth($query, ($type eq 'opac') ? (1) : (0));
+#(-e "opac") && ($type='opac');
+my ($loggedinuser, $cookie, $sessionID) = checkauth($query, ($type eq 'opac') ? (1) : (0));
+warn $type;
my $startfrom=$query->param('startfrom');
($startfrom) || ($startfrom=0);
}
$template->param(numbers => \@numbers);
+if (C4::Context->preference('acquisitions') eq 'simple') {
+ $template->param(script => "MARCdetail.pl");
+} else {
+ $template->param(script => "detail.pl");
+}
# Print the page
print $query->header(-cookie => $cookie), $template->output;