Browse Source

Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere

Having to write [% KOHA_VERSION %] for each url is bad because:
- It's easily forgettable when adding new <script> or <link>
- It prevents grep'ing for the full filename
- It violates the DRY principle
- If at some point we want to change the "force js and css reload"
  mechanism, it will be tedious

This patch:
- adds a Template::Toolkit plugin that generates <script> and
  <link> tags for JS and CSS files, and inserts automatically the Koha
  version in the filename
- use the new plugin to remove all occurences of [% KOHA_VERSION %]
- remove the code that was adding KOHA_VERSION as a template variable

Test plan:
1. Apply patch
2. Go to several different pages in Koha (opac and intranet) while
   checking your browser's dev tools (there should be no 404 for JS and
   CSS files, and the Koha version should appear in filenames) and the
   server logs (there should be no "File not found")
3. `git grep KOHA_VERSION` should return nothing
4. prove t/db_dependent/Koha/Template/Plugin/Asset.t

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
18.05.x
Julian Maurice 4 years ago
committed by Jonathan Druart
parent
commit
ed7543287b
  1. 3
      C4/Templates.pm
  2. 110
      Koha/Template/Plugin/Asset.pm
  3. 11
      koha-tmpl/intranet-tmpl/prog/en/includes/datatables.inc
  4. 3
      koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close-receipt.inc
  5. 15
      koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc
  6. 9
      koha-tmpl/intranet-tmpl/prog/en/includes/greybox.inc
  7. 19
      koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc
  8. 5
      koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc
  9. 25
      koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc
  10. 5
      koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc
  11. 3
      koha-tmpl/intranet-tmpl/prog/en/includes/wysiwyg-systempreferences.inc
  12. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt
  13. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt
  14. 7
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt
  15. 21
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt
  16. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt
  17. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt
  18. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt
  19. 7
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt
  20. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice-files.tt
  21. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt
  22. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt
  23. 7
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt
  24. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt
  25. 11
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
  26. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersubscription.tt
  27. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt
  28. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt
  29. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt
  30. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt
  31. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt
  32. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt
  33. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt
  34. 7
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt
  35. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt
  36. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt
  37. 11
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt
  38. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt
  39. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt
  40. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/audio_alerts.tt
  41. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt
  42. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt
  43. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt
  44. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt
  45. 7
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt
  46. 7
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt
  47. 7
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt
  48. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt
  49. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/checkmarc.tt
  50. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt
  51. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt
  52. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/clone-rules.tt
  53. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt
  54. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt
  55. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt
  56. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt
  57. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_ean_accounts.tt
  58. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/fieldmapping.tt
  59. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/item_circulation_alerts.tt
  60. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_field.tt
  61. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_fields.tt
  62. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt
  63. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt
  64. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt
  65. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt
  66. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt
  67. 7
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt
  68. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt
  69. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt
  70. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt
  71. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt
  72. 13
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt
  73. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/printers.tt
  74. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt
  75. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
  76. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/sms_providers.tt
  77. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping.tt
  78. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt
  79. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt
  80. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt
  81. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt
  82. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt
  83. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt
  84. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt
  85. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/authorities/merge.tt
  86. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt
  87. 7
      koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt
  88. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt
  89. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt
  90. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt
  91. 13
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
  92. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt
  93. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt
  94. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt
  95. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt
  96. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt
  97. 7
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
  98. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt
  99. 11
      koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt
  100. 11
      koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt

3
C4/Templates.pm

@ -242,9 +242,6 @@ sub gettemplate {
languages_loop => $languages_loop,
one_language_enabled => $one_language_enabled,
) unless $one_language_enabled;
$template->param(
KOHA_VERSION => C4::Context->preference('Version')
);
return $template;
}

110
Koha/Template/Plugin/Asset.pm

@ -0,0 +1,110 @@
package Koha::Template::Plugin::Asset;
# Copyright Marc Véron / marc veron ag, Switzerland
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# Koha is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
use Modern::Perl;
use Template::Plugin;
use base qw( Template::Plugin );
use File::Basename;
use File::Spec;
use C4::Context;
sub new {
my ($class, $context) = @_;
my $self = {
_CONTEXT => $context,
};
return bless $self, $class;
}
sub js {
my ( $self, $filename, $attributes ) = @_;
my $url = $self->url($filename);
unless ($url) {
warn "File not found : $filename";
return;
}
$attributes->{src} = $url;
return $self->tag('script', $attributes) . '</script>';
}
sub css {
my ( $self, $filename, $attributes ) = @_;
my $url = $self->url($filename);
unless ($url) {
warn "File not found : $filename";
return;
}
$attributes->{rel} = 'stylesheet';
$attributes->{type} = 'text/css';
$attributes->{href} = $url;
return $self->tag('link', $attributes);
}
sub url {
my ( $self, $filename ) = @_;
my $stash = $self->{_CONTEXT}->stash();
my $interface = $stash->get('interface');
my $theme = $stash->get('theme');
my $configkey = $interface =~ /opac/ ? 'opachtdocs' : 'intrahtdocs';
my $root = C4::Context->config($configkey);
my ($basename, $dirname, $suffix) = fileparse($filename, qr/\.[^.]*/);
my $type = substr $suffix, 1;
my @dirs = (
"$theme",
".",
);
my $version = C4::Context->preference('Version');
foreach my $dir (@dirs) {
my $abspath = File::Spec->catfile($root, $dir, $filename);
if (-e $abspath) {
return File::Spec->catfile($interface, $dir, $dirname, "${basename}_${version}${suffix}");
}
}
}
sub tag {
my ($self, $name, $attributes) = @_;
my @attributes_strs;
if ($attributes) {
while (my ($key, $value) = each %$attributes) {
push @attributes_strs, qq{$key="$value"};
}
}
my $attributes_str = join ' ', @attributes_strs;
return "<$name $attributes_str>";
}
1;

11
koha-tmpl/intranet-tmpl/prog/en/includes/datatables.inc

@ -1,8 +1,9 @@
[% USE Asset %]
[% INCLUDE 'format_price.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/buttons.dataTables.min_[% KOHA_VERSION %].css" />
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/dataTables.buttons.min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/buttons.colVis.min_[% KOHA_VERSION %].js"></script>
[% Asset.css("css/buttons.dataTables.min.css") %]
[% Asset.js("lib/jquery/plugins/jquery.dataTables.min.js") %]
[% Asset.js("lib/jquery/plugins/dataTables.buttons.min.js") %]
[% Asset.js("lib/jquery/plugins/buttons.colVis.min.js") %]
<script type="text/javascript">
//<![CDATA[
var MSG_DT_FIRST = _("First");
@ -22,4 +23,4 @@
var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the");
//]]>
</script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/datatables_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/datatables.js") %]

3
koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close-receipt.inc

@ -1,4 +1,5 @@
[% USE Asset %]
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
<link rel="stylesheet" type="text/css" media="print" href="[% interface %]/[% theme %]/css/print_[% KOHA_VERSION %].css" />
[% Asset.css("css/print.css", { media = "print" }) %]

15
koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Koha %]
[% USE String %]
[% PROCESS 'html_helpers.inc' %]
@ -10,16 +11,16 @@
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/jquery/jquery-ui-1.11.4.min_[% KOHA_VERSION %].css" />
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/bootstrap/bootstrap.min_[% KOHA_VERSION %].css" />
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/bootstrap/bootstrap-theme.min_[% KOHA_VERSION %].css" />
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/font-awesome/css/font-awesome.min_[% KOHA_VERSION %].css" />
<link rel="stylesheet" type="text/css" media="print" href="[% interface %]/[% theme %]/css/print_[% KOHA_VERSION %].css" />
[% Asset.css("lib/jquery/jquery-ui-1.11.4.min.css") %]
[% Asset.css("lib/bootstrap/bootstrap.min.css") %]
[% Asset.css("lib/bootstrap/bootstrap-theme.min.css") %]
[% Asset.css("lib/font-awesome/css/font-awesome.min.css") %]
[% Asset.css("css/print.css", { media = "print" }) %]
[% INCLUDE intranetstylesheet.inc %]
[% IF ( bidi ) %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left_[% KOHA_VERSION %].css" />[% END %]
[% IF ( bidi ) %][% Asset.css("css/right-to-left.css") %][% END %]
[% IF ( login ) %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/login_[% KOHA_VERSION %].css" />
[% Asset.css("css/login.css") %]
[% END %]
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]

9
koha-tmpl/intranet-tmpl/prog/en/includes/greybox.inc

@ -1,7 +1,8 @@
[% USE Asset %]
<script type="text/javascript">
var GB_ROOT_DIR = "[% interface %]/lib/greybox/";
</script>
<script type="text/javascript" src="[% interface %]/lib/greybox/AJS_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/greybox/AJS_fx_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/greybox/gb_scripts_[% KOHA_VERSION %].js"></script>
<link href="[% interface %]/lib/greybox/gb_styles_[% KOHA_VERSION %].css" rel="stylesheet" type="text/css" />
[% Asset.js("lib/greybox/AJS.js") %]
[% Asset.js("lib/greybox/AJS_fx.js") %]
[% Asset.js("lib/greybox/gb_scripts.js") %]
[% Asset.css("lib/greybox/gb_styles.css") %]

19
koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc

@ -1,20 +1,21 @@
[% USE Asset %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Online help</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/jquery/jquery-ui-1.11.4.min_[% KOHA_VERSION %].css" />
<link rel="stylesheet" type="text/css" media="print" href="[% interface %]/[% theme %]/css/print_[% KOHA_VERSION %].css" />
[% Asset.css("lib/jquery/jquery-ui-1.11.4.min.css") %]
[% Asset.css("css/print.css", { media = "print" }) %]
[% INCLUDE intranetstylesheet.inc %]
[% IF ( bidi ) %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left_[% KOHA_VERSION %].css" />
[% Asset.css("css/right-to-left.css") %]
[% END %]
<script type="text/javascript" src="[% interface %]/lib/jquery/jquery-2.2.3.min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/jquery-migrate-1.3.0.min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/jquery-ui-1.11.4.min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/shortcut/shortcut_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/jquery-2.2.3.min.js") %]
[% Asset.js("lib/jquery/jquery-migrate-1.3.0.min.js") %]
[% Asset.js("lib/jquery/jquery-ui-1.11.4.min.js") %]
[% Asset.js("lib/shortcut/shortcut.js") %]
<!-- koha core js -->
<script type="text/javascript" src="[% interface %]/[% theme %]/js/staff-global_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/staff-global.js") %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/help_[% KOHA_VERSION %].css" />
[% Asset.css("css/help.css") %]
</head>
<body id="help" class="help">

5
koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc

@ -1,8 +1,9 @@
[% SET intranetstylesheet='staff-global_' _ KOHA_VERSION _ '.css' UNLESS intranetstylesheet %]
[% USE Asset %]
[% SET intranetstylesheet='staff-global.css' UNLESS intranetstylesheet %]
[% IF (intranetstylesheet.match('^https?:|^\/')) %]
<link rel="stylesheet" type="text/css" href="[% intranetstylesheet %]" />
[% ELSE %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/[% intranetstylesheet %]" />
[% Asset.css("css/" _ intranetstylesheet) %]
[% END %]
<!-- local colors -->

25
koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE AudioAlerts %]
[%# Prevent XFS attacks -%]
[% UNLESS popup %]
@ -11,17 +12,17 @@
</script>
[% END %]
<script type="text/javascript" src="[% interface %]/lib/jquery/jquery-2.2.3.min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/jquery-migrate-1.3.0.min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/jquery-ui-1.11.4.min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/shortcut/shortcut_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.highlight-3_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/bootstrap/bootstrap.min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.validate.min_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/jquery-2.2.3.min.js") %]
[% Asset.js("lib/jquery/jquery-migrate-1.3.0.min.js") %]
[% Asset.js("lib/jquery/jquery-ui-1.11.4.min.js") %]
[% Asset.js("lib/shortcut/shortcut.js") %]
[% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") %]
[% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") %]
[% Asset.js("lib/bootstrap/bootstrap.min.js") %]
[% Asset.js("lib/jquery/plugins/jquery.validate.min.js") %]
<!-- koha core js -->
<script type="text/javascript" src="[% interface %]/[% theme %]/js/staff-global_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/commons_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/staff-global.js") %]
[% Asset.js("js/commons.js") %]
[% INCLUDE 'validator-strings.inc' %]
[% IF ( IntranetUserJS ) %]
@ -52,11 +53,11 @@
//]]>
</script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/basket_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/basket.js") %]
[% END %]
[% IF LocalCoverImages %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/localcovers_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/localcovers.js") %]
<script type="text/javascript">
//<![CDATA[
var NO_LOCAL_JACKET = _("No cover image available");

5
koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc

@ -1,6 +1,7 @@
[% USE Asset %]
<script src="[% interface %]/lib/select2/js/select2.min.js"></script>
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/select2/css/select2.min_[% KOHA_VERSION %].css" />
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/select2_[% KOHA_VERSION %].css" />
[% Asset.css("lib/select2/css/select2.min.css") %]
[% Asset.css("css/select2.css") %]
<script>
jQuery.extend($.fn.select2.defaults, {
allowClear: true,

3
koha-tmpl/intranet-tmpl/prog/en/includes/wysiwyg-systempreferences.inc

@ -1,5 +1,6 @@
[% USE Asset %]
[% #Enable tinymce for system preferences %]
<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/tiny_mce/tiny_mce.js") %]
<script>
[%# Save TinyMCE content and trigger an event on the original element %]

9
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt

@ -1,11 +1,12 @@
[% USE Asset %]
[% USE Price %]
[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
<link href="[% interface %]/lib/jquery/plugins/treetable/stylesheets/jquery.treetable_[% KOHA_VERSION %].css" rel="stylesheet" type="text/css" />
[% Asset.css("css/datatables.css") %]
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") %]
</head>
<body id="acq_acqui-home" class="acq">
@ -169,8 +170,8 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/treetable/jquery.treetable_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") %]
[% Asset.js("js/acquisitions-menu.js") %]
<script type="text/javascript">
dt_overwrite_html_sorting_localeCompare();

9
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE KohaDates %]
[% USE Branches %]
[% SET footerjs = 1 %]
@ -9,7 +10,7 @@
&rsaquo; Batch list
[% END %]
</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
<style type="text/css">#dataPreview { width : 80%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }</style>
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -425,10 +426,10 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acq_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
[% Asset.js("js/acq.js") %]
<script type="text/JavaScript">
$(document).ready(function() {
$("#files").dataTable($.extend(true, {}, dataTablesDefaults, {

7
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% BLOCK csv_export %]
<div class="btn-group">
<a id="exportbutton" class="btn btn-default btn-sm" href="[% script_name %]?op=export&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]"><i class="fa fa-download"></i> Export as CSV</a>
@ -19,7 +20,7 @@
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; [% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno |html %]) for [% booksellername|html %]</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
<style type="text/css">
.sortmsg {font-size: 80%;}
@ -685,9 +686,9 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
<script type="text/javascript">
function updateColumnsVisibility(visible) {
if ( visible ) {

21
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt

@ -1,19 +1,20 @@
[% USE Asset %]
[% USE Branches %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Basket grouping for [% booksellername |html %]</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/yui/utilities/utilities_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/yui/button/button-min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/yui/container/container_core-min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/yui/menu/menu-min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/basketgroup_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/yui/utilities/utilities.js") %]
[% Asset.js("lib/yui/button/button-min.js") %]
[% Asset.js("lib/yui/container/container_core-min.js") %]
[% Asset.js("lib/yui/menu/menu-min.js") %]
[% Asset.js("js/basketgroup.js") %]
[% IF ( grouping ) %]
<script type="text/javascript" src="[% interface %]/lib/yui/yahoo-dom-event/yahoo-dom-event_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/yui/animation/animation-min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/yui/dragdrop/dragdrop-min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/yui/element/element-min_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/yui/yahoo-dom-event/yahoo-dom-event.js") %]
[% Asset.js("lib/yui/animation/animation-min.js") %]
[% Asset.js("lib/yui/dragdrop/dragdrop-min.js") %]
[% Asset.js("lib/yui/element/element-min.js") %]
<style type="text/css">
/*margin and padding on body element
can introduce errors in determining

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Branches %]
[% USE Koha %]
[% SET footerjs = 1 %]
@ -140,8 +141,8 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acq_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% Asset.js("js/acq.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE KohaDates %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -8,7 +9,7 @@
vertical-align: top;
}
</style>
<link rel="stylesheet" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
</head>
<body id="acq_booksellers" class="acq">
@ -186,7 +187,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
$(document).ready(function() {

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt

@ -1,8 +1,9 @@
[% USE Asset %]
[% USE KohaDates %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; EDIFACT messages</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
<style type="text/css">
#EDI_modal { width : 80%; } @media (max-width: 767px) { #EDI_modal { margin: 0; width : auto; } }
@ -110,7 +111,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
$(document).ready(function() {

7
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt

@ -1,9 +1,10 @@
[% USE Asset %]
[% USE KohaDates %]
[% USE ColumnsSettings %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( order_loop ) %]Orders search &rsaquo; Search results[% ELSE %]Order search[% END %]</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -207,11 +208,11 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'columns_settings.inc' %]
<script type="text/javascript" src="[% interface %]/js/autocomplete/patrons_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/autocomplete/patrons.js") %]
<script type="text/javascript">
var MSG_REMOVE_PATRON = _("Remove");
$(document).ready(function() {

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice-files.tt

@ -1,8 +1,9 @@
[% USE Asset %]
[% USE KohaDates %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; Invoice &rsaquo; Files</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -85,7 +86,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
$(document).ready(function() {

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt

@ -1,10 +1,11 @@
[% USE Asset %]
[% USE Koha %]
[% USE KohaDates %]
[% USE Price %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; Invoice</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -210,7 +211,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt

@ -1,9 +1,10 @@
[% USE Asset %]
[% USE KohaDates %]
[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; Invoices</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -294,7 +295,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'calendar.inc' %]
<script type="text/javascript">

7
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt

@ -1,10 +1,11 @@
[% USE Asset %]
[% USE KohaDates %]
[% USE Branches %]
[% USE ColumnsSettings %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; Late orders</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -191,10 +192,10 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'columns_settings.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
[% INCLUDE 'calendar.inc' %]
<script type="text/javascript">
var late_orderst;

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt

@ -1,7 +1,8 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; Search existing records</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -107,7 +108,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
$(document).ready(function() {

11
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Koha %]
[% USE KohaDates %]
[% SET footerjs = 1 %]
@ -515,12 +516,12 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acq_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% Asset.js("js/acq.js") %]
[% INCLUDE 'additem.js.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/additem_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/cataloging_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/prevent_submit_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/additem.js") %]
[% Asset.js("js/cataloging.js") %]
[% Asset.js("js/prevent_submit.js") %]
<script type="text/javascript">
actTotal = "";

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersubscription.tt

@ -1,10 +1,11 @@
[% USE Asset %]
[% USE KohaDates %]
[% USE Branches %]
[% USE Koha %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Serials [% biblionumber %]</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -96,7 +97,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
function updateRowsVisibility(show_only_renewed) {

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt

@ -1,7 +1,8 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; Add order from a suggestion</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -74,7 +75,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
$(document).ready(function() {

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt

@ -1,9 +1,10 @@
[% USE Asset %]
[% USE KohaDates %]
[% USE ItemTypes %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; Ordered</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -96,7 +97,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
$(document).ready(function() {

9
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE KohaDates %]
[% USE Branches %]
[% USE Price %]
@ -262,12 +263,12 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'additem.js.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/additem_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/cataloging_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/prevent_submit_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/additem.js") %]
[% Asset.js("js/cataloging.js") %]
[% Asset.js("js/prevent_submit.js") %]
<script type="text/javascript">
function Check(form) {
[% IF (AcqCreateItemReceiving) %]

9
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Koha %]
[% USE KohaDates %]
[% USE Price %]
@ -6,7 +7,7 @@
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( date ) %]
Receipt summary for [% name %] [% IF ( invoice ) %]invoice [% invoice %][% END %] on [% datereceived | $KohaDates %][% ELSE %]Receive orders from [% name %][% END %]</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -422,10 +423,10 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") %]
[% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") %]
<style type="text/css">#dataPreview { width : 80%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }</style>
<script type="text/javascript">

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt

@ -1,8 +1,9 @@
[% USE Asset %]
[% USE KohaDates %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; Receive shipment from vendor [% name %]</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -201,7 +202,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt

@ -1,9 +1,10 @@
[% USE Asset %]
[% USE KohaDates %]
[% USE ItemTypes %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; Spent</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -104,7 +105,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
$(document).ready(function() {

5
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE KohaDates %]
[% BLOCK edit_contact %]
<ol id="contact-form">
@ -88,7 +89,7 @@
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Vendor [% name %]</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -351,7 +352,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
function confirm_deletion() {

7
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt

@ -1,8 +1,9 @@
[% USE Asset %]
[% USE Koha %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( booksellername ) %]Orders with uncertain prices for vendor [% booksellername %][% ELSE %]Orders with uncertain prices[% END %]</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -138,7 +139,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
$(document).ready(function() {
@ -156,7 +157,7 @@
});
var MSG_INVALIDPRICE = _("ERROR: Price is not a valid number, please check the price and try again!");
</script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acq_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acq.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

9
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt

@ -1,7 +1,8 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( opsearch ) %]Order from external source[% ELSE %]Order from external source &rsaquo; Search results[% END %]</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'doc-head-close.inc' %]
<style type="text/css">
.linktools { background-color:#FFF;border-top:1px solid #DDD; border-left: 1px solid #DDD; border-right: 1px solid #666; border-bottom:1px solid #666;display: none; white-space: nowrap;}
@ -191,9 +192,9 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
[% IF ( numberpending ) %]<h3 align="center">Still [% numberpending %] servers to search</h3>[% END %]
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acquisitions-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
<script type="text/javascript">
$(document).ready(function(){
var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
@ -223,7 +224,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
});
</script>
[% INCLUDE 'z3950_search.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/z3950_search_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/z3950_search.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

9
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE KohaDates %]
[% USE Price %]
[% SET footerjs = 1 %]
@ -34,9 +35,9 @@
[% INCLUDE 'doc-head-open.inc' %]
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% IF close_form %]
<link href="[% interface %]/lib/jquery/plugins/treetable/stylesheets/jquery.treetable_[% KOHA_VERSION %].css" rel="stylesheet" type="text/css" />
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") %]
[% END %]
<title>
@ -495,9 +496,9 @@
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'datatables.inc' %]
[% IF close_form %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/treetable/jquery.treetable_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") %]
[% END %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acq_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acq.js") %]
<script type="text/javascript">
// #################################################################################
// Javascript

11
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt

@ -1,11 +1,12 @@
[% USE Asset %]
[% USE AuthorisedValues %]
[% USE Branches %]
[% USE Price %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Funds[% IF op == 'add_form' %] &rsaquo; [% IF ( budget_id ) %]Modify fund[% IF ( budget_name ) %] '[% budget_name %]'[% END %][% ELSE %]Add fund [% END %][% END %]</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
<link href="[% interface %]/lib/jquery/plugins/treetable/stylesheets/jquery.treetable_[% KOHA_VERSION %].css" rel="stylesheet" type="text/css" />
[% Asset.css("css/datatables.css") %]
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -440,14 +441,14 @@
</div>
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acq_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acq.js") %]
<script type="text/javascript">
var MSG_BUDGET_PARENT_ALLOCATION = "- " + _("Fund amount exceeds parent allocation") + "\n";
var MSG_BUDGET_PERIOD_ALLOCATION = "- " + _("Fund amount exceeds period allocation") + "\n";
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") + "\n";
</script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acq_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acq.js") %]
[% IF op == 'add_form' %]
<script type="text/javascript">
//<![CDATA[
@ -606,7 +607,7 @@
</script>
[% ELSIF op == 'list' %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/treetable/jquery.treetable_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") %]
<script type="text/javascript">
//<![CDATA[

3
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE KohaDates %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -176,7 +177,7 @@
</div>
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'calendar.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acq_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/acq.js") %]
<script type="text/javascript">
//<![CDATA[
// to check if the data are correctly entered.

5
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Price %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -269,8 +270,8 @@
</div>
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acq_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
[% Asset.js("js/acq.js") %]
<script type="text/javascript">
//<![CDATA[
function Check(f) {

5
koha-tmpl/intranet-tmpl/prog/en/modules/admin/audio_alerts.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Koha %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -132,12 +133,12 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
<script type="text/javascript">
var MSG_AUDIO_EMPTY_SOUND = _("Please select or enter a sound.");
var MSG_AUDIO_CONFIRM_DELETE = _("Are you sure you want to delete the selected audio alerts?");
var MSG_AUDIO_CHECK_CHECKBOXES = _("Check the box next to the alert you want to delete.")
</script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/audio_alerts_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/audio_alerts.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

3
koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Authority MARC subfield structure</title>
@ -333,7 +334,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
<script type="text/javascript">
$(document).ready(function() {
$('#subfieldtabs').tabs();

5
koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE AuthorisedValues %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -7,7 +8,7 @@
[% ELSE %]&rsaquo; [% action %][% END %][% END %][% IF ( delete_confirm ) %]&rsaquo; [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] &rsaquo; Confirm deletion[% END %][% IF ( delete_confirmed ) %]&rsaquo; [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] &rsaquo; Data deleted[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
</head>
<body id="admin_auth_tag_structure" class="admin">
@ -234,7 +235,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
<script type="text/javascript">
$(document).ready(function() {
$("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {

5
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Authorized values
@ -9,7 +10,7 @@
</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
<style type="text/css">
fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
@ -281,7 +282,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
$(document).ready(function() {

5
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Authority types
@ -8,7 +9,7 @@
[% END %]
</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
</head>
<body id="admin_authtypes" class="admin">
@ -174,7 +175,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
<script type="text/javascript">
$(document).ready(function() {
$("#authtypes").dataTable($.extend(true, {}, dataTablesDefaults, {

7
koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; MARC frameworks
@ -8,7 +9,7 @@
[% END %]
</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
</head>
<body id="admin_biblio_framework" class="admin">
@ -281,7 +282,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
<script type="text/javascript">
/* Set some variable needed in biblio_framework.js */
var MSG_IMPORT_ERROR = _("Error importing the framework");
@ -290,6 +291,6 @@
var MSG_IMPORTING_TO_FRAMEWORK = _("Importing to framework: %s. Importing from file: %s.");
var template_path = "[% interface %]/[% theme %]";
</script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/biblio_framework_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/biblio_framework.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

7
koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt

@ -1,9 +1,10 @@
[% USE Asset %]
[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Library checkin and transfer policy</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
<style type="text/css">td { text-align: center; } .sorted { min-width: 50%; }</style>
</head>
@ -85,9 +86,9 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
<script type="text/javascript">
$(document).ready(function(){
$("#CheckAll").click(function(){ $("#transferlimit_tabs").checkCheckboxes(); return false; });

7
koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Libraries
@ -8,7 +9,7 @@
[% END %]
</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
</head>
<body id="admin_branches" class="admin">
@ -242,9 +243,9 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/tiny_mce/tiny_mce.js") %]
<script type="text/javascript">
$(document).ready(function() {
$("#branchest").dataTable($.extend(true, {}, dataTablesDefaults, {

9
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Koha %]
[% USE KohaDates %]
[% USE Price %]
@ -7,7 +8,7 @@
[% IF op == 'delete_confirm' %][% IF ( patrons_in_category > 0 ) %]Cannot delete: category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %]
</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
<style type="text/css">#enrolmentmessage.hint { display : none; }</style>
</head>
@ -491,14 +492,14 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/messaging-preference-form_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
[% Asset.js("js/messaging-preference-form.js") %]
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
var MSG_CATEGORYCODE_CHARS = _("Category code can only contain the following characters: letters, numbers, - and _.");
var MSG_ONE_ENROLLMENTPERIOD = ("Please choose an enrollment period in months OR by date.");
</script>
<script type="text/javascript" src="[% themelang %]/js/categories_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/categories.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

3
koha-tmpl/intranet-tmpl/prog/en/modules/admin/checkmarc.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; MARC check
@ -279,6 +280,6 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

5
koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt

@ -1,8 +1,9 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; [% IF op =='add_form' %]Cities &rsaquo; [% IF city.cityid %] Modify city[% ELSE %] New city[% END %][% ELSE %][% IF op == 'delete_confirm' %]Cities &rsaquo; Confirm deletion of city[% ELSE %] Cities[% END %][% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
</head>
<body id="admin_cities" class="admin">
@ -174,7 +175,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
$(document).ready(function() {

3
koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Classification sources
@ -268,6 +269,6 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

3
koha-tmpl/intranet-tmpl/prog/en/modules/admin/clone-rules.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -67,7 +68,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

3
koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% SET panel_id = 0 %]
[% BLOCK pagelist %]
@ -165,7 +166,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
<script type="text/javascript">
$(document).ready( function() {
var accordion = $( "#modules" ).accordion({

5
koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE KohaDates %]
[% USE ColumnsSettings %]
[% USE HtmlTags %]
@ -8,7 +9,7 @@