Bug 37826: Remove the use of the script_name variable where it is unnecessary

Most of the places where a "script_name" variable used it is not
strictly necessary. Because it is also used inconsistently, I think it's
better to simply remove the use of the variable where it isn't strictly
necessary.

This patch removes creation of the template variable from several
scripts and updates the corresponding template with the URL itself.

To test, apply the patch and restart services. Test the following pages,
including the various permutations where they are present, e.g. New,
Edit, Delete.

- Administration -> Cities and towns -> Search via the header search
  form
- Administratoin -> Currencies and exchange rates -> Search via the
  header search form
- Administration -> Desks
- Administration -> Budgets
- Administration -> Authority types
- Administration -> Authority types -> MARC structure -> Subfields
- Administration -> Classification configuration
- Administration -> MARC bibliographic framework
- Administration -> MARC bibliographic framework -> MARC structure ->
  Subfields
- Administration -> Record matching rules
- Administration -> OAI repositories
- Administration -> Patron attribute types
- Administration -> System preferences -> Local use
- Administration -> Z39.50/SRU servers
- Acquisitions -> Vendor -> Contracts
- Acquisitions -> Vendor -> Basket -> Export as CSV
- Acquisitions -> Vendor -> Basket -> Edit basket
- Acquisitions -> Vendor -> Basket groups
- Tools -> Import patrons
- Tools -> Notices and slips

Sponsored-by: Athens County Public Libraries
Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Owen Leonard 2024-09-06 12:41:39 +00:00 committed by Katrin Fischer
parent 03392b660e
commit 8a433d4f20
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
36 changed files with 81 additions and 127 deletions

View file

@ -34,7 +34,6 @@ my $tagfield = $input->param('tagfield');
my $tagsubfield = $input->param('tagsubfield'); my $tagsubfield = $input->param('tagsubfield');
my $authtypecode = $input->param('authtypecode'); my $authtypecode = $input->param('authtypecode');
my $op = $input->param('op') || ''; my $op = $input->param('op') || '';
my $script_name = "/cgi-bin/koha/admin/auth_subfields_structure.pl";
my ($template, $borrowernumber, $cookie) = get_template_and_user( my ($template, $borrowernumber, $cookie) = get_template_and_user(
{ template_name => "admin/auth_subfields_structure.tt", { template_name => "admin/auth_subfields_structure.tt",
@ -47,12 +46,12 @@ my $pagesize = 30;
$tagfield =~ s/\,//g; $tagfield =~ s/\,//g;
if ($op) { if ($op) {
$template->param(script_name => $script_name, $template->param(
tagfield =>$tagfield, tagfield =>$tagfield,
authtypecode => $authtypecode, authtypecode => $authtypecode,
$op => 1); # we show only the TMPL_VAR names $op $op => 1); # we show only the TMPL_VAR names $op
} else { } else {
$template->param(script_name => $script_name, $template->param(
tagfield =>$tagfield, tagfield =>$tagfield,
authtypecode => $authtypecode, authtypecode => $authtypecode,
else => 1); # we show only the TMPL_VAR names $op else => 1); # we show only the TMPL_VAR names $op
@ -237,7 +236,6 @@ elsif ( $op eq 'delete_confirm' ) {
); );
$template->param( $template->param(
ass => $ass, ass => $ass,
delete_link => $script_name,
); );
} }
elsif ( $op eq 'cud-delete_confirmed' ) { elsif ( $op eq 'cud-delete_confirmed' ) {

View file

@ -39,8 +39,6 @@ my $op = $input->param('op') || '';
$searchfield =~ s/\,//g; $searchfield =~ s/\,//g;
my $script_name = "/cgi-bin/koha/admin/auth_tag_structure.pl";
my $dbh = C4::Context->dbh; my $dbh = C4::Context->dbh;
# open template # open template
@ -70,7 +68,7 @@ if (!$op or $op eq 'cud-authtype_create_confirm') {
} }
} }
} }
$template->param(script_name => $script_name);
$template->param(authority_types => $authority_types ); $template->param(authority_types => $authority_types );
if ($op && $op ne 'cud-authtype_create_confirm') { if ($op && $op ne 'cud-authtype_create_confirm') {
$template->param($op => 1); $template->param($op => 1);

View file

@ -30,8 +30,6 @@ use Koha::ClassSources;
use Koha::ClassSortRules; use Koha::ClassSortRules;
use Koha::ClassSplitRules; use Koha::ClassSplitRules;
my $script_name = "/cgi-bin/koha/admin/classsources.pl";
my $input = CGI->new; my $input = CGI->new;
my $op = $input->param('op') || 'list'; my $op = $input->param('op') || 'list';
my $cn_source = $input->param('cn_source'); my $cn_source = $input->param('cn_source');
@ -53,7 +51,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
); );
my @messages; my @messages;
$template->param( script_name => $script_name );
if ( $op eq "add_source" ) { if ( $op eq "add_source" ) {
my $class_source = my $class_source =

View file

@ -38,7 +38,6 @@ my $frameworkcode = $input->param('frameworkcode');
my $pkfield = "tagfield"; my $pkfield = "tagfield";
my $offset = $input->param('offset'); my $offset = $input->param('offset');
$offset = 0 if not defined $offset or $offset < 0; $offset = 0 if not defined $offset or $offset < 0;
my $script_name = "/cgi-bin/koha/admin/marc_subfields_structure.pl";
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
{ {
@ -57,7 +56,6 @@ my $framework = Koha::BiblioFrameworks->search({ frameworkcode => $frameworkcode
if ($op) { if ($op) {
$template->param( $template->param(
script_name => $script_name,
tagfield => $tagfield, tagfield => $tagfield,
frameworkcode => $frameworkcode, frameworkcode => $frameworkcode,
framework => $framework, framework => $framework,
@ -66,7 +64,6 @@ if ($op) {
} }
else { else {
$template->param( $template->param(
script_name => $script_name,
tagfield => $tagfield, tagfield => $tagfield,
frameworkcode => $frameworkcode, frameworkcode => $frameworkcode,
framework => $framework, framework => $framework,
@ -320,7 +317,6 @@ elsif ( $op eq 'delete_confirm' ) {
); );
$template->param( $template->param(
mss => $mss, mss => $mss,
delete_link => $script_name,
); );
# END $OP eq DELETE_CONFIRM # END $OP eq DELETE_CONFIRM

View file

@ -42,8 +42,6 @@ my $op = $input->param('op') || '';
my $dspchoice = $input->cookie("marctagstructure_selectdisplay") // $input->param('select_display'); my $dspchoice = $input->cookie("marctagstructure_selectdisplay") // $input->param('select_display');
my $pagesize = 20; my $pagesize = 20;
my $script_name = "/cgi-bin/koha/admin/marctagstructure.pl";
my $dbh = C4::Context->dbh; my $dbh = C4::Context->dbh;
my $cache = Koha::Caches->get_instance(); my $cache = Koha::Caches->get_instance();
@ -76,7 +74,6 @@ my $framework = $frameworks->search({ frameworkcode => $frameworkcode })->next;
$template->param( $template->param(
frameworks => $frameworks, frameworks => $frameworks,
framework => $framework, framework => $framework,
script_name => $script_name,
( $op || 'else' ) => 1, ( $op || 'else' ) => 1,
); );
@ -319,13 +316,11 @@ if ($op eq 'add_form') {
$template->param(isprevpage => $offset, $template->param(isprevpage => $offset,
prevpage=> $offset-$pagesize, prevpage=> $offset-$pagesize,
searchfield => $searchfield, searchfield => $searchfield,
script_name => $script_name
); );
} }
if ($offset+$pagesize<$cnt) { if ($offset+$pagesize<$cnt) {
$template->param(nextpage =>$offset+$pagesize, $template->param(nextpage =>$offset+$pagesize,
searchfield => $searchfield, searchfield => $searchfield,
script_name => $script_name
); );
} }
} #---- END $OP eq DEFAULT } #---- END $OP eq DEFAULT

View file

@ -26,8 +26,6 @@ use C4::Context;
use C4::Output qw( output_html_with_http_headers ); use C4::Output qw( output_html_with_http_headers );
use C4::Matcher qw/valid_normalization_routines/; use C4::Matcher qw/valid_normalization_routines/;
my $script_name = "/cgi-bin/koha/admin/matching-rules.pl";
our $input = CGI->new; our $input = CGI->new;
my $op = $input->param('op') || ''; my $op = $input->param('op') || '';
@ -39,8 +37,6 @@ my ($template, $loggedinuser, $cookie)
flagsrequired => { parameters => 'manage_matching_rules' }, flagsrequired => { parameters => 'manage_matching_rules' },
}); });
$template->param(script_name => $script_name);
my $matcher_id = $input->param("matcher_id"); my $matcher_id = $input->param("matcher_id");
$template->param( max_matchpoint => 0 ); $template->param( max_matchpoint => 0 );

View file

@ -44,10 +44,10 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
flagsrequired => { parameters => 'manage_search_targets' }, flagsrequired => { parameters => 'manage_search_targets' },
} }
); );
my $script_name = "/cgi-bin/koha/admin/oai_servers.pl";
my $path = C4::Context->config('intrahtdocs') . "/prog/"; my $path = C4::Context->config('intrahtdocs') . "/prog/";
$template->param( script_name => $script_name, xslt_path => $path ); $template->param( xslt_path => $path );
my $schema = Koha::Database->new()->schema(); my $schema = Koha::Database->new()->schema();

View file

@ -33,8 +33,6 @@ use Koha::AuthorisedValues;
use Koha::Libraries; use Koha::Libraries;
use Koha::Patron::Categories; use Koha::Patron::Categories;
my $script_name = "/cgi-bin/koha/admin/patron-attr-types.pl";
our $input = CGI->new; our $input = CGI->new;
my $op = $input->param('op') || ''; my $op = $input->param('op') || '';
@ -47,9 +45,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
} }
); );
$template->param(script_name => $script_name);
my $code = $input->param("code"); my $code = $input->param("code");
my $display_list = 0; my $display_list = 0;

View file

@ -223,15 +223,9 @@ my $op = $input->param('op') || '';
$searchfield =~ s/\,//g; $searchfield =~ s/\,//g;
if ($op) { if ($op) {
$template->param( $template->param( $op => 1 ); # we show only the TMPL_VAR names $op
script_name => $script_name,
$op => 1
); # we show only the TMPL_VAR names $op
} else { } else {
$template->param( $template->param( else => 1 ); # we show only the TMPL_VAR names $op
script_name => $script_name,
else => 1
); # we show only the TMPL_VAR names $op
} }
if ( $op eq 'update_and_reedit' ) { if ( $op eq 'update_and_reedit' ) {
@ -260,17 +254,11 @@ if ( $op eq 'update_and_reedit' ) {
$value = join ' ', @currentorder; $value = join ' ', @currentorder;
if ($orderchanged) { if ($orderchanged) {
$op = 'add_form'; $op = 'add_form';
$template->param( $template->param( $op => 1 ); # we show only the TMPL_VAR names $op
script_name => $script_name,
$op => 1
); # we show only the TMPL_VAR names $op
} else { } else {
$op = ''; $op = '';
$searchfield = ''; $searchfield = '';
$template->param( $template->param( else => 1 ); # we show only the TMPL_VAR names $op
script_name => $script_name,
else => 1
); # we show only the TMPL_VAR names $op
} }
} }
my $variable = $input->param('variable'); my $variable = $input->param('variable');

View file

@ -46,8 +46,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( {
type => "intranet", type => "intranet",
flagsrequired => { parameters => 'manage_search_targets' }, flagsrequired => { parameters => 'manage_search_targets' },
}); });
my $script_name = "/cgi-bin/koha/admin/z3950servers.pl";
$template->param( script_name => $script_name );
my $schema = Koha::Database->new()->schema(); my $schema = Koha::Database->new()->schema();

View file

@ -5,7 +5,7 @@
[% WRAPPER tabs id="header_search" %] [% WRAPPER tabs id="header_search" %]
[% WRAPPER tab_panels %] [% WRAPPER tab_panels %]
[% WRAPPER tab_panel tabname="city_search" bt_active= 1 %] [% WRAPPER tab_panel tabname="city_search" bt_active= 1 %]
<form action="[% script_name | html %]" method="get"> <form action="/cgi-bin/koha/admin/cities.pl" method="get">
<div class="form-title"> <div class="form-title">
<label class="control-label" for="city_name_filter"><span class="control-text">Search cities</span> <i class="fa fa-fw fa-building" aria-hidden="true"></i></label> <label class="control-label" for="city_name_filter"><span class="control-text">Search cities</span> <i class="fa fa-fw fa-building" aria-hidden="true"></i></label>
</div> </div>

View file

@ -5,7 +5,7 @@
[% WRAPPER tabs id="header_search" %] [% WRAPPER tabs id="header_search" %]
[% WRAPPER tab_panels %] [% WRAPPER tab_panels %]
[% WRAPPER tab_panel tabname="contract_description_search" bt_active= 1 %] [% WRAPPER tab_panel tabname="contract_description_search" bt_active= 1 %]
<form action="[% script_name | html %]" method="get"> <form action="/cgi-bin/koha/admin/aqcontract.pl" method="get">
<div class="form-title"> <div class="form-title">
<label class="control-label" for="searchfield"><span class="control-text">Search contracts</span> <i class="fa-solid fa-fw fa-pen-to-square" aria-hidden="true"></i></label> <label class="control-label" for="searchfield"><span class="control-text">Search contracts</span> <i class="fa-solid fa-fw fa-pen-to-square" aria-hidden="true"></i></label>
</div> </div>

View file

@ -5,7 +5,7 @@
[% WRAPPER tabs id="header_search" %] [% WRAPPER tabs id="header_search" %]
[% WRAPPER tab_panels %] [% WRAPPER tab_panels %]
[% WRAPPER tab_panel tabname="currency_search" bt_active= 1 %] [% WRAPPER tab_panel tabname="currency_search" bt_active= 1 %]
<form action="[% script_name | html %]" method="get"> <form action="/cgi-bin/koha/admin/currency.pl" method="get">
<div class="form-title"> <div class="form-title">
<label class="control-label" for="description"><span class="control-text">Search currencies</span> <i class="fa-solid fa-fw fa-dollar-sign" aria-hidden="true"></i></label> <label class="control-label" for="description"><span class="control-text">Search currencies</span> <i class="fa-solid fa-fw fa-dollar-sign" aria-hidden="true"></i></label>
</div> </div>

View file

@ -5,7 +5,7 @@
[% WRAPPER tabs id="header_search" %] [% WRAPPER tabs id="header_search" %]
[% WRAPPER tab_panels %] [% WRAPPER tab_panels %]
[% WRAPPER tab_panel tabname="desk_search" bt_active= 1 %] [% WRAPPER tab_panel tabname="desk_search" bt_active= 1 %]
<form action="[% script_name|html %]" method="get"> <form action="/cgi-bin/koha/admin/desks.pl" method="get">
<div class="form-title"> <div class="form-title">
<label class="control-label" for="search_desk_name"><span class="control-text">Search desks</span> <i class="fa fa-fw fa-desktop" aria-hidden="true"></i></label> <label class="control-label" for="search_desk_name"><span class="control-text">Search desks</span> <i class="fa fa-fw fa-desktop" aria-hidden="true"></i></label>
</div> </div>

View file

@ -6,7 +6,7 @@
[% WRAPPER tabs id= "header_search" %] [% WRAPPER tabs id= "header_search" %]
[% WRAPPER tab_panels %] [% WRAPPER tab_panels %]
[% WRAPPER tab_panel tabname="patron_category_search" bt_active= 1 %] [% WRAPPER tab_panel tabname="patron_category_search" bt_active= 1 %]
<form action="[% script_name | html %]" method="get"> <form action="/cgi-bin/koha/admin/categories.pl" method="get">
<div class="form-title"> <div class="form-title">
<label class="control-label" for="category_search"><span class="control-text">Search patron categories</span> <i class="fa fa-fw fa-id-card" aria-hidden="true"></i></label> <label class="control-label" for="category_search"><span class="control-text">Search patron categories</span> <i class="fa fa-fw fa-id-card" aria-hidden="true"></i></label>
</div> </div>

View file

@ -5,7 +5,7 @@
[% PROCESS 'patron-search.inc' %] [% PROCESS 'patron-search.inc' %]
[% BLOCK csv_export %] [% BLOCK csv_export %]
<div class="btn-group"> <div class="btn-group">
<a id="exportbutton" class="btn btn-default" href="[% script_name | url %]?op=export&amp;basketno=[% basketno | uri %]&amp;booksellerid=[% booksellerid | uri %]"><i class="fa fa-download"></i> Export as CSV</a> <a id="exportbutton" class="btn btn-default" href="/cgi-bin/koha/acqui/basket.pl?op=export&amp;basketno=[% basketno | uri %]&amp;booksellerid=[% booksellerid | uri %]"><i class="fa fa-download"></i> Export as CSV</a>
<button type="button" class="btn btn-default btn-sm dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false"> <button type="button" class="btn btn-default btn-sm dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
<span class="visually-hidden">Toggle dropdown</span> <span class="visually-hidden">Toggle dropdown</span>
</button> </button>

View file

@ -53,11 +53,11 @@
[% IF ( grouping ) %] [% IF ( grouping ) %]
[% IF (closedbg) %] [% IF (closedbg) %]
<div id="toolbar" class="btn-toolbar"> <div id="toolbar" class="btn-toolbar">
<div class="btn-group"><a href="[% script_name | url %]?op=reopen&amp;basketgroupid=[% basketgroupid | uri %]&amp;booksellerid=[% booksellerid | uri %]&amp;mode=singlebg" class="btn btn-default" id="reopenbutton"><i class="fa fa-download"></i> Reopen basket group</a></div> <div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=reopen&amp;basketgroupid=[% basketgroupid | uri %]&amp;booksellerid=[% booksellerid | uri %]&amp;mode=singlebg" class="btn btn-default" id="reopenbutton"><i class="fa fa-download"></i> Reopen basket group</a></div>
<div class="btn-group"><a href="[% script_name | url %]?op=export&amp;basketgroupid=[% basketgroupid | uri %]&amp;booksellerid=[% booksellerid | uri %]" class="btn btn-default" id="exportbutton"><i class="fa fa-download"></i> Export basket group as CSV</a></div> <div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=export&amp;basketgroupid=[% basketgroupid | uri %]&amp;booksellerid=[% booksellerid | uri %]" class="btn btn-default" id="exportbutton"><i class="fa fa-download"></i> Export basket group as CSV</a></div>
<div class="btn-group"><a href="[% script_name | url %]?op=print&amp;basketgroupid=[% basketgroupid | uri %]&amp;booksellerid=[% booksellerid | uri %]" class="btn btn-default" id="printbutton"><i class="fa fa-download"></i> Print basket group in PDF</a></div> <div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=print&amp;basketgroupid=[% basketgroupid | uri %]&amp;booksellerid=[% booksellerid | uri %]" class="btn btn-default" id="printbutton"><i class="fa fa-download"></i> Print basket group in PDF</a></div>
[% IF (ediaccount) %] [% IF (ediaccount) %]
<div class="btn-group"><a href="[% script_name | url %]?op=ediprint&amp;basketgroupid=[% basketgroupid | uri %]&amp;booksellerid=[% booksellerid | uri %]" class="btn btn-default" id="printbutton"><i class="fa fa-download"></i> Generate EDIFACT order</a></div> <div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=ediprint&amp;basketgroupid=[% basketgroupid | uri %]&amp;booksellerid=[% booksellerid | uri %]" class="btn btn-default" id="printbutton"><i class="fa fa-download"></i> Generate EDIFACT order</a></div>
[% END %] [% END %]
</div> </div>
[% END %] [% END %]

View file

@ -56,7 +56,7 @@
<h1>Edit basket [% basketname | html %]</h1> <h1>Edit basket [% basketname | html %]</h1>
[% ELSE %]<h1>Add a basket to [% booksellername | html %]</h1> [% ELSE %]<h1>Add a basket to [% booksellername | html %]</h1>
[% END %] [% END %]
<form name="Aform" action="[% script_name | html %]" method="post" class="validated"> <form name="Aform" action="/cgi-bin/koha/acqui/basketheader.pl" method="post" class="validated">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
<fieldset class="rows"> <fieldset class="rows">

View file

@ -12,7 +12,7 @@
</a> </a>
<ul class="dropdown-menu dropdown-menu-end" role="menu" aria-labelledby="budgetmenu_[% block_budget.budget_period_id | html %]"> <ul class="dropdown-menu dropdown-menu-end" role="menu" aria-labelledby="budgetmenu_[% block_budget.budget_period_id | html %]">
<li> <li>
<a class="dropdown-item" href="[% script_name | url %]?op=add_form&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> <a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
</li> </li>
[% IF block_budget.count %] [% IF block_budget.count %]
<li data-bs-toggle="tooltip" data-bs-placement="left" title="[% block_budget.count | html %] fund(s) are attached to this budget. You must delete all attached funds before deleting this budget."> <li data-bs-toggle="tooltip" data-bs-placement="left" title="[% block_budget.count | html %] fund(s) are attached to this budget. You must delete all attached funds before deleting this budget.">
@ -20,14 +20,14 @@
</li> </li>
[% ELSE %] [% ELSE %]
<li> <li>
<a class="dropdown-item" href="[% script_name | url %]?op=delete_confirm&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a> <a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=delete_confirm&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a>
</li> </li>
[% END %] [% END %]
<li> <li>
<a class="dropdown-item" href="[% script_name | url %]?op=duplicate_form&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-copy"></i> Duplicate</a> <a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=duplicate_form&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-copy"></i> Duplicate</a>
</li> </li>
<li> <li>
<a class="dropdown-item" href="[% script_name | url %]?op=close_form&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-times-circle"></i> Close</a> <a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=close_form&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-times-circle"></i> Close</a>
</li> </li>
[% IF ( block_budget.budget_period_locked ) %] [% IF ( block_budget.budget_period_locked ) %]
<li data-bs-toggle="tooltip" data-bs-placement="left" title="Budget is locked"> <li data-bs-toggle="tooltip" data-bs-placement="left" title="Budget is locked">
@ -319,7 +319,7 @@
<!-- "delete" and "cancel" buttons --> <!-- "delete" and "cancel" buttons -->
<!-- ############################################################# --> <!-- ############################################################# -->
<form action="[% script_name | html %]" method="post"> <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-delete_confirmed" /> <input type="hidden" name="op" value="cud-delete_confirmed" />
<input type="hidden" name="budget_period_id" value="[% budget_period_id | html %]" /> <input type="hidden" name="budget_period_id" value="[% budget_period_id | html %]" />

View file

@ -141,7 +141,7 @@
<tr><th scope="row">Contract end date:</th><td>[% contractenddate | $KohaDates %]</td></tr> <tr><th scope="row">Contract end date:</th><td>[% contractenddate | $KohaDates %]</td></tr>
<tr><th scope="row">Vendor:</th><td>[% booksellername | html %]</td></tr> <tr><th scope="row">Vendor:</th><td>[% booksellername | html %]</td></tr>
</table> </table>
<form action="[% script_name | html %]" method="post"> <form action="/cgi-bin/koha/admin/aqcontract.pl" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-delete_confirmed" /> <input type="hidden" name="op" value="cud-delete_confirmed" />
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
@ -170,14 +170,14 @@
[% FOREACH loo IN loop %] [% FOREACH loo IN loop %]
<tr> <tr>
<td> <td>
<a href="[% loo.script_name | url %]?op=add_form&amp;booksellerid=[% loo.booksellerid | uri %]&amp;contractnumber=[% loo.contractnumber | uri %]">[% loo.contractname | html %]</a> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;booksellerid=[% loo.booksellerid | uri %]&amp;contractnumber=[% loo.contractnumber | uri %]">[% loo.contractname | html %]</a>
</td> </td>
<td>[% loo.contractdescription | html %]</td> <td>[% loo.contractdescription | html %]</td>
<td>[% loo.contractstartdate | html %]</td> <td>[% loo.contractstartdate | html %]</td>
<td>[% loo.contractenddate | html %]</td> <td>[% loo.contractenddate | html %]</td>
<td class="actions"> <td class="actions">
<a href="[% loo.script_name | url %]?op=add_form&amp;contractnumber=[% loo.contractnumber | uri %]&amp;booksellerid=[% loo.booksellerid | uri %]" class="btn btn-default btn-xs"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% loo.contractnumber | uri %]&amp;booksellerid=[% loo.booksellerid | uri %]" class="btn btn-default btn-xs"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
<a href="[% loo.script_name | url %]?op=delete_confirm&amp;contractnumber=[% loo.contractnumber | uri %]&amp;booksellerid=[% loo.booksellerid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-trash-can"></i> Delete</a> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&amp;contractnumber=[% loo.contractnumber | uri %]&amp;booksellerid=[% loo.booksellerid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-trash-can"></i> Delete</a>
</td> </td>
</tr> </tr>
[% END %] [% END %]

View file

@ -98,7 +98,7 @@
[% IF ( heading_edit_subfields_p ) %]Edit MARC subfields constraints for field [% tagfield | html %] authority [% authtypecode | html %][% END %] [% IF ( heading_edit_subfields_p ) %]Edit MARC subfields constraints for field [% tagfield | html %] authority [% authtypecode | html %][% END %]
[% ELSE %][% action | html %][% END %]</h1> [% ELSE %][% action | html %][% END %]</h1>
<div class="hint">You can drag and drop the subfield tabs to change the order.</div> <div class="hint">You can drag and drop the subfield tabs to change the order.</div>
<form action="[% script_name | html %]" name="Aform" method="post"> <form action="/cgi-bin/koha/admin/auth_subfields_structure.pl" name="Aform" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-add_validate" /> <input type="hidden" name="op" value="cud-add_validate" />
<input type="hidden" name="tagfield" value="[% tagfield | html %]" /> <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
@ -385,7 +385,7 @@
</table> </table>
</div> <!-- /.page-section --> </div> <!-- /.page-section -->
<form action="[% script_name | html %]" method="get"> <form action="/cgi-bin/koha/admin/auth_subfields_structure.pl" method="get">
<fieldset class="action"><input type="hidden" name="op" value="add_form" /> <fieldset class="action"><input type="hidden" name="op" value="add_form" />
<input type="hidden" name="tagfield" value="[% edit_tagfield | html %]" /> <input type="hidden" name="tagfield" value="[% edit_tagfield | html %]" />
<input type="hidden" name="authtypecode" value="[% edit_authtypecode | html %]" /> <input type="hidden" name="authtypecode" value="[% edit_authtypecode | html %]" />

View file

@ -129,7 +129,7 @@
<span>New tag</span> <span>New tag</span>
[% END %] [% END %]
</h2> </h2>
<form action="[% script_name | html %]" name="Aform" method="post" class="validated"> <form action="/cgi-bin/koha/admin/auth_tag_structure.pl" name="Aform" method="post" class="validated">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-add_validate" /> <input type="hidden" name="op" value="cud-add_validate" />
[% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %] [% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
@ -185,7 +185,7 @@
[% IF ( delete_confirm ) %] [% IF ( delete_confirm ) %]
<div class="alert alert-warning"> <div class="alert alert-warning">
<h3>[% tx("Confirm deletion of tag '{searchfield}'", { searchfield = searchfield }) | html %]</h3> <h3>[% tx("Confirm deletion of tag '{searchfield}'", { searchfield = searchfield }) | html %]</h3>
<form action="[% script_name | html %]" method="post"> <form action="/cgi-bin/koha/admin/auth_tag_structure.pl" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<table> <table>
<tr><th scope="row">Tag: </th><td>[% searchfield | html %] [% liblibrarian | html %]</td></tr> <tr><th scope="row">Tag: </th><td>[% searchfield | html %] [% liblibrarian | html %]</td></tr>
@ -195,7 +195,7 @@
<input type="hidden" name="searchfield" value="[% searchfield | html %]" /> <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
<button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button> <button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
</form> </form>
<form action="[% script_name | html %]" method="get"> <form action="/cgi-bin/koha/admin/auth_tag_structure.pl" method="get">
<button type="submit" class="btn btn-default deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button> <button type="submit" class="btn btn-default deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button>
</form> </form>
</div> </div>
@ -203,7 +203,7 @@
[% IF ( authtype_create ) %] [% IF ( authtype_create ) %]
<form action="[% script_name | html %]" method="post"> <form action="/cgi-bin/koha/admin/auth_tag_structure.pl" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-authtype_create_confirm" /> <input type="hidden" name="op" value="cud-authtype_create_confirm" />
<input type="hidden" name="authtypecode" value="[% authtypecode | html %]" /> <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
@ -224,7 +224,7 @@
[% IF ( else ) %] [% IF ( else ) %]
<form action="[% script_name | html %]" method="get"> <form action="/cgi-bin/koha/admin/auth_tag_structure.pl" method="get">
<fieldset> <fieldset>
<label for="searchfield"><strong>Search for tag:</strong></label> <label for="searchfield"><strong>Search for tag:</strong></label>
<input type="text" id="searchfield" name="searchfield" size="4" value="[% searchfield | html %]" /> <input type="text" id="searchfield" name="searchfield" size="4" value="[% searchfield | html %]" />

View file

@ -149,7 +149,7 @@
[% ELSE %] [% ELSE %]
<h1>New classification source</h1> <h1>New classification source</h1>
[% END %] [% END %]
<form action="[% script_name | html %]" name="Aform" class="validated" method="post"> <form action="/cgi-bin/koha/admin/classsources.pl" name="Aform" class="validated" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-add_source_validate" /> <input type="hidden" name="op" value="cud-add_source_validate" />
<fieldset class="rows"> <fieldset class="rows">
@ -214,7 +214,7 @@
[% ELSE %] [% ELSE %]
<h1>New filing rule</h1> <h1>New filing rule</h1>
[% END %] [% END %]
<form action="[% script_name | html %]" name="Aform" class="validated" method="post"> <form action="/cgi-bin/koha/admin/classsources.pl" name="Aform" class="validated" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-add_sort_rule_validate" /> <input type="hidden" name="op" value="cud-add_sort_rule_validate" />
<fieldset class="rows"> <fieldset class="rows">
@ -261,7 +261,7 @@
[% ELSE %] [% ELSE %]
<h1>New splitting rule</h1> <h1>New splitting rule</h1>
[% END %] [% END %]
<form action="[% script_name | html %]" name="Aform" class="validated" method="post"> <form action="/cgi-bin/koha/admin/classsources.pl" name="Aform" class="validated" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-add_split_rule_validate" /> <input type="hidden" name="op" value="cud-add_split_rule_validate" />
<fieldset class="rows"> <fieldset class="rows">
@ -333,9 +333,9 @@
[% IF op == 'list' %] [% IF op == 'list' %]
<div id="toolbar" class="btn-toolbar"> <div id="toolbar" class="btn-toolbar">
<a class="btn btn-default" id="newsource" href="[% script_name | url %]?op=add_source"><i class="fa fa-plus"></i> New classification source</a> <a class="btn btn-default" id="newsource" href="/cgi-bin/koha/admin/classsources.pl?op=add_source"><i class="fa fa-plus"></i> New classification source</a>
<a class="btn btn-default" id="newrule" href="[% script_name | url %]?op=add_sort_rule"><i class="fa fa-plus"></i> New filing rule</a> <a class="btn btn-default" id="newrule" href="/cgi-bin/koha/admin/classsources.pl?op=add_sort_rule"><i class="fa fa-plus"></i> New filing rule</a>
<a class="btn btn-default" id="newrule" href="[% script_name | url %]?op=add_split_rule"><i class="fa fa-plus"></i> New splitting rule</a> <a class="btn btn-default" id="newrule" href="/cgi-bin/koha/admin/classsources.pl?op=add_split_rule"><i class="fa fa-plus"></i> New splitting rule</a>
</div> </div>
<h1>Classification configuration</h1> <h1>Classification configuration</h1>
<div class="page-section"> <div class="page-section">
@ -357,8 +357,8 @@
<td>[% class_source.class_sort_rule | html %]</td> <td>[% class_source.class_sort_rule | html %]</td>
<td>[% class_source.class_split_rule | html %]</td> <td>[% class_source.class_split_rule | html %]</td>
<td class="actions"> <td class="actions">
<a class="btn btn-default btn-xs" href="[% script_name | url %]?op=add_source&amp;cn_source=[% class_source.cn_source | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/classsources.pl?op=add_source&amp;cn_source=[% class_source.cn_source | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
<form action="[% script_name | url %]" method="post"> <form action="/cgi-bin/koha/admin/classsources.pl" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-delete_source_confirmed" /> <input type="hidden" name="op" value="cud-delete_source_confirmed" />
<input type="hidden" name="cn_source" value="[% class_source.cn_source | uri%]" /> <input type="hidden" name="cn_source" value="[% class_source.cn_source | uri%]" />
@ -385,8 +385,8 @@
<td>[% rule.description |html | html %]</td> <td>[% rule.description |html | html %]</td>
<td>[% rule.sort_routine | html %]</td> <td>[% rule.sort_routine | html %]</td>
<td class="actions"> <td class="actions">
<a class="btn btn-default btn-xs" href="[% script_name | html %]?op=add_sort_rule&amp;class_sort_rule=[% rule.class_sort_rule |url %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/classsources.pl?op=add_sort_rule&amp;class_sort_rule=[% rule.class_sort_rule |url %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
<form action="[% script_name | url %]" method="post"> <form action="/cgi-bin/koha/admin/classsources.pl" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-delete_sort_rule" /> <input type="hidden" name="op" value="cud-delete_sort_rule" />
<input type="hidden" name="class_sort_rule" value="[% rule.class_sort_rule |url %]" /> <input type="hidden" name="class_sort_rule" value="[% rule.class_sort_rule |url %]" />
@ -413,8 +413,8 @@
<td>[% rule.description | html %]</td> <td>[% rule.description | html %]</td>
<td>[% rule.split_routine | html %]</td> <td>[% rule.split_routine | html %]</td>
<td class="actions"> <td class="actions">
<a class="btn btn-default btn-xs" href="[% script_name | url %]?op=add_split_rule&amp;class_split_rule=[% rule.class_split_rule | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/classsources.pl?op=add_split_rule&amp;class_split_rule=[% rule.class_split_rule | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
<form action="[% script_name | url %]" method="post"> <form action="/cgi-bin/koha/admin/classsources.pl" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-delete_split_rule" /> <input type="hidden" name="op" value="cud-delete_split_rule" />
<input type="hidden" name="class_split_rule" value="[% rule.class_split_rule | html %]" /> <input type="hidden" name="class_split_rule" value="[% rule.class_split_rule | html %]" />

View file

@ -94,7 +94,7 @@
</h1> </h1>
<div class="hint">You can drag and drop the subfield tabs to change the order.</div> <div class="hint">You can drag and drop the subfield tabs to change the order.</div>
<form action="[% script_name | html %]" name="Aform" method="post"> <form action="/cgi-bin/koha/admin/marc_subfields_structure.pl" name="Aform" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-add_validate" /> <input type="hidden" name="op" value="cud-add_validate" />
<input type="hidden" name="tagfield" value="[% tagfield | html %]" /> <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
@ -330,7 +330,7 @@
</form> </form>
<form action="[% script_name | html %]" method="get"> <form action="/cgi-bin/koha/admin/marc_subfields_structure.pl" method="get">
<input type="hidden" name="tagfield" value="[% mss.tagfield | html %]" /> <input type="hidden" name="tagfield" value="[% mss.tagfield | html %]" />
<input type="hidden" name="frameworkcode" value="[% mss.frameworkcode | html %]" /> <input type="hidden" name="frameworkcode" value="[% mss.frameworkcode | html %]" />
<button type="submit" class="btn btn-default deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button> <button type="submit" class="btn btn-default deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button>
@ -397,7 +397,7 @@
</table> <!-- /#table_marcsubfieldstructure --> </table> <!-- /#table_marcsubfieldstructure -->
</div><!-- /.page-section --> </div><!-- /.page-section -->
<form action="[% script_name | html %]" method="get"> <form action="/cgi-bin/koha/admin/marc_subfields_structure.pl" method="get">
<fieldset class="action"><input type="hidden" name="op" value="add_form" /> <fieldset class="action"><input type="hidden" name="op" value="add_form" />
<input type="hidden" name="tagfield" value="[% edit_tagfield | html %]" /> <input type="hidden" name="tagfield" value="[% edit_tagfield | html %]" />
<input type="hidden" name="frameworkcode" value="[% edit_frameworkcode | html %]" /> <input type="hidden" name="frameworkcode" value="[% edit_frameworkcode | html %]" />

View file

@ -108,7 +108,7 @@
[% IF ( add_form ) %] [% IF ( add_form ) %]
<form action="[% script_name | html %]" name="Aform" method="post" class="validated"> <form action="/cgi-bin/koha/admin/marctagstructure.pl" name="Aform" method="post" class="validated">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<fieldset class="rows"> <fieldset class="rows">
@ -172,7 +172,7 @@
</ol></fieldset> </ol></fieldset>
<fieldset class="action"> <fieldset class="action">
<input type="submit" class="btn btn-primary" value="Save changes" /> <input type="submit" class="btn btn-primary" value="Save changes" />
<a class="cancel" href="[% script_name | url %]?frameworkcode=[% framework.frameworkcode | uri %]">Cancel</a> <a class="cancel" href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode | uri %]">Cancel</a>
</fieldset> </fieldset>
</form> </form>
[% END %] [% END %]
@ -183,14 +183,14 @@
<h3>[% tx("Confirm deletion of tag {searchfield}?", { searchfield = searchfield }) | html %]</h3> <h3>[% tx("Confirm deletion of tag {searchfield}?", { searchfield = searchfield }) | html %]</h3>
<p>Tag: [% searchfield | html %]</p> <p>Tag: [% searchfield | html %]</p>
<p>Description: [% liblibrarian | html %]</p> <p>Description: [% liblibrarian | html %]</p>
<form action="[% script_name | html %]" method="post"> <form action="/cgi-bin/koha/admin/marctagstructure.pl" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-delete_confirmed" /> <input type="hidden" name="op" value="cud-delete_confirmed" />
<input type="hidden" name="searchfield" value="[% searchfield | html %]" /> <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
<input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" /> <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" />
<button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete this tag</button> <button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete this tag</button>
</form> </form>
<form action="[% script_name | html %]" method="get"><input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" /> <form action="/cgi-bin/koha/admin/marctagstructure.pl" method="get"><input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" />
<button type="submit" class="btn btn-default deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button> <button type="submit" class="btn btn-default deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button>
</form> </form>
</div> </div>
@ -198,7 +198,7 @@
[% IF ( framework_create ) %] [% IF ( framework_create ) %]
<form action="[% script_name | html %]" method="post"> <form action="/cgi-bin/koha/admin/marctagstructure.pl" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-framework_create_confirm" /> <input type="hidden" name="op" value="cud-framework_create_confirm" />
<input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" /> <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" />
@ -215,7 +215,7 @@
[% IF ( else ) %] [% IF ( else ) %]
<form name="f" action="[% script_name | html %]" method="get"> <form name="f" action="/cgi-bin/koha/admin/marctagstructure.pl" method="get">
<fieldset style="padding:.5em;"> <fieldset style="padding:.5em;">
<label for="tag_search"><strong>Search for tag:</strong> </label> <label for="tag_search"><strong>Search for tag:</strong> </label>
<input type="text" name="searchfield" id="tag_search" size="4" value="[% searchfield | html %]" /> <input type="text" name="searchfield" id="tag_search" size="4" value="[% searchfield | html %]" />

View file

@ -114,7 +114,7 @@
[% ELSE %] [% ELSE %]
<h1>New record matching rule</h1> <h1>New record matching rule</h1>
[% END %] [% END %]
<form action="[% script_name | html %]" name="Aform" method="post"> <form action="/cgi-bin/koha/admin/matching-rules.pl" name="Aform" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="[% confirm_op | html %]" /> <input type="hidden" name="op" value="[% confirm_op | html %]" />
<fieldset class="rows"> <fieldset class="rows">
@ -429,13 +429,13 @@
[% IF ( delete_matching_rule_form ) %] [% IF ( delete_matching_rule_form ) %]
<div class="alert alert-warning"> <div class="alert alert-warning">
<h1>Confirm deletion of record matching rule <span class="ex">'[% code | html %]' ([% description | html %])</span>?</h1> <h1>Confirm deletion of record matching rule <span class="ex">'[% code | html %]' ([% description | html %])</span>?</h1>
<form action="[% script_name | html %]" name="Aform" method="post"> <form action="/cgi-bin/koha/admin/matching-rules.pl" name="Aform" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="[% confirm_op | html %]" /> <input type="hidden" name="op" value="[% confirm_op | html %]" />
<input type="hidden" name="matcher_id" value="[% matcher_id | html %]" /> <input type="hidden" name="matcher_id" value="[% matcher_id | html %]" />
<button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete record matching rule</button> <button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete record matching rule</button>
</form> </form>
<form action="[% script_name | html %]" method="get"> <form action="/cgi-bin/koha/admin/matching-rules.pl" method="get">
<button type="submit" class="btn btn-default deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button> <button type="submit" class="btn btn-default deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button>
</form> </form>
</div> </div>
@ -444,7 +444,7 @@
[% IF ( display_list ) %] [% IF ( display_list ) %]
<div id="toolbar" class="btn-toolbar"> <div id="toolbar" class="btn-toolbar">
<a class="btn btn-default" id="newrule" href="[% script_name | url %]?op=add_matching_rule"><i class="fa fa-plus"></i> New record matching rule</a> <a class="btn btn-default" id="newrule" href="/cgi-bin/koha/admin/matching-rules.pl?op=add_matching_rule"><i class="fa fa-plus"></i> New record matching rule</a>
</div> </div>
<h1>Record matching rules</h1> <h1>Record matching rules</h1>
@ -473,8 +473,8 @@
<td>[% available_matching_rule.code | html %]</td> <td>[% available_matching_rule.code | html %]</td>
<td>[% available_matching_rule.description | html %]</td> <td>[% available_matching_rule.description | html %]</td>
<td class="actions"> <td class="actions">
<a class="btn btn-default btn-xs" href="[% available_matching_rule.script_name | url %]?op=edit_matching_rule&amp;matcher_id=[% available_matching_rule.matcher_id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/matching-rules.pl?op=edit_matching_rule&amp;matcher_id=[% available_matching_rule.matcher_id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
<a class="btn btn-default btn-xs" href="[% available_matching_rule.script_name | url %]?op=delete_matching_rule&amp;matcher_id=[% available_matching_rule.matcher_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/matching-rules.pl?op=delete_matching_rule&amp;matcher_id=[% available_matching_rule.matcher_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a>
</td> </td>
</tr> </tr>
[% END %] [% END %]

View file

@ -69,7 +69,7 @@
[% END %] [% END %]
[% IF ( add_form ) %] [% IF ( add_form ) %]
<form action="[% script_name | html %]" name="Aform" method="post" id="serverentry"> <form action="/cgi-bin/koha/admin/oai_servers.pl" name="Aform" method="post" id="serverentry">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
[% IF op == 'edit' %] [% IF op == 'edit' %]
<h1>Modify OAI repository</h1> <h1>Modify OAI repository</h1>

View file

@ -85,7 +85,7 @@
&mdash; one with that code already exists. &mdash; one with that code already exists.
</div> </div>
[% END %] [% END %]
<form action="[% script_name | html %]" class="validated" method="post"> <form action="/cgi-bin/koha/admin/patron-attr-types.pl" class="validated" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="[% confirm_op | html %]" /> <input type="hidden" name="op" value="[% confirm_op | html %]" />
<fieldset class="rows"> <fieldset class="rows">
@ -273,13 +273,13 @@
<h1> <h1>
[% tx("Confirm deletion of patron attribute type '{code}' ({description})?", { code = code, description = description }) | html %] [% tx("Confirm deletion of patron attribute type '{code}' ({description})?", { code = code, description = description }) | html %]
</h1> </h1>
<form action="[% script_name | html %]" name="Aform" method="post"> <form action="/cgi-bin/koha/admin/patron-attr-types.pl" name="Aform" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="[% confirm_op | html %]" /> <input type="hidden" name="op" value="[% confirm_op | html %]" />
<input type="hidden" name="code" value="[% code | html %]" /> <input type="hidden" name="code" value="[% code | html %]" />
<button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete patron attribute type</button> <button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete patron attribute type</button>
</form> </form>
<form action="[% script_name | html %]" method="get"> <form action="/cgi-bin/koha/admin/patron-attr-types.pl" method="get">
<button type="submit" class="btn btn-default deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button> <button type="submit" class="btn btn-default deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button>
</form> </form>
</div> </div>
@ -288,7 +288,7 @@
[% IF ( display_list ) %] [% IF ( display_list ) %]
<div id="toolbar" class="btn-toolbar"> <div id="toolbar" class="btn-toolbar">
<a class="btn btn-default" id="newrule" href="[% script_name | url %]?op=add_attribute_type"><i class="fa fa-plus"></i> New patron attribute type</a> <a class="btn btn-default" id="newrule" href="/cgi-bin/koha/admin/patron-attr-types.pl?op=add_attribute_type"><i class="fa fa-plus"></i> New patron attribute type</a>
</div> </div>
<h1>Patron attribute types</h1> <h1>Patron attribute types</h1>
@ -377,8 +377,8 @@
[% END %] [% END %]
</td> </td>
<td class="actions"> <td class="actions">
<a class="btn btn-default btn-xs" href="[% script_name | url %]?op=edit_attribute_type&amp;code=[% item.code | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/patron-attr-types.pl?op=edit_attribute_type&amp;code=[% item.code | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
<a class="btn btn-default btn-xs" href="[% script_name | url %]?op=delete_attribute_type&amp;code=[% item.code | uri %]"><i class="fa fa-trash-can"></i> Delete</a> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/patron-attr-types.pl?op=delete_attribute_type&amp;code=[% item.code | uri %]"><i class="fa fa-trash-can"></i> Delete</a>
</td> </td>
</tr> </tr>
[% END %] [% END %]

View file

@ -93,9 +93,9 @@
</h1> </h1>
[% IF ( type_upload ) %] [% IF ( type_upload ) %]
<form action="[% script_name | html %]" name="Aform" method="post" enctype="multipart/form-data"> <form action="/cgi-bin/koha/admin/systempreferences.pl" name="Aform" method="post" enctype="multipart/form-data">
[% ELSE %] [% ELSE %]
<form action="[% script_name | html %]" name="Aform" method="post"> <form action="/cgi-bin/koha/admin/systempreferences.pl" name="Aform" method="post">
[% END %] [% END %]
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<fieldset class="rows"> <fieldset class="rows">
@ -282,14 +282,14 @@
<td>[% Tvalue | html %]</td> <td>[% Tvalue | html %]</td>
</tr> </tr>
</table> </table>
<form class="inline" action="[% script_name | html %]" method="post"> <form class="inline" action="/cgi-bin/koha/admin/systempreferences.pl" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-delete_confirmed" /> <input type="hidden" name="op" value="cud-delete_confirmed" />
<input type="hidden" name="searchfield" value="[% searchfield | html %]" /> <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
<input type="hidden" name="Tvalue" value="[% Tvalue | html %]" /> <input type="hidden" name="Tvalue" value="[% Tvalue | html %]" />
<button type="submit" class="btn btn-default approve"><i class="fa fa-check" aria-hidden="true"></i> Yes, delete</button> <button type="submit" class="btn btn-default approve"><i class="fa fa-check" aria-hidden="true"></i> Yes, delete</button>
</form> </form>
<form class="inline" action="[% script_name | html %]" method="get"> <form class="inline" action="/cgi-bin/koha/admin/systempreferences.pl" method="get">
<button type="submit" class="btn btn-default deny"><i class="fa fa-remove" aria-hidden="true"></i> No, do not delete</button> <button type="submit" class="btn btn-default deny"><i class="fa fa-remove" aria-hidden="true"></i> No, do not delete</button>
</form> </form>
</div> </div>
@ -298,7 +298,7 @@
[% IF ( delete_confirmed ) %] [% IF ( delete_confirmed ) %]
<div class="alert alert-info"> <div class="alert alert-info">
<h1>Data deleted</h1> <h1>Data deleted</h1>
<form action="[% script_name | html %]" method="get"> <form action="/cgi-bin/koha/admin/systempreferences.pl" method="get">
<button type="submit">Back to system preferences</button> <button type="submit">Back to system preferences</button>
</form> </form>
</div> </div>
@ -307,7 +307,7 @@
[% IF ( else ) %] [% IF ( else ) %]
<div id="toolbar" class="btn-toolbar"> <div id="toolbar" class="btn-toolbar">
<a class="btn btn-default" id="newstopword" href="[% script_name | url %]?op=add_form"><i class="fa fa-plus"></i> New system preference</a> <a class="btn btn-default" id="newstopword" href="/cgi-bin/koha/admin/systempreferences.pl?op=add_form"><i class="fa fa-plus"></i> New system preference</a>
</div> </div>
[% IF ( tab != 'local_use' ) %] [% IF ( tab != 'local_use' ) %]

View file

@ -83,7 +83,7 @@
[% END %] [% END %]
[% IF ( add_form ) %] [% IF ( add_form ) %]
<form action="[% script_name | html %]" name="Aform" method="post" id="serverentry"> <form action="/cgi-bin/koha/admin/z3950servers.pl" name="Aform" method="post" id="serverentry">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
[% IF op == 'edit' %] [% IF op == 'edit' %]
<h1>[% tx("Modify {servertype} server '{servername}'", { servertype = servertype, servername = server.servername }) | html %]</h1> <h1>[% tx("Modify {servertype} server '{servername}'", { servertype = servertype, servername = server.servername }) | html %]</h1>

View file

@ -227,7 +227,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<form method="post" action="[% SCRIPT_NAME | html %]" enctype="multipart/form-data"> <form method="post" action="/cgi-bin/koha/tools/import_borrowers.pl" enctype="multipart/form-data">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-import" /> <input type="hidden" name="op" value="cud-import" />
<fieldset class="rows"> <fieldset class="rows">

View file

@ -575,7 +575,7 @@
<td>[% letter.name | html %]</td> <td>[% letter.name | html %]</td>
</tr> </tr>
</table> </table>
<form action="[% action | html %]" method="post"> <form action="/cgi-bin/koha/tools/letter.pl" method="post">
[% INCLUDE 'csrf-token.inc' %] [% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-delete_confirmed"> <input type="hidden" name="op" value="cud-delete_confirmed">
<input type="hidden" name="branchcode" value="[% letter.branchcode | html %]" /> <input type="hidden" name="branchcode" value="[% letter.branchcode | html %]" />
@ -584,7 +584,7 @@
<button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> Yes, delete</button> <button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> Yes, delete</button>
</form> </form>
<form action="[% action | html %]" method="get"> <form action="/cgi-bin/koha/tools/letter.pl" method="get">
<button type="submit" class="btn btn-default deny"><i class="fa fa-times"></i> No, do not delete</button> <button type="submit" class="btn btn-default deny"><i class="fa fa-times"></i> No, do not delete</button>
</form> </form>
</div> </div>

View file

@ -197,7 +197,6 @@ $template->param(
offset => $offset, # req'd for EXPR offset => $offset, # req'd for EXPR
op => $op, op => $op,
op_count => scalar(@tags), op_count => scalar(@tags),
script_name => $script_name,
approved => 0, # dummy value (also EXPR) approved => 0, # dummy value (also EXPR)
tagloop => $tagloop, tagloop => $tagloop,
pagination_bar => pagination_bar( pagination_bar => pagination_bar(

View file

@ -103,8 +103,6 @@ my $dt = dt_from_string();
my $timestamp = $dt->ymd('-').' '.$dt->hms(':'); my $timestamp = $dt->ymd('-').' '.$dt->hms(':');
my $patronlistname = $uploadborrowers . ' (' . $timestamp .')'; my $patronlistname = $uploadborrowers . ' (' . $timestamp .')';
$template->param( SCRIPT_NAME => '/cgi-bin/koha/tools/import_borrowers.pl' );
if ( $op eq 'cud-import' && $uploadborrowers && length($uploadborrowers) > 0 ) { if ( $op eq 'cud-import' && $uploadborrowers && length($uploadborrowers) > 0 ) {
my $handle = $input->upload('uploadborrowers'); my $handle = $input->upload('uploadborrowers');

View file

@ -62,7 +62,6 @@ sub protected_letters {
our $input = CGI->new; our $input = CGI->new;
my $searchfield = $input->param('searchfield'); my $searchfield = $input->param('searchfield');
my $script_name = '/cgi-bin/koha/tools/letter.pl';
our $branchcode = $input->param('branchcode'); our $branchcode = $input->param('branchcode');
$branchcode = '' if defined $branchcode and $branchcode eq '*'; $branchcode = '' if defined $branchcode and $branchcode eq '*';
my $code = $input->param('code'); my $code = $input->param('code');
@ -91,12 +90,10 @@ our $my_branch = C4::Context->preference("IndependentBranches") && !$staffflags-
$template->param( $template->param(
independant_branch => $my_branch, independant_branch => $my_branch,
script_name => $script_name,
searchfield => $searchfield, searchfield => $searchfield,
branchcode => $branchcode, branchcode => $branchcode,
section => $section, section => $section,
langtab => $langtab, langtab => $langtab,
action => $script_name
); );
if ( $op eq 'cud-add_validate' or $op eq 'cud-copy_validate' ) { if ( $op eq 'cud-add_validate' or $op eq 'cud-copy_validate' ) {

View file

@ -86,7 +86,6 @@ if( $importid ) {
} }
$template->param( $template->param(
SCRIPT_NAME => '/cgi-bin/koha/tools/showdiffmarc.pl',
RECORDID => $recordid, RECORDID => $recordid,
IMPORTID => $importid, IMPORTID => $importid,
RECORDTITLE => $recordTitle, RECORDTITLE => $recordTitle,