From 59f64e30776fba4642c3655867c3a2defb17bbd2 Mon Sep 17 00:00:00 2001 From: kados Date: Sun, 5 Feb 2006 21:45:25 +0000 Subject: [PATCH] Adds support for intranetstylesheet system pref in Koha scripts --- C4/Auth.pm | 1 + ISBDdetail.pl | 3 ++- MARCdetail.pl | 1 + about.pl | 1 + acqui.simple/addbiblio-nomarc.pl | 4 ++++ acqui.simple/addbiblio.pl | 1 + acqui.simple/addbooks.pl | 1 + acqui.simple/additem-nomarc.pl | 4 ++++ acqui.simple/additem.pl | 1 + acqui/acqui-home.pl | 1 + acqui/acquire.pl | 1 + acqui/basket.pl | 1 + acqui/histsearch.pl | 1 + acqui/newbiblio.pl | 1 + acqui/order.pl | 1 + acqui/receive.pl | 1 + acqui/recieveorder.pl | 1 + acqui/select-late.pl | 1 + acqui/suggestion-select.pl | 1 + acqui/supplier.pl | 1 + admin-home.pl | 1 + admin/aqbookfund.pl | 1 + admin/aqbudget.pl | 1 + admin/auth_subfields_structure.pl | 1 + admin/auth_tag_structure.pl | 1 + admin/authorised_values.pl | 1 + admin/authtypes.pl | 1 + admin/biblio_framework.pl | 1 + admin/branches.pl | 1 + admin/categorie.pl | 1 + admin/categoryitem.pl | 1 + admin/checkmarc.pl | 1 + admin/currency.pl | 1 + admin/issuingrules.pl | 1 + admin/itemtypes.pl | 1 + admin/koha2marclinks.pl | 1 + admin/marc_subfields_structure.pl | 1 + admin/marctagstructure.pl | 1 + admin/printers.pl | 1 + admin/stopwords.pl | 1 + admin/systempreferences.pl | 1 + admin/thesaurus.pl | 1 + admin/z3950servers.pl | 1 + authorities/auth_finder.pl | 1 + authorities/authorities-home.pl | 1 + authorities/authorities.pl | 1 + authorities/blinddetail-biblio-search.pl | 1 + authorities/detail-biblio-search.pl | 1 + authorities/detail.pl | 1 + barcodes/barcodes.pl | 1 + barcodes/printerConfig.pl | 1 + bookcount.pl | 1 + bookshelves/addbookbybiblionumber.pl | 4 ++++ bookshelves/shelves.pl | 4 ++++ boraccount.pl | 1 + bull-home.pl | 1 + bull/acqui-search.pl | 1 + bull/lateissues.pl | 1 + bull/order.pl | 1 + bull/receipt.pl | 1 + bull/serial-issues.pl | 1 + bull/statecollection.pl | 1 + bull/subscription-add.pl | 1 + bull/subscription-bib-search.pl | 1 + bull/subscription-renew.pl | 1 + catalogue-home.pl | 1 + circ/branchtransfers.pl | 1 + circ/circulation.pl | 1 + circ/reserve.pl | 1 + circ/returns.pl | 1 + circ/selectbranchprinter.pl | 1 + detail.pl | 1 + export/marc.pl | 1 + help.pl | 1 + import/breeding.pl | 4 ++++ mainpage.pl | 3 ++- maint/catmaintain.pl | 1 + mancredit.pl | 1 + members/deletemem.pl | 1 + members/imemberentry.pl | 1 + members/jmemberentry.pl | 1 + members/member-flags.pl | 1 + members/member-password.pl | 1 + members/member.pl | 1 + members/memberentry.pl | 1 + members/members-home.pl | 1 + members/moremember.pl | 1 + members/newimember.pl | 1 + members/newjmember.pl | 1 + members/newmember.pl | 1 + modbib.pl | 1 + modbibitem.pl | 1 + moditem.pl | 1 + modwebsites.pl | 1 + moredetail.pl | 1 + overdue.pl | 1 + pay.pl | 1 + readingrec.pl | 1 + reports-home.pl | 1 + reports/acquisitions_stats.pl | 1 + reports/bor_issues_top.pl | 1 + reports/borrowers_out.pl | 1 + reports/borrowers_stats.pl | 1 + reports/cat_issues_top.pl | 1 + reports/catalogue_out.pl | 1 + reports/inventory.pl | 1 + reports/issues_avg_stats.pl | 1 + reports/issues_stats.pl | 1 + reports/manager.pl | 1 + reports/manager2.pl | 1 + reports/reports-home.pl | 1 + reservereport.pl | 1 + search.marc/dictionary.pl | 1 + search.marc/search.pl | 1 + search.marc/suggest.pl | 1 + stats.pl | 1 + suggestion/acceptorreject.pl | 1 + updatebiblio.pl | 1 + z3950/search.pl | 1 + 119 files changed, 136 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index e6e636cf94..df8be8003a 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -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'}; diff --git a/ISBDdetail.pl b/ISBDdetail.pl index 39aa8abda3..0ec8b3ed1f 100755 --- a/ISBDdetail.pl +++ b/ISBDdetail.pl @@ -127,7 +127,8 @@ $res =~ s/\n//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; diff --git a/MARCdetail.pl b/MARCdetail.pl index a1bd7dea16..5b739c7b05 100755 --- a/MARCdetail.pl +++ b/MARCdetail.pl @@ -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; diff --git a/about.pl b/about.pl index 43bf09a547..3fcb59408b 100755 --- a/about.pl +++ b/about.pl @@ -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; diff --git a/acqui.simple/addbiblio-nomarc.pl b/acqui.simple/addbiblio-nomarc.pl index 0bb4202e94..853729e830 100755 --- a/acqui.simple/addbiblio-nomarc.pl +++ b/acqui.simple/addbiblio-nomarc.pl @@ -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; diff --git a/acqui.simple/addbiblio.pl b/acqui.simple/addbiblio.pl index a62843735a..dc7160f97a 100755 --- a/acqui.simple/addbiblio.pl +++ b/acqui.simple/addbiblio.pl @@ -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; diff --git a/acqui.simple/addbooks.pl b/acqui.simple/addbooks.pl index 8eeea68c4f..8f6ee8b4d6 100755 --- a/acqui.simple/addbooks.pl +++ b/acqui.simple/addbooks.pl @@ -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; diff --git a/acqui.simple/additem-nomarc.pl b/acqui.simple/additem-nomarc.pl index 7200950aab..416e2bfcbc 100755 --- a/acqui.simple/additem-nomarc.pl +++ b/acqui.simple/additem-nomarc.pl @@ -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"), ); diff --git a/acqui.simple/additem.pl b/acqui.simple/additem.pl index 92664e9988..ca2b9826f9 100755 --- a/acqui.simple/additem.pl +++ b/acqui.simple/additem.pl @@ -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); diff --git a/acqui/acqui-home.pl b/acqui/acqui-home.pl index 1356c3a782..a9195edb27 100755 --- a/acqui/acqui-home.pl +++ b/acqui/acqui-home.pl @@ -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; diff --git a/acqui/acquire.pl b/acqui/acquire.pl index f6c8b78731..92e2690a48 100755 --- a/acqui/acquire.pl +++ b/acqui/acquire.pl @@ -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; diff --git a/acqui/basket.pl b/acqui/basket.pl index 64dfa70311..b8d0d02809 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -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; diff --git a/acqui/histsearch.pl b/acqui/histsearch.pl index 6ad1ab3e4c..dd8638bc6f 100755 --- a/acqui/histsearch.pl +++ b/acqui/histsearch.pl @@ -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; diff --git a/acqui/newbiblio.pl b/acqui/newbiblio.pl index 99eeba7e0a..4f7bcd91dd 100755 --- a/acqui/newbiblio.pl +++ b/acqui/newbiblio.pl @@ -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; diff --git a/acqui/order.pl b/acqui/order.pl index 1c59cc20aa..8e37df2e1d 100755 --- a/acqui/order.pl +++ b/acqui/order.pl @@ -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; diff --git a/acqui/receive.pl b/acqui/receive.pl index f39ef14b28..0fdfd17480 100755 --- a/acqui/receive.pl +++ b/acqui/receive.pl @@ -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; diff --git a/acqui/recieveorder.pl b/acqui/recieveorder.pl index 3d19d92038..1b1889d9e8 100755 --- a/acqui/recieveorder.pl +++ b/acqui/recieveorder.pl @@ -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; diff --git a/acqui/select-late.pl b/acqui/select-late.pl index 9ea59c769a..3bdf6cd73c 100755 --- a/acqui/select-late.pl +++ b/acqui/select-late.pl @@ -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; diff --git a/acqui/suggestion-select.pl b/acqui/suggestion-select.pl index 9ffd143ebb..f40a77247c 100755 --- a/acqui/suggestion-select.pl +++ b/acqui/suggestion-select.pl @@ -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; diff --git a/acqui/supplier.pl b/acqui/supplier.pl index df272cea5d..bf18179833 100755 --- a/acqui/supplier.pl +++ b/acqui/supplier.pl @@ -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; diff --git a/admin-home.pl b/admin-home.pl index 3c5c174f3f..4bd9f8e4e7 100755 --- a/admin-home.pl +++ b/admin-home.pl @@ -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; diff --git a/admin/aqbookfund.pl b/admin/aqbookfund.pl index 867ea4a0f6..3184243290 100755 --- a/admin/aqbookfund.pl +++ b/admin/aqbookfund.pl @@ -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; diff --git a/admin/aqbudget.pl b/admin/aqbudget.pl index 0e6e1d0e6a..24b073fb31 100755 --- a/admin/aqbudget.pl +++ b/admin/aqbudget.pl @@ -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; diff --git a/admin/auth_subfields_structure.pl b/admin/auth_subfields_structure.pl index df23d3efd8..e3eac4b706 100755 --- a/admin/auth_subfields_structure.pl +++ b/admin/auth_subfields_structure.pl @@ -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; diff --git a/admin/auth_tag_structure.pl b/admin/auth_tag_structure.pl index 202a2a8125..8a6b4824bb 100755 --- a/admin/auth_tag_structure.pl +++ b/admin/auth_tag_structure.pl @@ -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; diff --git a/admin/authorised_values.pl b/admin/authorised_values.pl index ff52dcc6b3..2daf80346a 100755 --- a/admin/authorised_values.pl +++ b/admin/authorised_values.pl @@ -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; diff --git a/admin/authtypes.pl b/admin/authtypes.pl index 6fbe460cdf..e586215655 100755 --- a/admin/authtypes.pl +++ b/admin/authtypes.pl @@ -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; diff --git a/admin/biblio_framework.pl b/admin/biblio_framework.pl index 1f15813144..aad5552a97 100755 --- a/admin/biblio_framework.pl +++ b/admin/biblio_framework.pl @@ -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; diff --git a/admin/branches.pl b/admin/branches.pl index 5b1041cd54..35f4589d5c 100755 --- a/admin/branches.pl +++ b/admin/branches.pl @@ -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; diff --git a/admin/categorie.pl b/admin/categorie.pl index 7b87754190..02e42b68c0 100755 --- a/admin/categorie.pl +++ b/admin/categorie.pl @@ -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; diff --git a/admin/categoryitem.pl b/admin/categoryitem.pl index cbe1ee104d..5d5f7688bd 100644 --- a/admin/categoryitem.pl +++ b/admin/categoryitem.pl @@ -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; diff --git a/admin/checkmarc.pl b/admin/checkmarc.pl index 3c10737dd5..6b1b41a824 100755 --- a/admin/checkmarc.pl +++ b/admin/checkmarc.pl @@ -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; diff --git a/admin/currency.pl b/admin/currency.pl index 3d18bd2c88..ce97064c75 100755 --- a/admin/currency.pl +++ b/admin/currency.pl @@ -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; diff --git a/admin/issuingrules.pl b/admin/issuingrules.pl index 4ce4fb448b..afe79aae4c 100755 --- a/admin/issuingrules.pl +++ b/admin/issuingrules.pl @@ -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; diff --git a/admin/itemtypes.pl b/admin/itemtypes.pl index f5e6643338..4d8e63a8b3 100755 --- a/admin/itemtypes.pl +++ b/admin/itemtypes.pl @@ -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; diff --git a/admin/koha2marclinks.pl b/admin/koha2marclinks.pl index 7dba110d62..6af5c80e02 100755 --- a/admin/koha2marclinks.pl +++ b/admin/koha2marclinks.pl @@ -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; diff --git a/admin/marc_subfields_structure.pl b/admin/marc_subfields_structure.pl index 65d86d9211..23ba69c6ed 100755 --- a/admin/marc_subfields_structure.pl +++ b/admin/marc_subfields_structure.pl @@ -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; diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl index 7aefdf4544..70f7319a57 100755 --- a/admin/marctagstructure.pl +++ b/admin/marctagstructure.pl @@ -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; diff --git a/admin/printers.pl b/admin/printers.pl index a553889f80..40540439bf 100755 --- a/admin/printers.pl +++ b/admin/printers.pl @@ -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; diff --git a/admin/stopwords.pl b/admin/stopwords.pl index 5b0881e2ff..547970bf30 100755 --- a/admin/stopwords.pl +++ b/admin/stopwords.pl @@ -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; diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index b7733ba83b..3780858d1a 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -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; diff --git a/admin/thesaurus.pl b/admin/thesaurus.pl index e712eb3e8f..01838f26c0 100755 --- a/admin/thesaurus.pl +++ b/admin/thesaurus.pl @@ -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; diff --git a/admin/z3950servers.pl b/admin/z3950servers.pl index 0600b3456d..456767297f 100755 --- a/admin/z3950servers.pl +++ b/admin/z3950servers.pl @@ -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; diff --git a/authorities/auth_finder.pl b/authorities/auth_finder.pl index ce205773a7..32d2e5d3d2 100755 --- a/authorities/auth_finder.pl +++ b/authorities/auth_finder.pl @@ -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 diff --git a/authorities/authorities-home.pl b/authorities/authorities-home.pl index 62b3e93aa2..879bcd13b6 100755 --- a/authorities/authorities-home.pl +++ b/authorities/authorities-home.pl @@ -245,6 +245,7 @@ else { $template->param(authtypesloop => \@authtypesloop, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); # Print the page diff --git a/authorities/authorities.pl b/authorities/authorities.pl index 539adb384e..2f597238d3 100755 --- a/authorities/authorities.pl +++ b/authorities/authorities.pl @@ -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; diff --git a/authorities/blinddetail-biblio-search.pl b/authorities/blinddetail-biblio-search.pl index 57d1c4a855..4310350883 100755 --- a/authorities/blinddetail-biblio-search.pl +++ b/authorities/blinddetail-biblio-search.pl @@ -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; diff --git a/authorities/detail-biblio-search.pl b/authorities/detail-biblio-search.pl index 7e2eea460f..486ca36446 100755 --- a/authorities/detail-biblio-search.pl +++ b/authorities/detail-biblio-search.pl @@ -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; diff --git a/authorities/detail.pl b/authorities/detail.pl index 7caca0a338..461ba895cf 100755 --- a/authorities/detail.pl +++ b/authorities/detail.pl @@ -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; diff --git a/barcodes/barcodes.pl b/barcodes/barcodes.pl index 2a2bb8f80f..7e665364aa 100755 --- a/barcodes/barcodes.pl +++ b/barcodes/barcodes.pl @@ -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; diff --git a/barcodes/printerConfig.pl b/barcodes/printerConfig.pl index 1e6d0e0504..32ec9258e5 100755 --- a/barcodes/printerConfig.pl +++ b/barcodes/printerConfig.pl @@ -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; diff --git a/bookcount.pl b/bookcount.pl index 01c9a38bbf..014653d18c 100755 --- a/bookcount.pl +++ b/bookcount.pl @@ -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; diff --git a/bookshelves/addbookbybiblionumber.pl b/bookshelves/addbookbybiblionumber.pl index 837f57329d..f36fc14b25 100755 --- a/bookshelves/addbookbybiblionumber.pl +++ b/bookshelves/addbookbybiblionumber.pl @@ -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 # diff --git a/bookshelves/shelves.pl b/bookshelves/shelves.pl index 64ad7bb242..bb5587b516 100755 --- a/bookshelves/shelves.pl +++ b/bookshelves/shelves.pl @@ -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 # diff --git a/boraccount.pl b/boraccount.pl index 5d2c06bac5..6026da2889 100755 --- a/boraccount.pl +++ b/boraccount.pl @@ -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; diff --git a/bull-home.pl b/bull-home.pl index 0c11d94baa..0ba51f415b 100755 --- a/bull-home.pl +++ b/bull-home.pl @@ -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; diff --git a/bull/acqui-search.pl b/bull/acqui-search.pl index b2ae11ccc7..3a70e3c55d 100755 --- a/bull/acqui-search.pl +++ b/bull/acqui-search.pl @@ -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; diff --git a/bull/lateissues.pl b/bull/lateissues.pl index ff6d67d148..ede2c3fac9 100755 --- a/bull/lateissues.pl +++ b/bull/lateissues.pl @@ -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; diff --git a/bull/order.pl b/bull/order.pl index d03cec6b70..4ae1763218 100755 --- a/bull/order.pl +++ b/bull/order.pl @@ -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; diff --git a/bull/receipt.pl b/bull/receipt.pl index 385f249639..17a6066083 100755 --- a/bull/receipt.pl +++ b/bull/receipt.pl @@ -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; diff --git a/bull/serial-issues.pl b/bull/serial-issues.pl index 153cebd111..b7585b4af3 100755 --- a/bull/serial-issues.pl +++ b/bull/serial-issues.pl @@ -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; diff --git a/bull/statecollection.pl b/bull/statecollection.pl index 0a2bf92840..9e69d7776d 100755 --- a/bull/statecollection.pl +++ b/bull/statecollection.pl @@ -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; diff --git a/bull/subscription-add.pl b/bull/subscription-add.pl index ac09c589c3..2278cc6433 100755 --- a/bull/subscription-add.pl +++ b/bull/subscription-add.pl @@ -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') { diff --git a/bull/subscription-bib-search.pl b/bull/subscription-bib-search.pl index 8d60f0132a..4a3d05fedb 100755 --- a/bull/subscription-bib-search.pl +++ b/bull/subscription-bib-search.pl @@ -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; diff --git a/bull/subscription-renew.pl b/bull/subscription-renew.pl index 98cade18f9..9df94c73aa 100755 --- a/bull/subscription-renew.pl +++ b/bull/subscription-renew.pl @@ -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 diff --git a/catalogue-home.pl b/catalogue-home.pl index 9190b39ed4..9aa08350ca 100755 --- a/catalogue-home.pl +++ b/catalogue-home.pl @@ -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; diff --git a/circ/branchtransfers.pl b/circ/branchtransfers.pl index 62d92c7bdd..0a738a1e5b 100755 --- a/circ/branchtransfers.pl +++ b/circ/branchtransfers.pl @@ -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; diff --git a/circ/circulation.pl b/circ/circulation.pl index 11bde9cdcd..63794edbb6 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -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; diff --git a/circ/reserve.pl b/circ/reserve.pl index 7c5d2ab297..1535055a65 100755 --- a/circ/reserve.pl +++ b/circ/reserve.pl @@ -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; diff --git a/circ/returns.pl b/circ/returns.pl index 7711610595..5465998c56 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -466,6 +466,7 @@ $template->param( printer => $printer, errmsgloop => \@errmsgloop, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); # actually print the page! diff --git a/circ/selectbranchprinter.pl b/circ/selectbranchprinter.pl index aaa64ab776..10bcbda2b0 100644 --- a/circ/selectbranchprinter.pl +++ b/circ/selectbranchprinter.pl @@ -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'); diff --git a/detail.pl b/detail.pl index a166075269..a3f686bb26 100755 --- a/detail.pl +++ b/detail.pl @@ -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"), ); diff --git a/export/marc.pl b/export/marc.pl index f45f91c684..873ed93e63 100755 --- a/export/marc.pl +++ b/export/marc.pl @@ -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; } diff --git a/help.pl b/help.pl index 67ea257d72..30b4b3c1ce 100755 --- a/help.pl +++ b/help.pl @@ -42,6 +42,7 @@ sub gethelptemplate { theme => $theme, lang => $lang intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); return $template; } diff --git a/import/breeding.pl b/import/breeding.pl index e6792d2b54..ff1a123a60 100755 --- a/import/breeding.pl +++ b/import/breeding.pl @@ -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 # diff --git a/mainpage.pl b/mainpage.pl index 1079e3ad6d..8c2283408a 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -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; diff --git a/maint/catmaintain.pl b/maint/catmaintain.pl index 62df563605..b44411bbb0 100755 --- a/maint/catmaintain.pl +++ b/maint/catmaintain.pl @@ -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; diff --git a/mancredit.pl b/mancredit.pl index 6c348207ef..9befddd24a 100755 --- a/mancredit.pl +++ b/mancredit.pl @@ -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), diff --git a/members/deletemem.pl b/members/deletemem.pl index 80e328f878..97bdb3ec3b 100755 --- a/members/deletemem.pl +++ b/members/deletemem.pl @@ -103,6 +103,7 @@ if ($i > 0 || $flags->{'CHARGES'} ne '' || $data ne ''){ # } # print ""; $template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/members/imemberentry.pl b/members/imemberentry.pl index f8fe06847f..77453c9e3d 100755 --- a/members/imemberentry.pl +++ b/members/imemberentry.pl @@ -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; diff --git a/members/jmemberentry.pl b/members/jmemberentry.pl index b6b0e3ffa1..320f1a2e47 100755 --- a/members/jmemberentry.pl +++ b/members/jmemberentry.pl @@ -97,6 +97,7 @@ $template->param( member => $member, titleloop => \@titledata, cmemloop => \@cmemdata, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); diff --git a/members/member-flags.pl b/members/member-flags.pl index d1b62c1bab..41450781d9 100755 --- a/members/member-flags.pl +++ b/members/member-flags.pl @@ -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; diff --git a/members/member-password.pl b/members/member-password.pl index c7f41c62c9..28e73f8490 100755 --- a/members/member-password.pl +++ b/members/member-password.pl @@ -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; diff --git a/members/member.pl b/members/member.pl index 874255fe25..a42a84f36b 100755 --- a/members/member.pl +++ b/members/member.pl @@ -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; diff --git a/members/memberentry.pl b/members/memberentry.pl index f6076a10c6..9e8607b1d0 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -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; diff --git a/members/members-home.pl b/members/members-home.pl index 3cb998c52b..8dfd7bdd6d 100755 --- a/members/members-home.pl +++ b/members/members-home.pl @@ -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; diff --git a/members/moremember.pl b/members/moremember.pl index ee2327ecb2..a9e4c3488d 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -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; diff --git a/members/newimember.pl b/members/newimember.pl index 3bef46a9db..6044b53054 100755 --- a/members/newimember.pl +++ b/members/newimember.pl @@ -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; diff --git a/members/newjmember.pl b/members/newjmember.pl index b4fbbd86ca..23dc68022f 100755 --- a/members/newjmember.pl +++ b/members/newjmember.pl @@ -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; diff --git a/members/newmember.pl b/members/newmember.pl index 794a833fd1..a84b6721ff 100755 --- a/members/newmember.pl +++ b/members/newmember.pl @@ -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; diff --git a/modbib.pl b/modbib.pl index f18f8c0a41..64de816cd9 100755 --- a/modbib.pl +++ b/modbib.pl @@ -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; diff --git a/modbibitem.pl b/modbibitem.pl index 151ff3b83d..da22cdce73 100755 --- a/modbibitem.pl +++ b/modbibitem.pl @@ -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'}); diff --git a/moditem.pl b/moditem.pl index c4bdf54c02..92913044dc 100755 --- a/moditem.pl +++ b/moditem.pl @@ -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; diff --git a/modwebsites.pl b/modwebsites.pl index df1724e32a..b53175ad72 100755 --- a/modwebsites.pl +++ b/modwebsites.pl @@ -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; diff --git a/moredetail.pl b/moredetail.pl index 7a3157c73a..c3932d2735 100755 --- a/moredetail.pl +++ b/moredetail.pl @@ -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; diff --git a/overdue.pl b/overdue.pl index 52719f666a..eb2026fd3b 100755 --- a/overdue.pl +++ b/overdue.pl @@ -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; diff --git a/pay.pl b/pay.pl index 2305522e62..37aefdd39d 100755 --- a/pay.pl +++ b/pay.pl @@ -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; diff --git a/readingrec.pl b/readingrec.pl index f888dbaa61..235a6f0a24 100755 --- a/readingrec.pl +++ b/readingrec.pl @@ -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; diff --git a/reports-home.pl b/reports-home.pl index 844f98c67f..1cfb23fadc 100755 --- a/reports-home.pl +++ b/reports-home.pl @@ -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; diff --git a/reports/acquisitions_stats.pl b/reports/acquisitions_stats.pl index c5d962bf5f..d6a9f199b9 100755 --- a/reports/acquisitions_stats.pl +++ b/reports/acquisitions_stats.pl @@ -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); diff --git a/reports/bor_issues_top.pl b/reports/bor_issues_top.pl index 7e26681efe..3218408c05 100755 --- a/reports/bor_issues_top.pl +++ b/reports/bor_issues_top.pl @@ -63,6 +63,7 @@ my ($template, $borrowernumber, $cookie) }); $template->param(do_it => $do_it, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); if ($do_it) { # Displaying results diff --git a/reports/borrowers_out.pl b/reports/borrowers_out.pl index 5c46661601..a7926077b7 100755 --- a/reports/borrowers_out.pl +++ b/reports/borrowers_out.pl @@ -63,6 +63,7 @@ my ($template, $borrowernumber, $cookie) }); $template->param(do_it => $do_it, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); if ($do_it) { # Displaying results diff --git a/reports/borrowers_stats.pl b/reports/borrowers_stats.pl index fe32661aaa..9cdf9c6282 100755 --- a/reports/borrowers_stats.pl +++ b/reports/borrowers_stats.pl @@ -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, $digits, $borstat, \@filters); diff --git a/reports/cat_issues_top.pl b/reports/cat_issues_top.pl index 101780027c..6e6482fdd4 100755 --- a/reports/cat_issues_top.pl +++ b/reports/cat_issues_top.pl @@ -63,6 +63,7 @@ my ($template, $borrowernumber, $cookie) }); $template->param(do_it => $do_it, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); if ($do_it) { # Displaying results diff --git a/reports/catalogue_out.pl b/reports/catalogue_out.pl index e8e7377466..6b4a39f320 100755 --- a/reports/catalogue_out.pl +++ b/reports/catalogue_out.pl @@ -63,6 +63,7 @@ my ($template, $borrowernumber, $cookie) }); $template->param(do_it => $do_it, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); if ($do_it) { # Displaying results diff --git a/reports/inventory.pl b/reports/inventory.pl index 7493c73c6a..a25d301be7 100755 --- a/reports/inventory.pl +++ b/reports/inventory.pl @@ -64,6 +64,7 @@ $template->param(minlocation => $minlocation, pagesize => $pagesize, datelastseen => $datelastseen, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); if ($uploadbarcodes && length($uploadbarcodes)>0){ my $dbh=C4::Context->dbh; diff --git a/reports/issues_avg_stats.pl b/reports/issues_avg_stats.pl index 05ea9f11bf..babe528801 100755 --- a/reports/issues_avg_stats.pl +++ b/reports/issues_avg_stats.pl @@ -66,6 +66,7 @@ my ($template, $borrowernumber, $cookie) }); $template->param(do_it => $do_it, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); if ($do_it) { # Displaying results diff --git a/reports/issues_stats.pl b/reports/issues_stats.pl index ac544c00d4..ced9996293 100755 --- a/reports/issues_stats.pl +++ b/reports/issues_stats.pl @@ -70,6 +70,7 @@ my ($template, $borrowernumber, $cookie) }); $template->param(do_it => $do_it, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); if ($do_it) { # Displaying results diff --git a/reports/manager.pl b/reports/manager.pl index 2971c89c2f..60819400d0 100755 --- a/reports/manager.pl +++ b/reports/manager.pl @@ -42,6 +42,7 @@ my ($template, $borrowernumber, $cookie) $template->param(do_it => $do_it, report_name => $report_name, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); my $cgidir = C4::Context->config('intranetdir')."/cgi-bin/reports/"; unless (opendir(DIR, "$cgidir")) { diff --git a/reports/manager2.pl b/reports/manager2.pl index c461ba8114..51701d3593 100755 --- a/reports/manager2.pl +++ b/reports/manager2.pl @@ -44,6 +44,7 @@ my ($template, $borrowernumber, $cookie) $template->param(do_it => $do_it, report_name => $report_name, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); my $plugin = "./".$report_name.".plugin"; require $plugin; diff --git a/reports/reports-home.pl b/reports/reports-home.pl index 844f98c67f..1cfb23fadc 100644 --- a/reports/reports-home.pl +++ b/reports/reports-home.pl @@ -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; diff --git a/reservereport.pl b/reservereport.pl index 157b0526b6..3d4f7621cb 100755 --- a/reservereport.pl +++ b/reservereport.pl @@ -53,5 +53,6 @@ for (my $i=0;$i<$count;$i++){ $template->param( count => $count, dataloop => \@dataloop, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); print "Content-Type: text/html\n\n", $template->output; diff --git a/search.marc/dictionary.pl b/search.marc/dictionary.pl index 39611f14db..e7cc0f2a22 100755 --- a/search.marc/dictionary.pl +++ b/search.marc/dictionary.pl @@ -256,6 +256,7 @@ $template->param(search => $search[0], type=>$type, anindex => $input->param('index'), intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); # Print the page diff --git a/search.marc/search.pl b/search.marc/search.pl index b971ce0e96..529c851b21 100755 --- a/search.marc/search.pl +++ b/search.marc/search.pl @@ -359,6 +359,7 @@ else { # Print the page $template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/search.marc/suggest.pl b/search.marc/suggest.pl index 8561ac13b2..bbd0c75dfb 100755 --- a/search.marc/suggest.pl +++ b/search.marc/suggest.pl @@ -56,6 +56,7 @@ my ($template, $loggedinuser, $cookie) }); $template->param("loop" => \@loop_suggests, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/stats.pl b/stats.pl index 63b19f89d5..1c6c017548 100755 --- a/stats.pl +++ b/stats.pl @@ -155,6 +155,7 @@ $template->param( loop1 => \@loop, totalw => $totalw, total => $total, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/suggestion/acceptorreject.pl b/suggestion/acceptorreject.pl index 749825ad47..54ce0c961a 100755 --- a/suggestion/acceptorreject.pl +++ b/suggestion/acceptorreject.pl @@ -56,5 +56,6 @@ my $suggestions_loop= &searchsuggestion("","","","",'ASKED',""); $template->param(suggestions_loop => $suggestions_loop, "op_$op" => 1, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/updatebiblio.pl b/updatebiblio.pl index 63400597c2..7cac656b9e 100755 --- a/updatebiblio.pl +++ b/updatebiblio.pl @@ -94,6 +94,7 @@ if ($error ne ''){ error =>$error, dataloop => \@dataloop, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); print "Content-Type: text/html\n\n", $template->output; } else { diff --git a/z3950/search.pl b/z3950/search.pl index 9cdbf6dc9d..16faaf79b6 100755 --- a/z3950/search.pl +++ b/z3950/search.pl @@ -105,6 +105,7 @@ $template->param(isbn => $isbn, numberpending => $numberpending, oldbiblionumber => $biblionumber, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), + intranetstylesheet => C4::Context->preference("intranetstylesheet"), ); print $input->header( -type => guesstype($template->output),