Adds support for intranetstylesheet system pref in Koha scripts

This commit is contained in:
kados 2006-02-05 21:45:25 +00:00
parent 152137bce5
commit 59f64e3077
119 changed files with 136 additions and 2 deletions

View File

@ -465,6 +465,7 @@ sub checkauth {
my $template = gettemplate($template_name, $type,$query);
$template->param(INPUTS => \@inputs,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
$template->param(loginprompt => 1) unless $info{'nopermission'};

View File

@ -127,7 +127,8 @@ $res =~ s/\n/<br\/>/g;
$res =~ s/\(\)//g;
$template->param(ISBD => $res,
biblionumber => $biblionumber,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -254,6 +254,7 @@ $template->param(item_loop => \@item_value_loop,
popup => $popup,
hide_marc => C4::Context->preference('hide_marc'),
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -33,6 +33,7 @@ $template->param(
mysqlVersion => $mysqlVersion,
apacheVersion => $apacheVersion,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -26,6 +26,9 @@
# Suite 330, Boston, MA 02111-1307 USA
# $Log$
# Revision 1.2.4.3 2006/02/05 21:45:25 kados
# Adds support for intranetstylesheet system pref in Koha scripts
#
# Revision 1.2.4.2 2006/02/04 21:26:47 kados
# Adds support for intranetcolorstylesheet
#
@ -61,6 +64,7 @@ my $error = $input->param('error');
$template->param(
ERROR => $error,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -527,5 +527,6 @@ $template->param(
itemtype => $frameworkcode, # HINT: if the library has itemtype = framework, itemtype is auto filled !
hide_marc => C4::Context->preference('hide_marc'),
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -71,6 +71,7 @@ my $marc_p = C4::Context->boolean_preference("marc");
$template->param( NOTMARC => !$marc_p,
frameworkcodeloop => \@frameworkcodeloop,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -20,6 +20,9 @@
# Suite 330, Boston, MA 02111-1307 USA
# $Log$
# Revision 1.4.2.3 2006/02/05 21:45:25 kados
# Adds support for intranetstylesheet system pref in Koha scripts
#
# Revision 1.4.2.2 2006/02/04 21:26:47 kados
# Adds support for intranetcolorstylesheet
#
@ -138,6 +141,7 @@ else {
BRANCHES => \@branches,
ITEMTYPES => \@itemtypes,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);

View File

@ -334,6 +334,7 @@ $template->param(item_loop => \@item_value_loop,
op => $nextop,
opisadd => ($nextop eq "saveitem")?0:1,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
foreach my $error (@errors) {
$template->param($error => 1);

View File

@ -66,6 +66,7 @@ $template->param(classlist => $classlist,
totavail => sprintf("%.2f",$totavail),
nobudget => $#results==-1?1:0,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -157,6 +157,7 @@ if ($count == 1){
invoice => $invoice,
notes => $results[0]->{'notes'},
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
} else {
my @loop;

View File

@ -146,5 +146,6 @@ $template->param(basketno => $basketno,
currency => $booksellers[0]->{'listprice'},
qty_total => $qty_total,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -36,5 +36,6 @@ $template->param(suggestions_loop => $order_loop,
from_placed_on =>$from_placed_on,
to_placed_on =>$to_placed_on,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -203,6 +203,7 @@ $template->param( existing => $biblio,
notes => $data->{'notes'},
publishercode => $data->{'publishercode'},
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -89,6 +89,7 @@ $template->param(loop_suppliers => \@loop_suppliers,
supplier => $supplier,
count => $count,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -111,5 +111,6 @@ $template->param(invoice => $invoice,
gst => $gst,
grandtot => $tototal+$gst,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -48,6 +48,7 @@ $template->param(
name => $booksellers[0]->{'name'},
supplierid => $supplierid,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -99,6 +99,7 @@ $template->param(loop_suppliers => \@loop_suppliers,
supplier => $supplier,
count => $count,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -47,5 +47,6 @@ $template->param(suggestions_loop => $suggestions_loop,
supplierid => $supplierid,
"op_$op" => 1,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -86,6 +86,7 @@ $template->param(id => $id,
loop_pricescurrency => \@loop_pricescurrency,
loop_invoicecurrency => \@loop_invoicecurrency,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -23,6 +23,7 @@ $sth->execute;
my ($total) = $sth->fetchrow;
$template->param(stopwords => $total,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -256,5 +256,6 @@ if ($op eq 'add_form') {
$template->param(bookfund => \@loop_data);
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -251,6 +251,7 @@ if ($op eq 'add_form') {
$template->param(budget => \@loop_data);
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -299,5 +299,6 @@ if ($op eq 'add_form') {
}
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -252,6 +252,7 @@ if ($op eq 'add_form') {
$template->param(loggeninuser => $loggedinuser,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -203,5 +203,6 @@ if ($op eq 'add_form') {
}
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -172,6 +172,7 @@ if ($op eq 'add_form') {
}
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -171,6 +171,7 @@ if ($op eq 'add_form') {
}
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -526,6 +526,7 @@ sub checkcategorycode {
return $message;
}
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -202,6 +202,7 @@ if ($op eq 'add_form') {
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -194,6 +194,7 @@ if ($op eq 'add_form') {
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -187,5 +187,6 @@ if ($res) {
$template->param(total => $total,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -195,6 +195,7 @@ if ($op eq 'add_form') {
}
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -187,5 +187,6 @@ $template->param(title => \@title_loop,
branchloop => \@branchloop,
branch => $branch,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -194,6 +194,7 @@ if ($op eq 'add_form') {
}
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -136,5 +136,6 @@ if ($op eq 'add_form') {
);
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -445,5 +445,6 @@ if ($op eq 'add_form') {
}
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -335,6 +335,7 @@ if ($op eq 'add_form') {
$template->param(loggeninuser => $loggedinuser,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -182,6 +182,7 @@ if ($op eq 'add_form') {
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -168,6 +168,7 @@ if ($op eq 'add_form') {
}
}
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -368,5 +368,6 @@ if ($op eq 'add_form') {
}
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -264,5 +264,6 @@ if ($op eq 'add_form') {
}
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -201,5 +201,6 @@ if ($op eq 'add_form') {
}
} #---- END $OP eq DEFAULT
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -159,6 +159,7 @@ if ($op eq "do_search") {
$template->param(authtypesloop => \@authtypesloop,
authtypecode => $authtypecode,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
# Print the page

View File

@ -245,6 +245,7 @@ else {
$template->param(authtypesloop => \@authtypesloop,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
# Print the page

View File

@ -418,5 +418,6 @@ $template->param(authtypesloop => \@authtypesloop,
authtypetext => $authtypes->{$authtypecode}{'authtypetext'},
hide_marc => C4::Context->preference('hide_marc'),
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -137,6 +137,7 @@ $template->param(authid => $authid?$authid:"",
# authtypesloop => \@authtypesloop,
index => $index
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -181,6 +181,7 @@ foreach my $thisauthtype (keys %$authtypes) {
$template->param(authid => $authid,
authtypesloop => \@authtypesloop, index => $index,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -146,6 +146,7 @@ $template->param(authid => $authid,
authtypetext => $authtypes->{$authtypecode}{'authtypetext'},
authtypesloop => \@authtypesloop,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -140,6 +140,7 @@ if ($input->param('error')) {
$template->param(ERROR => 0);
}
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
# Shows the template with the real values replaced
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -114,5 +114,6 @@ $template->param(MARGIN_LEFT => $labelConfig{'marginLeft'});
$template->param(SCRIPT_NAME => '/cgi-bin/koha/barcodes/printerConfig.pl');
$template->param("$labelConfig{'pageType'}" => 1);
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -98,6 +98,7 @@ $template->param( bib => $bib,
count => $count,
branchloop => \@branchloop
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
print "Content-Type: text/html\n\n", $template->output;

View File

@ -77,11 +77,15 @@ if ($shelfnumber) {
author => $biblios[0]->{'author'},
CGIbookshelves => $CGIbookshelves,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;
}
# $Log$
# Revision 1.3.2.2 2006/02/05 21:45:25 kados
# Adds support for intranetstylesheet system pref in Koha scripts
#
# Revision 1.3.2.1 2006/02/04 21:26:47 kados
# Adds support for intranetcolorstylesheet
#

View File

@ -110,6 +110,7 @@ foreach my $element (sort keys %$shelflist) {
}
$template->param(shelvesloop => \@shelvesloop,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;
@ -192,6 +193,9 @@ sub viewshelf {
#
# $Log$
# Revision 1.5.2.4 2006/02/05 21:45:25 kados
# Adds support for intranetstylesheet system pref in Koha scripts
#
# Revision 1.5.2.3 2006/02/04 21:26:47 kados
# Adds support for intranetcolorstylesheet
#

View File

@ -100,6 +100,7 @@ $template->param(
totalcredit => $totalcredit,
accounts => \@accountrows,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -28,5 +28,6 @@ $template->param(
title => $title,
ISSN => $ISSN,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -59,6 +59,7 @@ $template->param(classlist => $classlist,
totcomtd => sprintf("%.2f",$totcomtd),
totavail => sprintf("%.2f",$totavail),
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -51,5 +51,6 @@ $template->param(
booksellerfax => $supplierinfo[0]->{booksellerfax},
bookselleremail => $supplierinfo[0]->{bookselleremail},
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -80,5 +80,6 @@ $template->param(loop_suppliers => \@loop_suppliers,
supplier => $supplier,
count => $count,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -117,6 +117,7 @@ my ($template, $loggedinuser, $cookie)
to=>$to,
numbers=>\@numbers,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -71,5 +71,6 @@ if ($selectview eq "full"){
);
}
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -76,5 +76,6 @@ my ($template, $loggedinuser, $cookie)
biblionumber => $subs->{biblionumber},
hassubscriptionexpired =>$hassubscriptionexpired,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -129,6 +129,7 @@ for (my $i=0;$i<=$#budgets;$i++) {
}
$template->param(budgets => \@budgets,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
if ($op eq 'addsubscription') {

View File

@ -183,6 +183,7 @@ if ($op eq "do_search") {
# Print the page
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -60,6 +60,7 @@ $template->param(startdate => format_date(subscriptionexpirationdate($subscripti
bibliotitle => $subscription->{bibliotitle},
$op => 1,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
# Print the page

View File

@ -36,6 +36,7 @@ $template->param(classlist => $classlist,
branches=>\@branches,
itemtypes=>\@itemtypes,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -311,6 +311,7 @@ $template->param( genbrname => $genbrname,
branchoptionloop => \@branchoptionloop,
errmsgloop => \@errmsgloop,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -324,6 +324,7 @@ if ($branchcookie) {
$cookie=[$cookie, $branchcookie, $printercookie];
}
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -110,6 +110,7 @@ $sth->finish;
$template->param(todaysdate => format_date($todaysdate),
reserveloop => \@reservedata,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
print "Content-Type: text/html\n\n", $template->output;

View File

@ -466,6 +466,7 @@ $template->param(
printer => $printer,
errmsgloop => \@errmsgloop,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
# actually print the page!

View File

@ -131,6 +131,7 @@ $template->param(headerbackgroundcolor => $headerbackgroundcolor,
printerloop => \@printerloop,
branchloop => \@branchloop,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
my $branchcookie=$query->cookie(-name => 'branch', -value => "$branch", -expires => '+1y');

View File

@ -22,6 +22,7 @@ my ($template, $borrowernumber, $cookie)
my $biblionumber=$query->param('bib');
$template->param(biblionumber => $biblionumber,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);

View File

@ -106,6 +106,7 @@ if ($op eq "export") {
$template->param(branchloop=>\@branchloop,
CGIitemtype=>$CGIitemtype,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;
}

View File

@ -42,6 +42,7 @@ sub gethelptemplate {
theme => $theme,
lang => $lang
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
return $template;
}

View File

@ -95,6 +95,7 @@ if ($uploadmarc && length($uploadmarc)>0) {
}
$template-param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;
my $menu;
@ -104,6 +105,9 @@ my $file;
#---------------
# log cleared, as marcimport is (almost) rewritten from scratch.
# $Log$
# Revision 1.2.4.3 2006/02/05 21:45:26 kados
# Adds support for intranetstylesheet system pref in Koha scripts
#
# Revision 1.2.4.2 2006/02/04 21:26:47 kados
# Adds support for intranetcolorstylesheet
#

View File

@ -36,7 +36,8 @@ my ($template, $loggedinuser, $cookie)
my $marc_p = C4::Context->boolean_preference("marc");
$template->param(NOTMARC => !$marc_p);
$template->param(authtypesloop => \@authtypesloop,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -102,6 +102,7 @@ $template->param(type => 'intranet',
"$type-p" => 1,
%params,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -55,6 +55,7 @@ if ($add){
});
$template->param( bornum => $bornum,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
print $input->header(
-type => guesstype($template->output),

View File

@ -103,6 +103,7 @@ if ($i > 0 || $flags->{'CHARGES'} ne '' || $data ne ''){
# }
# print "</table>";
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -100,6 +100,7 @@ $template->param(member => $member,
cardnumber_institution => $cardnumber,
CGIbranch => $CGIbranch,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -97,6 +97,7 @@ $template->param( member => $member,
titleloop => \@titledata,
cmemloop => \@cmemdata,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);

View File

@ -83,6 +83,7 @@ if ($input->param('newflags')) {
firstname => $bor->{'firstname'},
loop => \@loop,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -82,6 +82,7 @@ if ( $newpassword ) {
$template->param( member => $member,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -113,6 +113,7 @@ $template->param(
numresults => $count,
resultsloop => \@resultsdata,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -315,6 +315,7 @@ if ($delete){
CGIbranch => $CGIbranch);
$template->param(Institution => 1) if ($categorycode eq "I");
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -34,5 +34,6 @@ if($quicksearch){
}
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -202,6 +202,7 @@ $template->param(
unvalidlibrarian => $unvalidlibrarian,
reserveloop => \@reservedata,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -130,6 +130,7 @@ if ($missing !=1) {
}
}
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -148,6 +148,7 @@ $template->param(NOK => ($missing==1),
identsloop => \@identsloop,
inputsloop => \@inputsloop,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -205,6 +205,7 @@ if ($ok == 0) {
;
}
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -96,6 +96,7 @@ $template->param ( biblionumber => $bibnum,
notes => $data->{'bnotes'},
serial => $data->{'serial'},
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -100,6 +100,7 @@ $template->param( biblionumber => $data->{'biblionumber'},
description => $data->{'description'},
loggedinuser => $loggedinuser,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
my ($count,@bibitems)=bibitems($data->{'biblionumber'});

View File

@ -131,6 +131,7 @@ $template->param( title => $data->{'title'},
biblioitemnumber => $data->{'biblioitemnumber'},
itemnumber => $itemnum,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
print "Content-Type: text/html\n\n", $template->output;

View File

@ -62,6 +62,7 @@ for (my $i = 0; $i < $count; $i++) {
$template->param( biblionumber => $biblionumber,
websitesloop => \@websitesloop,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
print "Content-Type: text/html\n\n", $template->output;

View File

@ -100,6 +100,7 @@ $template->param(BIBITEM_DATA => \@results,
ITEM_DATA => \@items,
loggedinuser => $loggedinuser,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -167,6 +167,7 @@ $sth->finish;
$template->param(todaysdate => $todaysdate,
overdueloop => \@overduedata,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
print "Content-Type: text/html\n\n", $template->output;

1
pay.pl
View File

@ -117,6 +117,7 @@ if ($check ==0){
loop_pay => \@loop_pay,
total => sprintf("%.2f",$total),
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
print "Content-Type: text/html\n\n", $template->output;

View File

@ -94,6 +94,7 @@ $template->param(
showfulllink => ($count > 50),
loop_reading => \@loop_reading,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -18,5 +18,6 @@ my ($template, $loggedinuser, $cookie)
debug => 1,
});
$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -65,6 +65,7 @@ my ($template, $borrowernumber, $cookie)
});
$template->param(do_it => $do_it,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
);
if ($do_it) {
my $results = calculate($line, $column, $podsp, $rodsp, $calc, \@filters);

Some files were not shown because too many files have changed in this diff Show More