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>
This commit is contained in:
parent
9fe36e0c70
commit
afd2418d73
363 changed files with 591 additions and 554 deletions
|
@ -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) {
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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
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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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' },
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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' },
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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' },
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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'},
|
||||
|
|
|
@ -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'");
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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'},
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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 },
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"));
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
flagsrequired => { editcatalogue => 'edit_catalogue' },
|
||||
debug => 1,
|
||||
}
|
||||
);
|
||||
|
||||
my $biblio = GetMarcBiblio($biblionumber);
|
||||
my $marcflavour = C4::Context->preference("marcflavour");
|
||||
|
|
|
@ -40,7 +40,7 @@ my @errors;
|
|||
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "cataloguing/merge.tmpl",
|
||||
template_name => "cataloguing/merge.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -43,14 +43,16 @@ my $biblionumber = $query->param('biblionumber');
|
|||
# The barcode of the item to move
|
||||
my $barcode = $query->param('barcode');
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/moveitem.tmpl",
|
||||
query => $query,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
my ($template, $loggedinuser, $cookie) = get_template_and_user(
|
||||
{
|
||||
template_name => "cataloguing/moveitem.tt",
|
||||
query => $query,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
flagsrequired => { editcatalogue => 'edit_items' },
|
||||
debug => 1,
|
||||
});
|
||||
debug => 1,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ sub plugin {
|
|||
my $code = $input->param('code');
|
||||
|
||||
my ($template, $loggedinuser, $cookie) = get_template_and_user({
|
||||
template_name => "cataloguing/value_builder/ajax.tmpl",
|
||||
template_name => "cataloguing/value_builder/ajax.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -72,7 +72,7 @@ sub plugin {
|
|||
my $code = $input->param('code');
|
||||
|
||||
my ($template, $loggedinuser, $cookie) = get_template_and_user({
|
||||
template_name => "cataloguing/value_builder/ajax.tmpl",
|
||||
template_name => "cataloguing/value_builder/ajax.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -104,13 +104,15 @@ sub plugin {
|
|||
$total++;
|
||||
}
|
||||
|
||||
($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "value_builder/labs_theses.tmpl",
|
||||
query => $query,
|
||||
type => 'intranet',
|
||||
authnotrequired => 0,
|
||||
debug => 1,
|
||||
});
|
||||
($template, $loggedinuser, $cookie) = get_template_and_user(
|
||||
{
|
||||
template_name => "value_builder/labs_theses.tt",
|
||||
query => $query,
|
||||
type => 'intranet',
|
||||
authnotrequired => 0,
|
||||
debug => 1,
|
||||
}
|
||||
);
|
||||
|
||||
# multi page display gestion
|
||||
my $displaynext=0;
|
||||
|
@ -161,12 +163,14 @@ sub plugin {
|
|||
);
|
||||
|
||||
} else {
|
||||
($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "value_builder/labs_theses.tmpl",
|
||||
query => $query,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
});
|
||||
($template, $loggedinuser, $cookie) = get_template_and_user(
|
||||
{
|
||||
template_name => "value_builder/labs_theses.tt",
|
||||
query => $query,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
}
|
||||
);
|
||||
|
||||
$template->param(
|
||||
'search'=>$query->param('search'),
|
||||
|
|
|
@ -195,7 +195,7 @@ my ($input) = @_;
|
|||
}
|
||||
# warn "BIGLOOP OUT".Dumper(@BIGLOOP);
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/macles.tmpl",
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/macles.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -74,7 +74,7 @@ sub plugin {
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie) = get_template_and_user(
|
||||
{ template_name => "cataloguing/value_builder/marc21_field_006.tmpl",
|
||||
{ template_name => "cataloguing/value_builder/marc21_field_006.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -73,7 +73,7 @@ my ($input) = @_;
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_field_007.tmpl",
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_field_007.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -149,7 +149,7 @@ sub plugin {
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie) = get_template_and_user(
|
||||
{ template_name => "cataloguing/value_builder/marc21_field_008.tmpl",
|
||||
{ template_name => "cataloguing/value_builder/marc21_field_008.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -93,7 +93,7 @@ sub plugin {
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_field_008_authorities.tmpl",
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_field_008_authorities.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -76,7 +76,7 @@ my ($input) = @_;
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader.tmpl",
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -76,7 +76,7 @@ my ($input) = @_;
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader_authorities.tmpl",
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader_authorities.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -73,7 +73,7 @@ my ($input) = @_;
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader.tmpl",
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -73,7 +73,7 @@ my ($input) = @_;
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader_computerfile.tmpl",
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader_computerfile.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -73,7 +73,7 @@ my ($input) = @_;
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader.tmpl",
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -71,7 +71,7 @@ my ($input) = @_;
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/normarc_field_007.tmpl",
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/normarc_field_007.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -91,7 +91,7 @@ sub plugin {
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie) = get_template_and_user(
|
||||
{ template_name => "cataloguing/value_builder/normarc_field_008.tmpl",
|
||||
{ template_name => "cataloguing/value_builder/normarc_field_008.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
|
@ -74,7 +74,7 @@ my ($input) = @_;
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/normarc_leader.tmpl",
|
||||
= get_template_and_user({template_name => "cataloguing/value_builder/normarc_leader.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue