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 6 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 @@
[% IF op == 'delete_confirm' %]Confirm deletion of currency '[% currency.currency %]'[% END %]
[% IF op == 'list' %]Currencies[% 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_currency" class="admin">
@ -225,7 +226,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' %]
[% INCLUDE 'columns_settings.inc' %]
<script type="text/javascript">

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% BLOCK pluginlist %]
<div class="pluginlist">
@ -68,7 +69,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() {
$( ".pluginlist" ).sortable();

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; EDI accounts
@ -325,6 +326,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/edi_ean_accounts.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Library EANs
@ -171,6 +172,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/fieldmapping.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Keyword to MARC mapping</title>
@ -74,7 +75,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() {
$('#selectframework').find("input:submit").hide();

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -158,7 +159,7 @@ table.grid td.default {
</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 $branch = "[% branch %]";
$(function(){

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% USE AuthorisedValues %]
[% INCLUDE 'doc-head-open.inc' %]
@ -41,7 +42,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' %]

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% USE AuthorisedValues %]
[% INCLUDE 'doc-head-open.inc' %]
@ -109,11 +110,11 @@
</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_ITEM_SEARCH_DELETE_CONFIRM = _("Are you sure you want to delete this field?");
</script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/item_search_fields_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/item_search_fields.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Koha %]
[% USE AuthorisedValues %]
[% USE Price %]
@ -22,7 +23,7 @@ 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") %]
<style type="text/css">
fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-active {background-color : #F4F8F9; }
@ -395,7 +396,7 @@ Item types administration
</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 'greybox.inc' %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">

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

@ -1,8 +1,9 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Koha to MARC mapping</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_koha2marclinks" class="admin">
@ -68,7 +69,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">
function AddFld(kohafield) {
var fieldstr = prompt( _("Adding a mapping for: %s.").format(kohafield) + "\n" + _("Please enter field tag and subfield code, separated by a comma. (For control fields: add '@' as subfield code.)\nThe change will be applied immediately.") );

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

@ -1,9 +1,10 @@
[% USE Asset %]
[% USE KohaSpan %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Library groups</title>
[% INCLUDE 'doc-head-close.inc' %]
<link href="[% interface %]/lib/jquery/plugins/treetable/stylesheets/jquery.treetable_[% KOHA_VERSION %].css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/treetable/jquery.treetable_[% KOHA_VERSION %].js"></script>
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") %]
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") %]
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {

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

@ -1,8 +1,9 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Localization</title>
[% INCLUDE 'doc-head-close.inc' popup => 1 %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
</head>
<body id="admin_localization" class="admin">

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo;[% IF ( add_form ) %][% IF ( use_heading_flags_p ) %][% IF ( heading_edit_subfields_p ) %] MARC subfield structure &rsaquo; Edit MARC subfields constraints[% END %][% ELSE %] MARC subfield structure &rsaquo; [% action %][% END %][% END %]
@ -318,7 +319,7 @@
</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/marc_subfields_structure_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
[% Asset.js("js/marc_subfields_structure.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE AuthorisedValues %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -7,7 +8,7 @@
[% IF ( delete_confirmed ) %]MARC frameworks &rsaquo; Data deleted[% END %]
[% IF ( else ) %]MARC frameworks[% 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_marctagstructure" class="admin">
@ -254,8 +255,8 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
[% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") %]
<script type="text/javascript">
$(document).ready(function() {
$("#table_marctagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Record matching rules
@ -579,7 +580,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">
var maxMatchPoint = [% max_matchpoint %];
var maxMatchCheck = [% max_matchcheck %];

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; OAI sets &rsaquo; OAI set mappings</title>
@ -93,7 +94,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() {
$("#mappingform").submit(function(){

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; [% IF ( op_new ) %]OAI sets configuration &rsaquo; Add a new OAI set[% ELSE %]OAI sets configuration[% END %]</title>
@ -113,7 +114,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">
function newDescField() {
$("#adddescription").before(

3
koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE AuthorisedValues %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -299,7 +300,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() {
if ( $("#branches option:selected").length < 1 ) {

13
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt

@ -1,12 +1,13 @@
[% USE Asset %]
[% USE Koha %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; System preferences</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/preferences_[% KOHA_VERSION %].css" />
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/jquery/plugins/multiple-select/multiple-select_[% KOHA_VERSION %].css" />
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/humanmsg_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% Asset.css("css/preferences.css") %]
[% Asset.css("lib/jquery/plugins/multiple-select/multiple-select.css") %]
[% Asset.css("css/humanmsg.css") %]
</head>
<body id="admin_preferences" class="admin">
[% INCLUDE 'header.inc' %]
@ -154,8 +155,8 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/multiple-select/jquery.multiple.select_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
[% Asset.js("lib/jquery/plugins/multiple-select/jquery.multiple.select.js") %]
<script type="text/javascript">
[% UNLESS ( searchfield ) %]$(document).ready(function(){
$('#toolbar').fixFloat();

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo;
[% IF ( add_form ) %][% IF ( searchfield ) %] Printers &rsaquo; Modify printer '[% searchfield %]'[% ELSE %] Printers &rsaquo; New printer[% END %][% END %]
@ -7,7 +8,7 @@
[% IF ( else ) %]Printers[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% IF ( loop ) %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
//<![CDATA[

3
koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt

@ -1,7 +1,8 @@
[% USE Asset %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Elastic Search mappings</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.tablednd_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.tablednd.js") %]
<script type="text/javascript">
function clean_line( line ) {
$(line).find('input[type="text"]').val("");

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -735,7 +736,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 'calendar.inc' %]
<script type="text/javascript">

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; SMS cellular providers</title>
@ -96,13 +97,13 @@
</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_SMS_PATRONS_USING = _("Are you sure you want to delete %s? %s patron(s) are using it!");
var MSG_SMS_DELETE_CONFIRM = _("Are you sure you want to delete %s?");
var LABEL_SMS_ADD_PROVIDER = _("Add an SMS cellular provider");
var LABEL_SMS_EDIT_PROVIDER = _("Edit provider %s");
</script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/sms_providers_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/sms_providers.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; SRU search fields mapping</title>
@ -71,7 +72,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() {
$("#form01").submit(function(event) {

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

@ -1,10 +1,11 @@
[% USE Asset %]
[% USE Koha %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; [% IF ( add_form ) %] System preferences &rsaquo; [% IF ( modify ) %]Modify system preference '[% searchfield %]'[% ELSE %]Add a system preference[% END %][% END %][% IF ( add_validate ) %] System preferences &rsaquo; Data added[% END %]
[% IF ( delete_confirm ) %] System preferences &rsaquo; [% searchfield %] &rsaquo; Confirm deletion of parameter '[% searchfield %]'[% END %][% IF ( delete_confirmed ) %] System preferences &rsaquo; Parameter deleted[% END %][% IF ( else ) %]System preferences[% 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_systempreferences" class="admin">

3
koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -91,7 +92,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">
function check_transport_cost(e) {
var val = e.value;

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% USE Koha %]
[% USE KohaDates %]
@ -5,7 +6,7 @@
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Koha usage statistics</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" href="[% interface %]/lib/leaflet/leaflet_[% KOHA_VERSION %].css" />
[% Asset.css("lib/leaflet/leaflet.css") %]
</head>
<body id="admin_usage_statistics" class="admin">
@ -228,7 +229,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'calendar.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/admin-menu.js") %]
<script src="[% interface %]/lib/leaflet/leaflet.js"></script>
<script type="text/javascript">
function positionMap() {

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -16,7 +17,7 @@
[% INCLUDE 'doc-head-close.inc' %]
[% IF op == 'list' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% END %]
</head>
@ -198,7 +199,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") %]
[% IF op == 'list' %]
[% INCLUDE 'datatables.inc' %]
[% END %]

3
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Cataloging authority plugin</title>
@ -15,7 +16,7 @@
var index = "[% index %]";
var authtypecode = "[% authtypecode %]";
</script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/auth-finder-search_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/auth-finder-search.js") %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' popup_window = 1 %]

9
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt

@ -1,8 +1,9 @@
[% USE Asset %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Authorities &rsaquo; [% IF ( authid ) %]Modify authority #[% authid %] ([% authtypetext %])[% ELSE %]Adding authority ([% authtypetext %])[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/cataloging_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
[% Asset.js("js/cataloging.js") %]
<script type="text/javascript">
//<![CDATA[
@ -152,7 +153,7 @@ function confirmnotdup(redirect){
}
//]]>
</script>
<link type="text/css" rel="stylesheet" href="[% interface %]/[% theme %]/css/addbiblio_[% KOHA_VERSION %].css" />
[% Asset.css("css/addbiblio.css") %]
[% INCLUDE 'select2.inc' %]
<script>
@ -162,7 +163,7 @@ function confirmnotdup(redirect){
</script>
[% 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 %]
</head>
<body id="auth_authorities" class="auth">

3
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% PROCESS 'authorities.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
@ -96,7 +97,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'authorities_js.inc' %]
[% IF ( displayhierarchy ) %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.jstree_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.jstree.js") %]
[% END %]
<script type="text/javascript">
$(document).ready(function() {

3
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/merge.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% PROCESS 'merge-record.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -106,7 +107,7 @@ div#result { margin-top: 1em; }
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'merge-record-strings.inc' %]
[% INCLUDE 'authorities_js.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/merge-record_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/merge-record.js") %]
[% INCLUDE 'merge-record-strings.inc' %]
<script type="text/javascript">
//<![CDATA[

3
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% PROCESS 'authorities-search-results.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
@ -89,7 +90,7 @@
var index = "[% index %]";
var authtypecode = "[% authtypecode %]";
</script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/auth-finder-search_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/auth-finder-search.js") %]
<script type="text/javascript">
function jumpfull(page){

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

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% BLOCK controls %]
<p style="padding: 7px 0; border-top : 1px solid #E8E8E8;">
@ -32,7 +33,7 @@
@import url([% interface %]/[% theme %]/css/print.css);
</style>
[% ELSE %][% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
[% END %]
</head>
[% IF ( print_basket ) %]<body id="cart_basket" class="cart" onload="print();history.back();">[% ELSE %]<body id="cart_basket" class="cart">[% END %]
@ -295,8 +296,8 @@
[% INCLUDE js_includes.inc %]
[% UNLESS ( print_basket ) %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/cart_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/cart.js") %]
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
[% END %]
</body>
</html>

5
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Catalog &rsaquo;
@ -48,9 +49,9 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'catalog-strings.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/catalog_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/catalog.js") %]
[% INCLUDE 'browser-strings.inc' %]
<script type="text/javascript" src="[% interface %]/js/browser_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/browser.js") %]
<script type="text/javascript">
var browser = KOHA.browser('[% searchid %]', parseInt('[% biblionumber %]', 10));
browser.show();

5
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Catalog &rsaquo;
@ -177,9 +178,9 @@
</div>
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'catalog-strings.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/catalog_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/catalog.js") %]
[% INCLUDE 'browser-strings.inc' %]
<script type="text/javascript" src="[% interface %]/js/browser_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/browser.js") %]
<script type="text/javascript">
var browser = KOHA.browser('[% searchid %]', parseInt('[% biblionumber %]', 10));
browser.show();

3
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -276,7 +277,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<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 add_field();

13
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Koha %]
[% USE KohaDates %]
[% USE AuthorisedValues %]
@ -33,7 +34,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="catalog_detail" class="catalog">
@ -858,7 +859,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'catalog-strings.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/catalog_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/catalog.js") %]
[% INCLUDE 'greybox.inc' %]
<script type="text/javascript">
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
@ -1046,14 +1047,14 @@
});[% END %]
</script>
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && ( normalized_isbn || normalized_upc ) ) %]
<script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init_[% KOHA_VERSION %].js"></script>
[% Asset.js("https://imageserver.ebscohost.com/novelistselect/ns2init.js") %]
[% END %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") %]
[% INCLUDE 'browser-strings.inc' %]
[% INCLUDE 'columns_settings.inc' %]
<script type="text/javascript" src="[% interface %]/js/browser_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/table_filters_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/browser.js") %]
[% Asset.js("js/table_filters.js") %]
<script type="text/javascript">
var browser;
browser = KOHA.browser('[% searchid %]', parseInt(biblionumber, 10));

3
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Catalog &rsaquo; Details for [% biblio.title |html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield %][% END %]</title>
@ -90,7 +91,7 @@ img.thumbnail {
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'catalog-strings.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/catalog_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/catalog.js") %]
<script type="text/javascript">
$(document).ready(function(){
showCover([% imagenumber %]);

3
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Koha %]
[% USE KohaDates %]
[% USE Branches %]
@ -5,7 +6,7 @@
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Catalog &rsaquo; Checkout history for [% biblio.title |html %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/datatables.css") %]
</head>
<body id="catalog_issuehistory" class="catalog">

9
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE JSON.Escape %]
[% BLOCK form_label %]
@ -102,8 +103,8 @@
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Catalog &rsaquo; Item search</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/itemsearchform_[% KOHA_VERSION %].css" />
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
[% Asset.css("css/itemsearchform.css") %]
[% Asset.css("css/datatables.css") %]
</head>
<body id="catalog_itemsearch" class="catalog">
@ -204,8 +205,8 @@
[% MACRO jsinclude BLOCK %]
[% 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.fixFloat_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") %]
[% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
<script type="text/javascript">
var authorised_values = [% authorised_values_json %];

5
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -76,9 +77,9 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'catalog-strings.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/catalog_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/catalog.js") %]
[% INCLUDE 'browser-strings.inc' %]
<script type="text/javascript" src="[% interface %]/js/browser_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/browser.js") %]
<script type="text/javascript">
//<![CDATA[
var browser = KOHA.browser('[% searchid %]', parseInt('[% biblionumber %]', 10));

5
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Koha %]
[% USE Branches %]
[% SET footerjs = 1 %]
@ -277,9 +278,9 @@
</div>
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'catalog-strings.inc' %]
<script type="text/javascript" src="[% interface %]/[% theme %]/js/catalog_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/catalog.js") %]
[% INCLUDE 'browser-strings.inc' %]
<script type="text/javascript" src="[% interface %]/js/browser_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/browser.js") %]
<script type="text/javascript">
var browser = KOHA.browser('[% searchid %]', parseInt('[% biblionumber %]', 10));
browser.show();

7
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt

@ -1,3 +1,4 @@
[% USE Asset %]
[% USE Koha %]
[% USE Biblio %]
[% USE KohaDates %]
@ -622,9 +623,9 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'browser-strings.inc' %]
<script type="text/javascript" src="[% interface %]/js/browser_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/browser.js") %]
[% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
<script type="text/javascript">
var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");

5
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt

@ -1,10 +1,11 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% USE Koha %]
[% USE KohaDates %]
<title>Koha &rsaquo; Catalog &rsaquo; Search history</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="catalogue_search-history" class="catalogue">
@ -193,7 +194,7 @@
[% MACRO jsinclude BLOCK %]
[% 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">
//<![CDATA[
$(document).ready(function() {

11
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt

@ -1,11 +1,12 @@
[% USE Asset %]
[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Cataloging &rsaquo; [% IF ( biblionumber ) %]Editing [% title |html %] (Record number [% biblionumber %])[% ELSE %]Add MARC record[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat_[% KOHA_VERSION %].js"></script>
<script type="text/javascript" src="[% interface %]/[% theme %]/js/cataloging_[% KOHA_VERSION %].js"></script>
[% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
[% Asset.js("js/cataloging.js") %]
[% INCLUDE 'browser-strings.inc' %]
<script type="text/javascript" src="[% interface %]/js/browser_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/browser.js") %]
<script type="text/javascript">
//<![CDATA[
var browser = KOHA.browser('[% searchid %]', parseInt('[% biblionumber %]', 10));
@ -383,7 +384,7 @@ function Changefwk() {
//]]>
</script>
<link type="text/css" rel="stylesheet" href="[% interface %]/[% theme %]/css/addbiblio_[% KOHA_VERSION %].css" />
[% Asset.css("css/addbiblio.css") %]
[% INCLUDE 'select2.inc' %]
<script>
@ -393,7 +394,7 @@ function Changefwk() {
</script>
[% 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 %]
</head>
<body id="cat_addbiblio" class="cat">

11
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt

@ -1,15 +1,16 @@
[% USE Asset %]
[% USE Koha %]
[% USE ColumnsSettings %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Cataloging &rsaquo; [% title |html %] [% IF ( author ) %] by [% author | html %][% END %] (Record #[% biblionumber %]) &rsaquo; Items</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 %]/[% theme %]/js/cataloging_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/cataloging.js") %]
[% INCLUDE 'columns_settings.inc' %]
[% INCLUDE 'browser-strings.inc' %]
<script type="text/javascript" src="[% interface %]/js/browser_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/browser.js") %]
<script type="text/javascript">
//<![CDATA[
var browser = KOHA.browser('[% searchid %]', parseInt('[% biblionumber %]', 10));
@ -129,7 +130,7 @@ function confirm_deletion() {
//]]>
</script>
<link type="text/css" rel="stylesheet" href="[% interface %]/[% theme %]/css/addbiblio_[% KOHA_VERSION %].css" />
[% Asset.css("css/addbiblio.css") %]
[% INCLUDE 'select2.inc' %]
<script type="text/javascript">
@ -139,7 +140,7 @@ function confirm_deletion() {
</script>
[% 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 %]
</head>
<body id="cat_additem" class="cat">

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save