Browse Source

Bug 11349: Change .tmpl -> .tt in scripts using templates

Since we switched to Template Toolkit we don't need to stick with the
sufix we used for HTML::Template::Pro.

This patch changes the occurences of '.tmpl' in favour of '.tt'.

To test:
- Apply the patch
- Install koha, and verify that every page can be accesed

Regards
To+

P.S. a followup will remove the glue code.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
MM-OPAC/theme_dep
Tomás Cohen Arazi 8 years ago
parent
commit
afd2418d73
  1. 4
      C4/Acquisition.pm
  2. 6
      C4/Auth.pm
  3. 6
      C4/InstallAuth.pm
  4. 2
      about.pl
  5. 2
      acqui/acqui-home.pl
  6. 4
      acqui/addorder.pl
  7. 2
      acqui/addorderiso2709.pl
  8. 2
      acqui/aqbasketuser_search.pl
  9. 2
      acqui/basket.pl
  10. 2
      acqui/basketgroup.pl
  11. 2
      acqui/basketheader.pl
  12. 2
      acqui/booksellers.pl
  13. 2
      acqui/check_budget_total.pl
  14. 2
      acqui/histsearch.pl
  15. 2
      acqui/invoice.pl
  16. 2
      acqui/invoices.pl
  17. 18
      acqui/lateorders.pl
  18. 2
      acqui/modordernotes.pl
  19. 2
      acqui/neworderbiblio.pl
  20. 4
      acqui/neworderempty.pl
  21. 2
      acqui/newordersuggestion.pl
  22. 2
      acqui/orderreceive.pl
  23. 2
      acqui/parcel.pl
  24. 2
      acqui/parcels.pl
  25. 2
      acqui/supplier.pl
  26. 2
      acqui/transferorder.pl
  27. 2
      acqui/uncertainprice.pl
  28. 2
      acqui/z3950_search.pl
  29. 2
      admin/admin-home.pl
  30. 15
      admin/aqbudgetperiods.pl
  31. 2
      admin/aqcontract.pl
  32. 2
      admin/aqplan.pl
  33. 2
      admin/auth_subfields_structure.pl
  34. 2
      admin/auth_tag_structure.pl
  35. 2
      admin/authorised_values.pl
  36. 2
      admin/authtypes.pl
  37. 2
      admin/biblio_framework.pl
  38. 2
      admin/branch_transfer_limits.pl
  39. 2
      admin/branches.pl
  40. 2
      admin/categorie.pl
  41. 2
      admin/check_budget_parent.pl
  42. 2
      admin/check_parent_total.pl
  43. 2
      admin/checkmarc.pl
  44. 2
      admin/cities.pl
  45. 2
      admin/classsources.pl
  46. 2
      admin/clone-rules.pl
  47. 2
      admin/currency.pl
  48. 18
      admin/env_tz_test.pl
  49. 2
      admin/fieldmapping.pl
  50. 2
      admin/item_circulation_alerts.pl
  51. 2
      admin/itemtypes.pl
  52. 2
      admin/koha2marclinks.pl
  53. 2
      admin/marc_subfields_structure.pl
  54. 2
      admin/marctagstructure.pl
  55. 2
      admin/matching-rules.pl
  56. 2
      admin/patron-attr-types.pl
  57. 2
      admin/preferences.pl
  58. 18
      admin/printers.pl
  59. 2
      admin/smart-rules.pl
  60. 2
      admin/stopwords.pl
  61. 2
      admin/systempreferences.pl
  62. 2
      admin/transport-cost-matrix.pl
  63. 2
      admin/z3950servers.pl
  64. 6
      authorities/authorities-home.pl
  65. 2
      authorities/authorities.pl
  66. 2
      authorities/blinddetail-biblio-search.pl
  67. 2
      authorities/detail-biblio-search.pl
  68. 18
      authorities/detail.pl
  69. 2
      basket/basket.pl
  70. 2
      basket/downloadcart.pl
  71. 4
      basket/sendbasket.pl
  72. 2
      catalogue/ISBDdetail.pl
  73. 4
      catalogue/MARCdetail.pl
  74. 2
      catalogue/detail.pl
  75. 2
      catalogue/imageviewer.pl
  76. 2
      catalogue/issuehistory.pl
  77. 2
      catalogue/labeledMARCdetail.pl
  78. 21
      catalogue/moredetail.pl
  79. 4
      catalogue/search.pl
  80. 2
      catalogue/showmarc.pl
  81. 2
      cataloguing/addbooks.pl
  82. 18
      cataloguing/linkitem.pl
  83. 2
      cataloguing/merge.pl
  84. 16
      cataloguing/moveitem.pl
  85. 2
      cataloguing/value_builder/callnumber-KU.pl
  86. 2
      cataloguing/value_builder/callnumber.pl
  87. 30
      cataloguing/value_builder/labs_theses.pl
  88. 2
      cataloguing/value_builder/macles.pl
  89. 2
      cataloguing/value_builder/marc21_field_006.pl
  90. 2
      cataloguing/value_builder/marc21_field_007.pl
  91. 2
      cataloguing/value_builder/marc21_field_008.pl
  92. 2
      cataloguing/value_builder/marc21_field_008_authorities.pl
  93. 2
      cataloguing/value_builder/marc21_leader.pl
  94. 2
      cataloguing/value_builder/marc21_leader_authorities.pl
  95. 2
      cataloguing/value_builder/marc21_leader_book.pl
  96. 2
      cataloguing/value_builder/marc21_leader_computerfile.pl
  97. 2
      cataloguing/value_builder/marc21_leader_video.pl
  98. 2
      cataloguing/value_builder/normarc_field_007.pl
  99. 2
      cataloguing/value_builder/normarc_field_008.pl
  100. 2
      cataloguing/value_builder/normarc_leader.pl

4
C4/Acquisition.pm

@ -295,7 +295,7 @@ sub GetBasketAsCSV {
my @orders = GetOrders($basketno);
my $contract = GetContract($basket->{'contractnumber'});
my $template = C4::Templates::gettemplate("acqui/csv/basket.tmpl", "intranet", $cgi);
my $template = C4::Templates::gettemplate("acqui/csv/basket.tt", "intranet", $cgi);
my @rows;
foreach my $order (@orders) {
@ -356,7 +356,7 @@ sub GetBasketGroupAsCSV {
my ($basketgroupid, $cgi) = @_;
my $baskets = GetBasketsByBasketgroup($basketgroupid);
my $template = C4::Templates::gettemplate('acqui/csv/basketgroup.tmpl', 'intranet', $cgi);
my $template = C4::Templates::gettemplate('acqui/csv/basketgroup.tt', 'intranet', $cgi);
my @rows;
for my $basket (@$baskets) {

6
C4/Auth.pm

@ -82,7 +82,7 @@ C4::Auth - Authenticates Koha users
my ($template, $borrowernumber, $cookie)
= get_template_and_user(
{
template_name => "opac-main.tmpl",
template_name => "opac-main.tt",
query => $query,
type => "opac",
authnotrequired => 0,
@ -106,7 +106,7 @@ automatically. This gets loaded into the template.
my ($template, $borrowernumber, $cookie)
= get_template_and_user(
{
template_name => "opac-main.tmpl",
template_name => "opac-main.tt",
query => $query,
type => "opac",
authnotrequired => 0,
@ -1046,7 +1046,7 @@ sub checkauth {
$LibraryNameTitle =~ s/<(?:\/?)(?:br|p)\s*(?:\/?)>/ /sgi;
$LibraryNameTitle =~ s/<(?:[^<>'"]|'(?:[^']*)'|"(?:[^"]*)")*>//sg;
my $template_name = ( $type eq 'opac' ) ? 'opac-auth.tmpl' : 'auth.tmpl';
my $template_name = ( $type eq 'opac' ) ? 'opac-auth.tt' : 'auth.tt';
my $template = C4::Templates::gettemplate($template_name, $type, $query );
$template->param(
branchloop => GetBranchesLoop(),

6
C4/InstallAuth.pm

@ -46,7 +46,7 @@ InstallAuth - Authenticates Koha users for Install process
my $query = new CGI;
my ($template, $borrowernumber, $cookie)
= get_template_and_user({template_name => "opac-main.tmpl",
= get_template_and_user({template_name => "opac-main.tt",
query => $query,
type => "opac",
authnotrequired => 1,
@ -81,7 +81,7 @@ InstallAuth - Authenticates Koha users for Install process
=item get_template_and_user
my ($template, $borrowernumber, $cookie)
= get_template_and_user({template_name => "opac-main.tmpl",
= get_template_and_user({template_name => "opac-main.tt",
query => $query,
type => "opac",
authnotrequired => 1,
@ -234,7 +234,7 @@ sub checkauth {
my $dbh = C4::Context->dbh();
my $template_name;
$template_name = "installer/auth.tmpl";
$template_name = "installer/auth.tt";
# state variables
my $loggedin = 0;

2
about.pl

@ -38,7 +38,7 @@ use C4::Installer;
my $query = new CGI;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "about.tmpl",
template_name => "about.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

2
acqui/acqui-home.pl

@ -42,7 +42,7 @@ use C4::Suggestions;
my $query = CGI->new;
my ( $template, $loggedinuser, $cookie, $userflags ) = get_template_and_user(
{ template_name => 'acqui/acqui-home.tmpl',
{ template_name => 'acqui/acqui-home.tt',
query => $query,
type => 'intranet',
authnotrequired => 0,

4
acqui/addorder.pl

@ -155,7 +155,7 @@ unless($confirm_budget_exceeding) {
|| ( ($budget_expenditure+0) && ($budget_used + $total) > $budget_expenditure) )
{
my ($template, $loggedinuser, $cookie) = get_template_and_user({
template_name => "acqui/addorder.tmpl",
template_name => "acqui/addorder.tt",
query => $input,
type => "intranet",
authnotrequired => 0,
@ -212,7 +212,7 @@ unless($confirm_budget_exceeding) {
# get_template_and_user used only to check auth & get user id
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "acqui/booksellers.tmpl",
template_name => "acqui/booksellers.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
acqui/addorderiso2709.pl

@ -47,7 +47,7 @@ use C4::Members;
my $input = new CGI;
my ($template, $loggedinuser, $cookie, $userflags) = get_template_and_user({
template_name => "acqui/addorderiso2709.tmpl",
template_name => "acqui/addorderiso2709.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
acqui/aqbasketuser_search.pl

@ -31,7 +31,7 @@ my $input = new CGI;
my $dbh = C4::Context->dbh;
my ( $template, $loggedinuser, $cookie, $staff_flags ) = get_template_and_user(
{ template_name => "acqui/aqbasketuser_search.tmpl",
{ template_name => "acqui/aqbasketuser_search.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
acqui/basket.pl

@ -71,7 +71,7 @@ my $booksellerid = $query->param('booksellerid');
my ( $template, $loggedinuser, $cookie, $userflags ) = get_template_and_user(
{
template_name => "acqui/basket.tmpl",
template_name => "acqui/basket.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

2
acqui/basketgroup.pl

@ -62,7 +62,7 @@ use C4::Members qw/GetMember/;
our $input=new CGI;
our ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "acqui/basketgroup.tmpl",
= get_template_and_user({template_name => "acqui/basketgroup.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
acqui/basketheader.pl

@ -59,7 +59,7 @@ use C4::Bookseller qw/GetBookSellerFromId GetBookSeller/;
my $input = new CGI;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "acqui/basketheader.tmpl",
template_name => "acqui/basketheader.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
acqui/booksellers.pl

@ -66,7 +66,7 @@ use C4::Context;
my $query = CGI->new;
my ( $template, $loggedinuser, $cookie, $userflags ) = get_template_and_user(
{ template_name => 'acqui/booksellers.tmpl',
{ template_name => 'acqui/booksellers.tt',
query => $query,
type => 'intranet',
authnotrequired => 0,

2
acqui/check_budget_total.pl

@ -36,7 +36,7 @@ my $budget_id = $input->param('budget_id');
my $total = $input->param('total');
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{ template_name => "acqui/ajax.tmpl",
{ template_name => "acqui/ajax.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
acqui/histsearch.pl

@ -86,7 +86,7 @@ if ( not $input->param('from') ) {
my $dbh = C4::Context->dbh;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "acqui/histsearch.tmpl",
template_name => "acqui/histsearch.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
acqui/invoice.pl

@ -40,7 +40,7 @@ use Koha::Misc::Files;
my $input = new CGI;
my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user(
{
template_name => 'acqui/invoice.tmpl',
template_name => 'acqui/invoice.tt',
query => $input,
type => 'intranet',
authnotrequired => 0,

2
acqui/invoices.pl

@ -41,7 +41,7 @@ use C4::Budgets;
my $input = CGI->new;
my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user(
{
template_name => 'acqui/invoices.tmpl',
template_name => 'acqui/invoices.tt',
query => $input,
type => 'intranet',
authnotrequired => 0,

18
acqui/lateorders.pl

@ -56,14 +56,16 @@ use C4::Branch; # GetBranches
use Koha::DateUtils;
my $input = new CGI;
my ($template, $loggedinuser, $cookie) = get_template_and_user({
template_name => "acqui/lateorders.tmpl",
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {acquisition => 'order_receive'},
debug => 1,
});
my ($template, $loggedinuser, $cookie) = get_template_and_user(
{
template_name => "acqui/lateorders.tt",
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { acquisition => 'order_receive' },
debug => 1,
}
);
my $booksellerid = $input->param('booksellerid') || undef; # we don't want "" or 0
my $delay = $input->param('delay') // 0;

2
acqui/modordernotes.pl

@ -36,7 +36,7 @@ use C4::Bookseller qw( GetBookSellerFromId);
my $input = new CGI;
my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user( {
template_name => 'acqui/modordernotes.tmpl',
template_name => 'acqui/modordernotes.tt',
query => $input,
type => 'intranet',
authnotrequired => 0,

2
acqui/neworderbiblio.pl

@ -84,7 +84,7 @@ my $bookseller = GetBookSellerFromId($booksellerid);
# getting the template
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "acqui/neworderbiblio.tmpl",
template_name => "acqui/neworderbiblio.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

4
acqui/neworderempty.pl

@ -112,7 +112,7 @@ my $budget_name;
our ( $template, $loggedinuser, $cookie, $userflags ) = get_template_and_user(
{
template_name => "acqui/neworderempty.tmpl",
template_name => "acqui/neworderempty.tt",
query => $input,
type => "intranet",
authnotrequired => 0,
@ -514,7 +514,7 @@ sub Load_Duplicate {
my ($duplicatetitle)= @_;
($template, $loggedinuser, $cookie) = get_template_and_user(
{
template_name => "acqui/neworderempty_duplicate.tmpl",
template_name => "acqui/neworderempty_duplicate.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
acqui/newordersuggestion.pl

@ -116,7 +116,7 @@ $op = 'else' unless $op;
my $dbh = C4::Context->dbh;
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
{
template_name => "acqui/newordersuggestion.tmpl",
template_name => "acqui/newordersuggestion.tt",
type => "intranet",
query => $input,
flagsrequired => { acquisition => 'order_manage' },

2
acqui/orderreceive.pl

@ -97,7 +97,7 @@ $results = SearchOrders({
my ( $template, $loggedinuser, $cookie, $userflags ) = get_template_and_user(
{
template_name => "acqui/orderreceive.tmpl",
template_name => "acqui/orderreceive.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
acqui/parcel.pl

@ -111,7 +111,7 @@ sub get_gst {
}
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "acqui/parcel.tmpl",
= get_template_and_user({template_name => "acqui/parcel.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
acqui/parcels.pl

@ -89,7 +89,7 @@ my $op = $input->param('op');
$resultsperpage ||= 20;
our ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user(
{ template_name => 'acqui/parcels.tmpl',
{ template_name => 'acqui/parcels.tt',
query => $input,
type => 'intranet',
authnotrequired => 0,

2
acqui/supplier.pl

@ -59,7 +59,7 @@ if ($booksellerid) {
}
my $op = $query->param('op') || 'display';
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{ template_name => 'acqui/supplier.tmpl',
{ template_name => 'acqui/supplier.tt',
query => $query,
type => 'intranet',
authnotrequired => 0,

2
acqui/transferorder.pl

@ -33,7 +33,7 @@ use Date::Calc qw/Today/;
my $input = new CGI;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{ template_name => "acqui/transferorder.tmpl",
{ template_name => "acqui/transferorder.tt",
query => $input,
type => "intranet",
flagsrequired => { acquisition => 'order_manage' },

2
acqui/uncertainprice.pl

@ -58,7 +58,7 @@ use C4::Biblio qw/GetBiblioData/;
my $input=new CGI;
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "acqui/uncertainprice.tmpl",
= get_template_and_user({template_name => "acqui/uncertainprice.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
acqui/z3950_search.pl

@ -67,7 +67,7 @@ my $vendor = GetBookSellerFromId($booksellerid);
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "acqui/z3950_search.tmpl",
template_name => "acqui/z3950_search.tt",
query => $input,
type => "intranet",
flagsrequired => { acquisition => 'order_manage' },

2
admin/admin-home.pl

@ -26,7 +26,7 @@ use C4::Output;
my $query = new CGI;
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/admin-home.tmpl",
= get_template_and_user({template_name => "admin/admin-home.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

15
admin/aqbudgetperiods.pl

@ -80,13 +80,14 @@ my $inactivepagesize = 20;
$searchfield =~ s/\,//g;
my ($template, $borrowernumber, $cookie, $staff_flags ) = get_template_and_user(
{ template_name => "admin/aqbudgetperiods.tmpl",
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { acquisition => 'period_manage' },
debug => 1,
}
{
template_name => "admin/aqbudgetperiods.tt",
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { acquisition => 'period_manage' },
debug => 1,
}
);

2
admin/aqcontract.pl

@ -38,7 +38,7 @@ my $op = $input->param('op') || 'list';
my $bookseller = GetBookSellerFromId($booksellerid);
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{ template_name => "admin/aqcontract.tmpl",
{ template_name => "admin/aqcontract.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/aqplan.pl

@ -45,7 +45,7 @@ my $input = new CGI;
my $dbh = C4::Context->dbh;
my ( $template, $borrowernumber, $cookie, $staff_flags ) = get_template_and_user(
{ template_name => "admin/aqplan.tmpl",
{ template_name => "admin/aqplan.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/auth_subfields_structure.pl

@ -53,7 +53,7 @@ my $op = $input->param('op') || '';
my $script_name = "/cgi-bin/koha/admin/auth_subfields_structure.pl";
my ($template, $borrowernumber, $cookie) = get_template_and_user(
{ template_name => "admin/auth_subfields_structure.tmpl",
{ template_name => "admin/auth_subfields_structure.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/auth_tag_structure.pl

@ -46,7 +46,7 @@ my $dbh = C4::Context->dbh;
# open template
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/auth_tag_structure.tmpl",
= get_template_and_user({template_name => "admin/auth_tag_structure.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/authorised_values.pl

@ -54,7 +54,7 @@ our $script_name = "/cgi-bin/koha/admin/authorised_values.pl";
our $dbh = C4::Context->dbh;
our ($template, $borrowernumber, $cookie)= get_template_and_user({
template_name => "admin/authorised_values.tmpl",
template_name => "admin/authorised_values.tt",
authnotrequired => 0,
flagsrequired => {parameters => 'parameters_remaining_permissions'},
query => $input,

2
admin/authtypes.pl

@ -41,7 +41,7 @@ my $offset = $input->param('offset') || 0;
my $op = $input->param('op') || '';
my $pagesize = 20;
my ($template, $borrowernumber, $cookie)
= get_template_and_user({template_name => "admin/authtypes.tmpl",
= get_template_and_user({template_name => "admin/authtypes.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/biblio_framework.pl

@ -43,7 +43,7 @@ my $op = $input->param('op') || '';
my $pagesize = 20;
my ($template, $borrowernumber, $cookie)
= get_template_and_user({template_name => "admin/biblio_framework.tmpl",
= get_template_and_user({template_name => "admin/biblio_framework.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/branch_transfer_limits.pl

@ -32,7 +32,7 @@ use C4::Circulation qw{ IsBranchTransferAllowed DeleteBranchTransferLimits Creat
my $input = new CGI;
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/branch_transfer_limits.tmpl",
= get_template_and_user({template_name => "admin/branch_transfer_limits.tt",
query => $input,
type => "intranet",
flagsrequired => {borrowers => 1},

2
admin/branches.pl

@ -59,7 +59,7 @@ my $op = $input->param('op') || '';
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
{
template_name => "admin/branches.tmpl",
template_name => "admin/branches.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/categorie.pl

@ -76,7 +76,7 @@ my $block_expired = $input->param("block_expired");
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "admin/categorie.tmpl",
template_name => "admin/categorie.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/check_budget_parent.pl

@ -38,7 +38,7 @@ my $budget_id = $input->param('budget_id');
my $new_parent_id = $input->param('new_parent');
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{ template_name => "acqui/ajax.tmpl",
{ template_name => "acqui/ajax.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/check_parent_total.pl

@ -44,7 +44,7 @@ my $period_id = $input->param('period_id');
my $returncode;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{ template_name => "acqui/ajax.tmpl",
{ template_name => "acqui/ajax.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/checkmarc.pl

@ -30,7 +30,7 @@ use C4::Biblio;
my $input = new CGI;
my ($template, $borrowernumber, $cookie)
= get_template_and_user({template_name => "admin/checkmarc.tmpl",
= get_template_and_user({template_name => "admin/checkmarc.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/cities.pl

@ -37,7 +37,7 @@ my $cityid = $input->param('cityid');
my $op = $input->param('op') || '';
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/cities.tmpl",
= get_template_and_user({template_name => "admin/cities.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/classsources.pl

@ -36,7 +36,7 @@ my $source_code = $input->param('class_source');
my $rule_code = $input->param('sort_rule');
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/classsources.tmpl",
= get_template_and_user({template_name => "admin/classsources.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/clone-rules.pl

@ -39,7 +39,7 @@ my $input = new CGI;
my $dbh = C4::Context->dbh;
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/clone-rules.tmpl",
= get_template_and_user({template_name => "admin/clone-rules.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/currency.pl

@ -54,7 +54,7 @@ my $script_name = '/cgi-bin/koha/admin/currency.pl';
our $pagesize = 20;
our ($template, $loggedinuser, $cookie) = get_template_and_user({
template_name => 'admin/currency.tmpl',
template_name => 'admin/currency.tt',
query => $input,
type => 'intranet',
flagsrequired => {parameters => 'parameters_remaining_permissions'},

18
admin/env_tz_test.pl

@ -9,14 +9,16 @@ use C4::Context;
use C4::Auth;
my $q = CGI->new();
my ($template, $loggedinuser, $cookie) = get_template_and_user({
template_name => "admin/admin-home.tmpl", # whatever, we don't really use the template anyway.
query => $q,
type => "intranet",
authnotrequired => 0,
flagsrequired => {parameters => 'parameters_remaining_permissions'},
debug => 1,
});
my ($template, $loggedinuser, $cookie) = get_template_and_user(
{
template_name => "admin/admin-home.tt", # whatever, we don't really use the template anyway.
query => $q,
type => "intranet",
authnotrequired => 0,
flagsrequired => {parameters => 'parameters_remaining_permissions'},
debug => 1,
}
);
my $dbh = C4::Context->dbh;
my $tz_sth = $dbh->prepare("SHOW VARIABLES LIKE 'time_zone'");

2
admin/fieldmapping.pl

@ -35,7 +35,7 @@ my $op = $query->param('op') || q{};
my $id = $query->param('id');
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/fieldmapping.tmpl",
= get_template_and_user({template_name => "admin/fieldmapping.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

2
admin/item_circulation_alerts.pl

@ -61,7 +61,7 @@ sub show {
my $dbh = C4::Context->dbh;
my ($template, $user, $cookie) = get_template_and_user(
{
template_name => "admin/item_circulation_alerts.tmpl",
template_name => "admin/item_circulation_alerts.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/itemtypes.pl

@ -73,7 +73,7 @@ my $op = $input->param('op');
$searchfield =~ s/\,//g;
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
{
template_name => "admin/itemtypes.tmpl",
template_name => "admin/itemtypes.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/koha2marclinks.pl

@ -35,7 +35,7 @@ my $script_name = 'koha2marclinks.pl';
my ( $template, $borrowernumber, $cookie ) = get_template_and_user (
{
template_name => "admin/koha2marclinks.tmpl",
template_name => "admin/koha2marclinks.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/marc_subfields_structure.pl

@ -67,7 +67,7 @@ my $script_name = "/cgi-bin/koha/admin/marc_subfields_structure.pl";
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
{
template_name => "admin/marc_subfields_structure.tmpl",
template_name => "admin/marc_subfields_structure.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/marctagstructure.pl

@ -48,7 +48,7 @@ my $dbh = C4::Context->dbh;
# open template
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/marctagstructure.tmpl",
= get_template_and_user({template_name => "admin/marctagstructure.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/matching-rules.pl

@ -35,7 +35,7 @@ my $op = $input->param('op') || '';
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/matching-rules.tmpl",
= get_template_and_user({template_name => "admin/matching-rules.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/patron-attr-types.pl

@ -39,7 +39,7 @@ my $op = $input->param('op') || '';
our ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/patron-attr-types.tmpl",
= get_template_and_user({template_name => "admin/patron-attr-types.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/preferences.pl

@ -264,7 +264,7 @@ my $dbh = C4::Context->dbh;
our $input = new CGI;
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
{ template_name => "admin/preferences.tmpl",
{ template_name => "admin/preferences.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

18
admin/printers.pl

@ -67,14 +67,16 @@ my $pagesize=20;
my $op = $input->param('op');
$searchfield=~ s/\,//g;
my ($template, $loggedinuser, $cookie) = get_template_and_user({
template_name => "admin/printers.tmpl",
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {parameters => 'parameters_remaining_permissions'},
debug => 1,
});
my ($template, $loggedinuser, $cookie) = get_template_and_user(
{
template_name => "admin/printers.tt",
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {parameters => 'parameters_remaining_permissions'},
debug => 1,
}
);
$template->param(searchfield => $searchfield,
script_name => $script_name);

2
admin/smart-rules.pl

@ -34,7 +34,7 @@ my $dbh = C4::Context->dbh;
# my $flagsrequired;
# $flagsrequired->{circulation}=1;
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/smart-rules.tmpl",
= get_template_and_user({template_name => "admin/smart-rules.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/stopwords.pl

@ -45,7 +45,7 @@ my $pagesize = 20;
my $op = $input->param('op') || '';
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/stopwords.tmpl",
= get_template_and_user({template_name => "admin/stopwords.tt",
query => $input,
type => "intranet",
flagsrequired => {parameters => 'parameters_remaining_permissions'},

2
admin/systempreferences.pl

@ -207,7 +207,7 @@ my $offset = $input->param('offset') || 0;
my $script_name = "/cgi-bin/koha/admin/systempreferences.pl";
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
{ template_name => "admin/systempreferences.tmpl",
{ template_name => "admin/systempreferences.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/transport-cost-matrix.pl

@ -33,7 +33,7 @@ use Data::Dumper;
my $input = new CGI;
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "admin/transport-cost-matrix.tmpl",
= get_template_and_user({template_name => "admin/transport-cost-matrix.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
admin/z3950servers.pl

@ -39,7 +39,7 @@ my $id = $input->param('id') || 0;
my $searchfield = '';
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( {
template_name => "admin/z3950servers.tmpl",
template_name => "admin/z3950servers.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

6
authorities/authorities-home.pl

@ -61,7 +61,7 @@ foreach my $thisauthtype (
if ( $op eq "delete" ) {
( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "authorities/authorities-home.tmpl",
template_name => "authorities/authorities-home.tt",
query => $query,
type => 'intranet',
authnotrequired => 0,
@ -101,7 +101,7 @@ if ( $op eq "do_search" ) {
( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "authorities/searchresultlist.tmpl",
template_name => "authorities/searchresultlist.tt",
query => $query,
type => 'intranet',
authnotrequired => 0,
@ -189,7 +189,7 @@ if ( $op eq "do_search" ) {
if ( $op eq '' ) {
( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "authorities/authorities-home.tmpl",
template_name => "authorities/authorities-home.tt",
query => $query,
type => 'intranet',
authnotrequired => 0,

2
authorities/authorities.pl

@ -570,7 +570,7 @@ if(!$authtypecode) {
}
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "authorities/authorities.tmpl",
= get_template_and_user({template_name => "authorities/authorities.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
authorities/blinddetail-biblio-search.pl

@ -67,7 +67,7 @@ if ($authid) {
# open template
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "authorities/blinddetail-biblio-search.tmpl",
template_name => "authorities/blinddetail-biblio-search.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

2
authorities/detail-biblio-search.pl

@ -63,7 +63,7 @@ my $tagslib = &GetTagsLabels(1,$authtypecode);
my $record =GetAuthority($authid);
# open template
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "authorities/detail-biblio-search.tmpl",
= get_template_and_user({template_name => "authorities/detail-biblio-search.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

18
authorities/detail.pl

@ -161,14 +161,16 @@ my $query=new CGI;
my $dbh=C4::Context->dbh;
# open template
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "authorities/detail.tmpl",
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => {catalogue => 1},
debug => 1,
});
my ($template, $loggedinuser, $cookie) = get_template_and_user(
{
template_name => "authorities/detail.tt",
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => { catalogue => 1 },
debug => 1,
}
);
my $authid = $query->param('authid');

2
basket/basket.pl

@ -30,7 +30,7 @@ my $query = new CGI;
my ( $template, $borrowernumber, $cookie ) = get_template_and_user (
{
template_name => "basket/basket.tmpl",
template_name => "basket/basket.tt",
query => $query,
type => "intranet",
flagsrequired => { borrow => 1 },

2
basket/downloadcart.pl

@ -36,7 +36,7 @@ my $query = new CGI;
my ( $template, $borrowernumber, $cookie ) = get_template_and_user (
{
template_name => "basket/downloadcart.tmpl",
template_name => "basket/downloadcart.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

4
basket/sendbasket.pl

@ -35,7 +35,7 @@ my $query = new CGI;
my ( $template, $borrowernumber, $cookie ) = get_template_and_user (
{
template_name => "basket/sendbasketform.tmpl",
template_name => "basket/sendbasketform.tt",
query => $query,
type => "intranet",
authnotrequired => 0,
@ -59,7 +59,7 @@ if ( $email_add ) {
my ( $template2, $borrowernumber, $cookie ) = get_template_and_user(
{
template_name => "basket/sendbasket.tmpl",
template_name => "basket/sendbasket.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

2
catalogue/ISBDdetail.pl

@ -61,7 +61,7 @@ my $biblionumber = $query->param('biblionumber');
# open template
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "catalogue/ISBDdetail.tmpl",
template_name => "catalogue/ISBDdetail.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

4
catalogue/MARCdetail.pl

@ -33,7 +33,7 @@ This script needs a biblionumber as parameter
It shows the biblio in a (nice) MARC format depending on MARC
parameters tables.
The template is in <templates_dir>/catalogue/MARCdetail.tmpl.
The template is in <templates_dir>/catalogue/MARCdetail.tt.
this template must be divided into 11 "tabs".
The first 10 tabs present the biblio, the 11th one presents
@ -73,7 +73,7 @@ my $subscriptionid = $query->param('subscriptionid');
# open template
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "catalogue/MARCdetail.tmpl",
template_name => "catalogue/MARCdetail.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

2
catalogue/detail.pl

@ -51,7 +51,7 @@ my $analyze = $query->param('analyze');
my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user(
{
template_name => 'catalogue/detail.tmpl',
template_name => 'catalogue/detail.tt',
query => $query,
type => "intranet",
authnotrequired => 0,

2
catalogue/imageviewer.pl

@ -32,7 +32,7 @@ use C4::Acquisition qw(GetOrdersByBiblionumber);
my $query = new CGI;
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
{
template_name => "catalogue/imageviewer.tmpl",
template_name => "catalogue/imageviewer.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

2
catalogue/issuehistory.pl

@ -30,7 +30,7 @@ use C4::Search; # enabled_staff_search_views
my $query = new CGI;
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
{
template_name => "catalogue/issuehistory.tmpl",
template_name => "catalogue/issuehistory.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

2
catalogue/labeledMARCdetail.pl

@ -42,7 +42,7 @@ my $popup =
# open template
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "catalogue/labeledMARCdetail.tmpl",
template_name => "catalogue/labeledMARCdetail.tt",
query => $query,
type => "intranet",
authnotrequired => 0,

21
catalogue/moredetail.pl

@ -43,15 +43,18 @@ my $query=new CGI;
# FIXME subject is not exported to the template?
my $subject=$query->param('subject');
# if its a subject we need to use the subject.tmpl
my ($template, $loggedinuser, $cookie) = get_template_and_user({
template_name => ($subject? 'catalogue/subject.tmpl':
'catalogue/moredetail.tmpl'),
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => {catalogue => 1},
});
# if its a subject we need to use the subject.tt
my ($template, $loggedinuser, $cookie) = get_template_and_user(
{
template_name => ( $subject
? 'catalogue/subject.tt'
: 'catalogue/moredetail.tt'),
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => { catalogue => 1 },
}
);
if($query->cookie("holdfor")){
my $holdfor_patron = GetMember('borrowernumber' => $query->cookie("holdfor"));

4
catalogue/search.pl

@ -168,10 +168,10 @@ my $template_name;
my $template_type;
my @params = $cgi->param("limit");
if ((@params>=1) || ($cgi->param("q")) || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) ) {
$template_name = 'catalogue/results.tmpl';
$template_name = 'catalogue/results.tt';
}
else {
$template_name = 'catalogue/advsearch.tmpl';
$template_name = 'catalogue/advsearch.tt';
$template_type = 'advsearch';
}
# load the template

2
catalogue/showmarc.pl

@ -68,7 +68,7 @@ if($view eq 'card') {
else {
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "catalogue/showmarc.tmpl",
template_name => "catalogue/showmarc.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

2
cataloguing/addbooks.pl

@ -45,7 +45,7 @@ my $results_per_page = 20;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "cataloguing/addbooks.tmpl",
template_name => "cataloguing/addbooks.tt",
query => $input,
type => "intranet",
authnotrequired => 0,

18
cataloguing/linkitem.pl

@ -35,14 +35,16 @@ my $query = CGI->new;
my $biblionumber = $query->param('biblionumber');
my $barcode = $query->param('barcode');
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "cataloguing/linkitem.tmpl",
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 'edit_catalogue'},
debug => 1,
});
my ($template, $loggedinuser, $cookie) = get_template_and_user(
{
template_name => "cataloguing/linkitem.tt",
query => $query,