-<script type="text/javascript">//<![CDATA[
- $(document).ready(function() {
- var path = location.pathname.substring(1);
- if (path.indexOf("labels") >= 0 && path.indexOf("spine") < 0 ) {
- $('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').css('font-weight','bold');
- } else if (path.indexOf("patroncards") >= 0 ) {
- $('#navmenulist a[href$="/cgi-bin/koha/patroncards/home.pl"]').css('font-weight','bold');
- } else if (path.indexOf("patron_lists") >= 0 ) {
- $('#navmenulist a[href$="/cgi-bin/koha/patron_lists/lists.pl"]').css('font-weight','bold');
- } else if ((path+location.search).indexOf("batchMod.pl?del=1") >= 0 ) {
- $('#navmenulist a[href$="/cgi-bin/koha/tools/batchMod.pl?del=1"]').css('font-weight','bold');
- } else {
- $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold');
- }
- });
-//]]>
-</script>
<div id="navmenu">
<div id="navmenulist">
<ul>
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Tools › Patron lists ›
[% IF list.patron_list_id %]
</form>
</div>
+[% MACRO jsinclude BLOCK %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
+[% END %]
+
[% INCLUDE 'intranet-bottom.inc' %]
[% USE KohaDates %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Tools › Patron lists › [% list.name %] › Add patrons</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
-[% INCLUDE 'datatables.inc' %]
-
-<script type="text/javascript" src="[% interface %]/js/autocomplete/patrons.js"></script>
-<script type="text/javascript">
-//<![CDATA[
-var MSG_REMOVE_PATRON = _("Remove");
-$(document).ready(function() {
- $('#patrons_to_add_fieldset').hide();
-
- $('#patron-list-table').dataTable($.extend(true, {}, dataTablesDefaults, {
- "order": [[ 3, "asc" ]],
- "aoColumns": [
- null,null,null,null,null,null,null,{ "sType": "title-string" },null
- ],
- "aoColumnDefs": [
- { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
- ],
- "sPaginationType": "four_button"
- } ));
-
- patron_autocomplete({
- patron_container: $("#patrons_to_add"),
- input_autocomplete: $("#find_patron"),
- patron_input_name: 'patrons_to_add'
- });
-
- var checkBoxes = $("input[type='checkbox']","#patron-list-table");
-
- $("#CheckAll").click(function(e){
- e.preventDefault();
- checkBoxes.each(function(){
- $(this).prop("checked",1);
- });
- });
- $("#CheckNone").click(function(e){
- e.preventDefault();
- checkBoxes.each(function(){
- $(this).prop("checked",0);
- });
- });
-
- $("#remove_patrons").submit(function(){
- var checkedItems = $("input:checked");
- if ($(checkedItems).size() == 0) {
- alert(_("You must select one or more patrons to remove"));
- return false;
- }
- $(checkedItems).parents('tr').addClass("warn");
- if( confirm(_("Are you sure you want to remove the selected patrons?")) ) {
- return true;
- } else {
- $(checkedItems).parents('tr').removeClass("warn");
- return false;
- }
- });
-});
-
-//]]>
-</script>
-
</head>
<body id="patlist_list" class="pat patlist">
[% INCLUDE 'tools-menu.inc' %]
</div>
</div>
+
+[% MACRO jsinclude BLOCK %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
+ [% INCLUDE 'datatables.inc' %]
+
+ <script type="text/javascript" src="[% interface %]/js/autocomplete/patrons.js"></script>
+ <script type="text/javascript">
+ var MSG_REMOVE_PATRON = _("Remove");
+ $(document).ready(function() {
+ $('#patrons_to_add_fieldset').hide();
+
+ $('#patron-list-table').dataTable($.extend(true, {}, dataTablesDefaults, {
+ "order": [[ 3, "asc" ]],
+ "aoColumns": [
+ null,null,null,null,null,null,null,{ "sType": "title-string" },null
+ ],
+ "aoColumnDefs": [
+ { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
+ ],
+ "sPaginationType": "four_button"
+ } ));
+
+ patron_autocomplete({
+ patron_container: $("#patrons_to_add"),
+ input_autocomplete: $("#find_patron"),
+ patron_input_name: 'patrons_to_add'
+ });
+
+ var checkBoxes = $("input[type='checkbox']","#patron-list-table");
+
+ $("#CheckAll").click(function(e){
+ e.preventDefault();
+ checkBoxes.each(function(){
+ $(this).prop("checked",1);
+ });
+ });
+ $("#CheckNone").click(function(e){
+ e.preventDefault();
+ checkBoxes.each(function(){
+ $(this).prop("checked",0);
+ });
+ });
+
+ $("#remove_patrons").submit(function(){
+ var checkedItems = $("input:checked");
+ if ($(checkedItems).size() == 0) {
+ alert(_("You must select one or more patrons to remove"));
+ return false;
+ }
+ $(checkedItems).parents('tr').addClass("warn");
+ if( confirm(_("Are you sure you want to remove the selected patrons?")) ) {
+ return true;
+ } else {
+ $(checkedItems).parents('tr').removeClass("warn");
+ return false;
+ }
+ });
+ });
+ </script>
+[% END %]
+
[% INCLUDE 'intranet-bottom.inc' %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Tools › Patron lists</title>
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'greybox.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
-[% INCLUDE 'datatables.inc' %]
-
-<script type="text/javascript">
-//<![CDATA[
- $(document).ready(function() {
- var patronExportModal = $("#patronExportModal");
- var patronExportModalBody = $("#patronExportModal .modal-body")
-
- $('#patron-lists-table').dataTable($.extend(true, {}, dataTablesDefaults, {
- "autoWidth": false,
- "aoColumnDefs": [
- { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }
- ],
- "sPaginationType": "four_button"
- } ));
- $(".delete_patron").on("click", function(){
- $(".dropdown").removeClass("open");
- var list = $(this).data("list-name");
- return confirmDelete( _("Are you sure you want to delete the list %s?").format(list) );
- });
-
- $(".print_cards").on("click", function(e){
- e.preventDefault();
- var page = $(this).attr("href");
- patronExportModalBody.load(page + " #exportingf");
- patronExportModal.modal("show");
- });
-
- patronExportModal.on("hidden", function(){
- patronExportModalBody.html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
- });
-
- patronExportModal.on("submit", "#exportingf", function(e){
- e.preventDefault();
- modal_body = patronExportModalBody;
- modal_body.html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
- target_url = $(this).attr("action");
- params = $( this ).serialize();
- modal_body.load( target_url + "?" + params + " #custom-doc");
- });
-
- patronExportModal.on("click",".closebtn,.gb-close",function(e){
- e.preventDefault();
- patronExportModal.modal("hide");
- });
-
- });
-//]]>
-</script>
-
</head>
<body id="patlist_lists" class="pat patlist">
[% INCLUDE 'tools-menu.inc' %]
</div>
</div>
+
+[% MACRO jsinclude BLOCK %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
+ [% INCLUDE 'datatables.inc' %]
+
+ <script type="text/javascript">
+ $(document).ready(function() {
+ var patronExportModal = $("#patronExportModal");
+ var patronExportModalBody = $("#patronExportModal .modal-body")
+
+ $('#patron-lists-table').dataTable($.extend(true, {}, dataTablesDefaults, {
+ "autoWidth": false,
+ "aoColumnDefs": [
+ { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }
+ ],
+ "sPaginationType": "four_button"
+ } ));
+ $(".delete_patron").on("click", function(){
+ $(".dropdown").removeClass("open");
+ var list = $(this).data("list-name");
+ return confirmDelete( _("Are you sure you want to delete the list %s?").format(list) );
+ });
+
+ $(".print_cards").on("click", function(e){
+ e.preventDefault();
+ var page = $(this).attr("href");
+ patronExportModalBody.load(page + " #exportingf");
+ patronExportModal.modal("show");
+ });
+
+ patronExportModal.on("hidden", function(){
+ patronExportModalBody.html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
+ });
+
+ patronExportModal.on("submit", "#exportingf", function(e){
+ e.preventDefault();
+ modal_body = patronExportModalBody;
+ modal_body.html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
+ target_url = $(this).attr("action");
+ params = $( this ).serialize();
+ modal_body.load( target_url + "?" + params + " #custom-doc");
+ });
+
+ patronExportModal.on("click",".closebtn,.gb-close",function(e){
+ e.preventDefault();
+ patronExportModal.modal("hide");
+ });
+
+ });
+ </script>
+[% END %]
+
[% INCLUDE 'intranet-bottom.inc' %]
--- /dev/null
+ $(document).ready(function() {
+ var path = location.pathname.substring(1);
+ if (path.indexOf("labels") >= 0 && path.indexOf("spine") < 0 ) {
+ $('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').css('font-weight','bold');
+ } else if (path.indexOf("patroncards") >= 0 ) {
+ $('#navmenulist a[href$="/cgi-bin/koha/patroncards/home.pl"]').css('font-weight','bold');
+ } else if (path.indexOf("patron_lists") >= 0 ) {
+ $('#navmenulist a[href$="/cgi-bin/koha/patron_lists/lists.pl"]').css('font-weight','bold');
+ } else if ((path+location.search).indexOf("batchMod.pl?del=1") >= 0 ) {
+ $('#navmenulist a[href$="/cgi-bin/koha/tools/batchMod.pl?del=1"]').css('font-weight','bold');
+ } else {
+ $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold');
+ }
+ });