View | Details | Raw Unified | Return to bug 19961
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt (-156 / +151 lines)
Lines 1-162 Link Here
1
[% SET footerjs = 1 %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Batches &rsaquo; [% IF batch_id %]Edit ([% batch_id %])[% ELSE %]New[% END %]</title>
3
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Batches &rsaquo; [% IF batch_id %]Edit ([% batch_id %])[% ELSE %]New[% END %]</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'greybox.inc' %]
5
    <link rel="stylesheet" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
5
    <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
6
    [% INCLUDE 'datatables.inc' %]
7
    <script type="text/javascript">
8
        //<![CDATA[
9
           function DeleteConfirm() {
10
                var msg = _("Are you sure you want to delete batch %s?").format("[% batch_id %]");
11
                var answer = confirm(msg);
12
                if (answer) {
13
                    window.location = "/cgi-bin/koha/patroncards/manage.pl?op=delete&amp;card_element=batch&amp;element_id=[% batch_id %]";
14
                }
15
                else {
16
                    return; // abort delete
17
                }
18
            };
19
            function Remove() {
20
                items = new Array;
21
22
                if(document.items.action.length > 0) {
23
                    for (var i=0; i < document.items.action.length; i++) {
24
                        if (document.items.action[i].checked) {
25
                            items.push("label_id=" +  document.items.action[i].value);
26
                        }
27
                    }
28
                    getstr = items.join("&");
29
                    var msg = _("Are you sure you want to remove the selected patron(s) from this batch?");
30
                } else if (document.items.action.checked) {
31
                    alert(_("Deletion of patron from a batch with only one patron will delete the batch.") + "\n\n" + _("If this is what you want, select the 'Delete batch' option from the toolbar"));
32
                    return; // no deletion for single item batch
33
                }
34
                else {
35
                    alert(_("Please select at least one patron to delete."));
36
                    return;     // no item selected
37
                }
38
                var answer = confirm(msg);
39
                if (answer) {
40
                    window.location = "/cgi-bin/koha/patroncards/edit-batch.pl?op=remove&amp;batch_id=[% batch_id %]&amp;" + getstr;
41
                }
42
                else {
43
                    return; // abort delete
44
                }
45
            };
46
            function Add() {
47
                var bor_nums = document.getElementById("bor_num_list");
48
                if (bor_nums.value == '') {
49
                    window.open("/cgi-bin/koha/patroncards/add_user_search.pl",
50
                   'PatronPopup',
51
                   'width=840,height=500,location=yes,toolbar=no,'
52
                   + 'scrollbars=yes,resize=yes');
53
                }
54
                else {
55
                    document.forms["add_by_bor_num"].submit();
56
                }
57
            };
58
59
            function add_user(borrowernumber) {
60
                $("#bor_num_list").val($("#bor_num_list").val()+borrowernumber+"\r\n");
61
            }
62
63
            function DeDuplicate() {
64
                window.location = "/cgi-bin/koha/patroncards/edit-batch.pl?op=de_duplicate&amp;batch_id=[% batch_id %]";
65
            };
66
            function Xport(mode) {
67
                if (mode == 'label') {
68
                    patroncards= new Array;
69
                    if(document.items.action.length > 0) {
70
                        for (var i=0; i < document.items.action.length; i++) {
71
                            if (document.items.action[i].checked) {
72
                                patroncards.push("label_id=" +  document.items.action[i].value);
73
                            }
74
                        }
75
                        if (patroncards.length < 1) {
76
                            alert(_("Please select at least one card to export."));
77
                            return;     // no batch selected
78
                        }
79
                        getstr = patroncards.join("&");
80
                    }
81
                    else if (document.items.action.checked) {
82
                        getstr = document.items.action.value;
83
                    }
84
                    else {
85
                        alert(_("Please select at least one card to export."));
86
                        return;     // no batch selected
87
                    }
88
                    return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]&" + getstr, 400, 800);
89
                }
90
                else if (mode == 'batch') {
91
                    return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]", 400, 800);
92
                }
93
                else {
94
                    // some pass-thru error trapping just in case...
95
                }
96
            };
97
           function selected_layout() {
98
                if (document.items.action.length) {
99
                for (i=0;i<document.items.action.length;i++){
100
                    if (document.items.action[i].checked==true){
101
                        return(document.items.action[i].value);
102
                    }
103
                };
104
                }
105
                else {
106
                    if (document.items.action.checked){
107
                        return(document.items.action.value);
108
                    }
109
                };
110
                alert(_("Please select at least one item."));
111
                return (-1);
112
            };
113
114
         $(document).ready(function() {
115
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
116
                "aoColumnDefs": [
117
                    { "aTargets": [ -2, -1 ], "bSortable": false, "bSearchable": false }
118
                ],
119
                "aaSorting": [[ 0, "asc" ]],
120
                "sPaginationType": "four_button",
121
                "autoWidth": false
122
            }));
123
            $("#additems").click(function(){
124
                Add();
125
                return false;
126
            });
127
            $("#removeitems").click(function(){
128
                Remove();
129
                return false;
130
            });
131
            $("#deletebatch").click(function(){
132
                DeleteConfirm();
133
                return false;
134
            });
135
            $("#deduplicate").click(function(){
136
                DeDuplicate();
137
                return false;
138
            });
139
            $("#exportitems").click(function(){
140
                Xport('label');
141
                return false;
142
            });
143
            $("#exportbatch").click(function(){
144
                Xport('batch');
145
                return false;
146
            });
147
            $(".delete").on("click", function(){
148
                return confirmDelete( _("Are you sure you want to delete this patron from the card batch?") );
149
            });
150
            $(".export").on("click", function(e){
151
                e.preventDefault();
152
                var label_id = $(this).data("label-id");
153
                var batch_id = $(this).data("batch-id");
154
                GB_showCenter( _("Export single card"),'/cgi-bin/koha/patroncards/print.pl?batch_id='+batch_id+'&label_id='+label_id, 400, 800);
155
            });
156
         });
157
        //]]>
158
    </script>
159
</head>
6
</head>
7
160
<body id="pcard_edit-batch" class="tools pcard">
8
<body id="pcard_edit-batch" class="tools pcard">
161
    [% INCLUDE 'header.inc' %]
9
    [% INCLUDE 'header.inc' %]
162
    [% INCLUDE 'cat-search.inc' %]
10
    [% INCLUDE 'cat-search.inc' %]
Lines 274-277 Link Here
274
                  [% INCLUDE 'tools-menu.inc' %]
122
                  [% INCLUDE 'tools-menu.inc' %]
275
                </div>
123
                </div>
276
            </div>
124
            </div>
277
    [% INCLUDE 'intranet-bottom.inc' %]
125
126
[% MACRO jsinclude BLOCK %]
127
    [% INCLUDE 'greybox.inc' %]
128
    [% INCLUDE 'datatables.inc' %]
129
    <script>
130
        function DeleteConfirm() {
131
            var msg = _("Are you sure you want to delete batch %s?").format("[% batch_id %]");
132
            var answer = confirm(msg);
133
            if (answer) {
134
                window.location = "/cgi-bin/koha/patroncards/manage.pl?op=delete&amp;card_element=batch&amp;element_id=[% batch_id %]";
135
            } else {
136
                return; // abort delete
137
            }
138
        };
139
        function Remove() {
140
            items = new Array;
141
142
            if(document.items.action.length > 0) {
143
                for (var i=0; i < document.items.action.length; i++) {
144
                    if (document.items.action[i].checked) {
145
                        items.push("label_id=" +  document.items.action[i].value);
146
                    }
147
                }
148
                getstr = items.join("&");
149
                var msg = _("Are you sure you want to remove the selected patron(s) from this batch?");
150
            } else if (document.items.action.checked) {
151
                alert(_("Deletion of patron from a batch with only one patron will delete the batch.") + "\n\n" + _("If this is what you want, select the 'Delete batch' option from the toolbar"));
152
                return; // no deletion for single item batch
153
            } else {
154
                alert(_("Please select at least one patron to delete."));
155
                return;     // no item selected
156
            }
157
            var answer = confirm(msg);
158
            if (answer) {
159
                window.location = "/cgi-bin/koha/patroncards/edit-batch.pl?op=remove&amp;batch_id=[% batch_id %]&amp;" + getstr;
160
            } else {
161
                return; // abort delete
162
            }
163
        };
164
        function Add() {
165
            var bor_nums = document.getElementById("bor_num_list");
166
            if (bor_nums.value == '') {
167
                window.open("/cgi-bin/koha/patroncards/add_user_search.pl",
168
               'PatronPopup',
169
               'width=840,height=500,location=yes,toolbar=no,'
170
               + 'scrollbars=yes,resize=yes');
171
            } else {
172
                document.forms["add_by_bor_num"].submit();
173
            }
174
        };
175
176
        function add_user(borrowernumber) {
177
            $("#bor_num_list").val($("#bor_num_list").val()+borrowernumber+"\r\n");
178
        }
179
180
        function DeDuplicate() {
181
            window.location = "/cgi-bin/koha/patroncards/edit-batch.pl?op=de_duplicate&amp;batch_id=[% batch_id %]";
182
        };
183
        function Xport(mode) {
184
            if (mode == 'label') {
185
                patroncards= new Array;
186
                if(document.items.action.length > 0) {
187
                    for (var i=0; i < document.items.action.length; i++) {
188
                        if (document.items.action[i].checked) {
189
                            patroncards.push("label_id=" +  document.items.action[i].value);
190
                        }
191
                    }
192
                    if (patroncards.length < 1) {
193
                        alert(_("Please select at least one card to export."));
194
                        return;     // no batch selected
195
                    }
196
                    getstr = patroncards.join("&");
197
                } else if (document.items.action.checked) {
198
                    getstr = document.items.action.value;
199
                } else {
200
                    alert(_("Please select at least one card to export."));
201
                    return;     // no batch selected
202
                }
203
                return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]&" + getstr, 400, 800);
204
            } else if (mode == 'batch') {
205
                return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]", 400, 800);
206
            } else {
207
                // some pass-thru error trapping just in case...
208
            }
209
        };
210
        function selected_layout() {
211
            if (document.items.action.length) {
212
            for (i=0;i<document.items.action.length;i++){
213
                if (document.items.action[i].checked==true){
214
                    return(document.items.action[i].value);
215
                }
216
            };
217
            } else {
218
                if (document.items.action.checked){
219
                    return(document.items.action.value);
220
                }
221
            };
222
            alert(_("Please select at least one item."));
223
            return (-1);
224
        };
225
226
        $(document).ready(function() {
227
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
228
                "aoColumnDefs": [
229
                    { "aTargets": [ -2, -1 ], "bSortable": false, "bSearchable": false }
230
                ],
231
                "aaSorting": [[ 0, "asc" ]],
232
                "sPaginationType": "four_button",
233
                "autoWidth": false
234
            }));
235
            $("#additems").click(function(){
236
                Add();
237
                return false;
238
            });
239
            $("#removeitems").click(function(){
240
                Remove();
241
                return false;
242
            });
243
            $("#deletebatch").click(function(){
244
                DeleteConfirm();
245
                return false;
246
            });
247
            $("#deduplicate").click(function(){
248
                DeDuplicate();
249
                return false;
250
            });
251
            $("#exportitems").click(function(){
252
                Xport('label');
253
                return false;
254
            });
255
            $("#exportbatch").click(function(){
256
                Xport('batch');
257
                return false;
258
            });
259
            $(".delete").on("click", function(){
260
                return confirmDelete( _("Are you sure you want to delete this patron from the card batch?") );
261
            });
262
            $(".export").on("click", function(e){
263
                e.preventDefault();
264
                var label_id = $(this).data("label-id");
265
                var batch_id = $(this).data("batch-id");
266
                GB_showCenter( _("Export single card"),'/cgi-bin/koha/patroncards/print.pl?batch_id='+batch_id+'&label_id='+label_id, 400, 800);
267
            });
268
        });
269
    </script>
270
[% END %]
271
272
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt (-105 / +106 lines)
Lines 1-111 Link Here
1
[% SET footerjs = 1 %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Layout &rsaquo; [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]</title>
3
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Layout &rsaquo; [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'doc-head-close.inc' %]
4
    <script type="text/JavaScript" language="JavaScript">
5
        //<![CDATA[
6
            $(document).ready(function() {
7
                var selectedUnit = $("#units option:selected").attr("value");
8
                var unitfields = $("#font_size,#field_1_llx,#field_1_lly,#field_2_llx,#field_2_lly,#field_3_llx,#field_3_lly,#barcode_Tx,#barcode_Ty,#image_1_Dx,#image_1_Tx,#image_1_Ty,#image_2_Dx,#image_2_Tx,#image_2_Ty");
9
                $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
10
                $("#units").change(function(){
11
                    $(".unit").html(getUnit($(this).val()));
12
                });
13
                Go($("#image_1_image_source").val(), 'image_1_image_name');
14
                Go($("#image_1_image_source").val(), 'image_1_image_metrics');
15
                $("#image_1_image_source").change(function(){
16
                    $(".image_1_image_source").html(Go($(this).val(), 'image_1_image_name'));
17
                    $(".image_1_image_source").html(Go($(this).val(), 'image_1_image_metrics'));
18
                });
19
                Go($("#image_2_image_source").val(), 'image_2_image_name');
20
                Go($("#image_2_image_source").val(), 'image_2_image_metrics');
21
                $("#image_2_image_source").change(function(){
22
                    $(".image_2_image_source").html(Go($(this).val(), 'image_2_image_name'));
23
                    $(".image_2_image_source").html(Go($(this).val(), 'image_2_image_metrics'));
24
                });
25
                var selectFieldNames = ["field_1","field_2","field_3"];
26
                for (var i=0; i < selectFieldNames.length; i++) {
27
                    Go($("#"+selectFieldNames[i]+"_enable").prop("checked"), selectFieldNames[i]+"_select");
28
                }
29
                $("#field_1_enable").change(function(){
30
                    $(".field_1_enable").html(Go($(this).prop("checked"), 'field_1_select'));
31
                });
32
                $("#field_2_enable").change(function(){
33
                    $(".field_2_enable").html(Go($(this).prop("checked"), 'field_2_select'));
34
                });
35
                $("#field_3_enable").change(function(){
36
                    $(".field_3_enable").html(Go($(this).prop("checked"), 'field_3_select'));
37
                });
38
                $("#barcode_print").load(barcode_text('barcode_param'));
39
                $("#barcode_print").change(function(){
40
                    barcode_text('barcode_param');
41
                });
42
            function barcode_text(division) {
43
                var eBarcode = document.getElementById(division);
44
                if( $("input[name=barcode_print]:checked").prop("checked") ) {
45
                    eBarcode.style.display = 'block';
46
                } else {
47
                    eBarcode.style.display = 'none';
48
                    $('input[name=barcode_text_print]').prop('checked', false);
49
                }
50
            }
51
            function getUnit(unit){
52
                switch(unit){
53
                    case "POINT":
54
                        var unit = " pt";
55
                    break;
56
                    case "AGATE":
57
                        var unit = " ag";
58
                    break;
59
                    case "INCH":
60
                        var unit = " in";
61
                    break;
62
                    case "MM":
63
                        var unit = " mm";
64
                    break;
65
                    case "CM":
66
                        var unit = " cm";
67
                    break;
68
                    default:
69
                        var unit = " pt";
70
                    }
71
                return unit;
72
            }
73
            function Go(oSelect, oElement){
74
                var element = document.getElementById(oElement);
75
                switch(true) {
76
                    case /^.*_name/.test(oElement):
77
                        if ((oSelect == 'patronimages') || (oSelect == 'none')) {
78
                            element.style.display = 'none';
79
                        }
80
                        else {
81
                            element.style.display = 'block';
82
                        }
83
                        break;
84
                    case /^.*_metrics/.test(oElement):
85
                        if ((oSelect == 'none') || (oSelect == '')) {
86
                            element.style.display = 'none';
87
                        }
88
                        else {
89
                            element.style.display = 'block';
90
                        }
91
                        break;
92
                    case /^.*_select/.test(oElement):
93
                        if (!oSelect) {
94
                            element.style.display = 'none';
95
                        }
96
                        else {
97
                            element.style.display = 'block';
98
                        }
99
                        break;
100
                    default:
101
                        return;
102
                }
103
                return;
104
            }
105
        });
106
        //]]>
107
    </script>
108
</head>
5
</head>
6
109
<body id="pcard_edit-layout" class="tools pcard">
7
<body id="pcard_edit-layout" class="tools pcard">
110
    [% INCLUDE 'header.inc' %]
8
    [% INCLUDE 'header.inc' %]
111
    [% INCLUDE 'cat-search.inc' %]
9
    [% INCLUDE 'cat-search.inc' %]
Lines 568-571 Link Here
568
              [% INCLUDE 'tools-menu.inc' %]
466
              [% INCLUDE 'tools-menu.inc' %]
569
            </div>
467
            </div>
570
        </div>
468
        </div>
571
        [% INCLUDE 'intranet-bottom.inc' %]
469
470
[% MACRO jsinclude BLOCK %]
471
    <script>
472
        $(document).ready(function() {
473
            var selectedUnit = $("#units option:selected").attr("value");
474
            var unitfields = $("#font_size,#field_1_llx,#field_1_lly,#field_2_llx,#field_2_lly,#field_3_llx,#field_3_lly,#barcode_Tx,#barcode_Ty,#image_1_Dx,#image_1_Tx,#image_1_Ty,#image_2_Dx,#image_2_Tx,#image_2_Ty");
475
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
476
            $("#units").change(function(){
477
                $(".unit").html(getUnit($(this).val()));
478
            });
479
            Go($("#image_1_image_source").val(), 'image_1_image_name');
480
            Go($("#image_1_image_source").val(), 'image_1_image_metrics');
481
            $("#image_1_image_source").change(function(){
482
                $(".image_1_image_source").html(Go($(this).val(), 'image_1_image_name'));
483
                $(".image_1_image_source").html(Go($(this).val(), 'image_1_image_metrics'));
484
            });
485
            Go($("#image_2_image_source").val(), 'image_2_image_name');
486
            Go($("#image_2_image_source").val(), 'image_2_image_metrics');
487
            $("#image_2_image_source").change(function(){
488
                $(".image_2_image_source").html(Go($(this).val(), 'image_2_image_name'));
489
                $(".image_2_image_source").html(Go($(this).val(), 'image_2_image_metrics'));
490
            });
491
            var selectFieldNames = ["field_1","field_2","field_3"];
492
            for (var i=0; i < selectFieldNames.length; i++) {
493
                Go($("#"+selectFieldNames[i]+"_enable").prop("checked"), selectFieldNames[i]+"_select");
494
            }
495
            $("#field_1_enable").change(function(){
496
                $(".field_1_enable").html(Go($(this).prop("checked"), 'field_1_select'));
497
            });
498
            $("#field_2_enable").change(function(){
499
                $(".field_2_enable").html(Go($(this).prop("checked"), 'field_2_select'));
500
            });
501
            $("#field_3_enable").change(function(){
502
                $(".field_3_enable").html(Go($(this).prop("checked"), 'field_3_select'));
503
            });
504
            $("#barcode_print").load(barcode_text('barcode_param'));
505
            $("#barcode_print").change(function(){
506
                barcode_text('barcode_param');
507
            });
508
            function barcode_text(division) {
509
                var eBarcode = document.getElementById(division);
510
                if( $("input[name=barcode_print]:checked").prop("checked") ) {
511
                    eBarcode.style.display = 'block';
512
                } else {
513
                    eBarcode.style.display = 'none';
514
                    $('input[name=barcode_text_print]').prop('checked', false);
515
                }
516
            }
517
            function getUnit(unit){
518
                switch(unit){
519
                    case "POINT":
520
                        var unit = " pt";
521
                    break;
522
                    case "AGATE":
523
                        var unit = " ag";
524
                    break;
525
                    case "INCH":
526
                        var unit = " in";
527
                    break;
528
                    case "MM":
529
                        var unit = " mm";
530
                    break;
531
                    case "CM":
532
                        var unit = " cm";
533
                    break;
534
                    default:
535
                        var unit = " pt";
536
                    }
537
                return unit;
538
            }
539
            function Go(oSelect, oElement){
540
                var element = document.getElementById(oElement);
541
                switch(true) {
542
                    case /^.*_name/.test(oElement):
543
                        if ((oSelect == 'patronimages') || (oSelect == 'none')) {
544
                            element.style.display = 'none';
545
                        } else {
546
                            element.style.display = 'block';
547
                        }
548
                        break;
549
                    case /^.*_metrics/.test(oElement):
550
                        if ((oSelect == 'none') || (oSelect == '')) {
551
                            element.style.display = 'none';
552
                        } else {
553
                            element.style.display = 'block';
554
                        }
555
                        break;
556
                    case /^.*_select/.test(oElement):
557
                        if (!oSelect) {
558
                            element.style.display = 'none';
559
                        } else {
560
                            element.style.display = 'block';
561
                        }
562
                        break;
563
                    default:
564
                        return;
565
                }
566
                return;
567
            }
568
        });
569
    </script>
570
[% END %]
571
572
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-profile.tt (-35 / +39 lines)
Lines 1-41 Link Here
1
[% SET footerjs = 1 %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Profiles &rsaquo; [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]New[% END%]</title>
3
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Profiles &rsaquo; [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]New[% END%]</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'doc-head-close.inc' %]
4
    <script type="text/javascript">
5
        //<![CDATA[
6
        $(document).ready(function(){
7
        var selectedUnit = $("#units option:selected").attr("value");
8
        var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
9
        $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
10
        $("#units").change(function(){
11
            $(".unit").html(getUnit($(this).val()));
12
        });
13
        function getUnit(unit){
14
            switch(unit){
15
                case "POINT":
16
                    var unit = " pt";
17
                    break;
18
                case "AGATE":
19
                    var unit = " ag";
20
                    break;
21
                case "INCH":
22
                    var unit = " in";
23
                    break;
24
                case "MM":
25
                    var unit = " mm";
26
                    break;
27
                case "CM":
28
                    var unit = " cm";
29
                    break;
30
                default:
31
                    var unit = "";
32
            }
33
            return unit;
34
        }
35
        });
36
        //]]>
37
    </script>
38
</head>
5
</head>
6
39
<body id="pcard_edit-profile" class="tools pcard">
7
<body id="pcard_edit-profile" class="tools pcard">
40
    [% INCLUDE 'header.inc' %]
8
    [% INCLUDE 'header.inc' %]
41
    [% INCLUDE 'cat-search.inc' %]
9
    [% INCLUDE 'cat-search.inc' %]
Lines 138-141 Link Here
138
                  [% INCLUDE 'tools-menu.inc' %]
106
                  [% INCLUDE 'tools-menu.inc' %]
139
                </div>
107
                </div>
140
            </div>
108
            </div>
141
            [% INCLUDE 'intranet-bottom.inc' %]
109
110
[% MACRO jsinclude BLOCK %]
111
    <script>
112
        $(document).ready(function(){
113
            var selectedUnit = $("#units option:selected").attr("value");
114
            var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
115
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
116
            $("#units").change(function(){
117
                $(".unit").html(getUnit($(this).val()));
118
            });
119
            function getUnit(unit){
120
                switch(unit){
121
                    case "POINT":
122
                        var unit = " pt";
123
                        break;
124
                    case "AGATE":
125
                        var unit = " ag";
126
                        break;
127
                    case "INCH":
128
                        var unit = " in";
129
                        break;
130
                    case "MM":
131
                        var unit = " mm";
132
                        break;
133
                    case "CM":
134
                        var unit = " cm";
135
                        break;
136
                    default:
137
                        var unit = "";
138
                }
139
                return unit;
140
            }
141
        });
142
    </script>
143
[% END %]
144
145
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt (-35 / +40 lines)
Lines 1-41 Link Here
1
[% SET footerjs = 1 %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Templates &rsaquo; [% IF (template_id) %]Edit ([% template_id %])[% ELSE %]New[% END %]</title>
3
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Templates &rsaquo; [% IF (template_id) %]Edit ([% template_id %])[% ELSE %]New[% END %]</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'doc-head-close.inc' %]
4
    <script type="text/javascript">
5
        //<![CDATA[
6
        $(document).ready(function(){
7
        var selectedUnit = $("#units option:selected").attr("value");
8
        var unitfields = $("#page_height,#page_width,#card_width,#card_height,#top_margin,#left_margin,#col_gap,#row_gap");
9
        $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
10
        $("#units").change(function(){
11
            $(".unit").html(getUnit($(this).val()));
12
        });
13
        function getUnit(unit){
14
            switch(unit){
15
                case "POINT":
16
                    var unit = " pt";
17
                    break;
18
                case "AGATE":
19
                    var unit = " ag";
20
                    break;
21
                case "INCH":
22
                    var unit = " in";
23
                    break;
24
                case "MM":
25
                    var unit = " mm";
26
                    break;
27
                case "CM":
28
                    var unit = " cm";
29
                    break;
30
                default:
31
                    var unit = "";
32
            }
33
            return unit;
34
        }
35
        });
36
        //]]>
37
    </script>
38
</head>
5
</head>
6
39
<body id="pcard_edit-template" class="tools pcard">
7
<body id="pcard_edit-template" class="tools pcard">
40
    [% INCLUDE 'header.inc' %]
8
    [% INCLUDE 'header.inc' %]
41
    [% INCLUDE 'cat-search.inc' %]
9
    [% INCLUDE 'cat-search.inc' %]
Lines 176-179 Link Here
176
          [% INCLUDE 'tools-menu.inc' %]
144
          [% INCLUDE 'tools-menu.inc' %]
177
        </div>
145
        </div>
178
    </div>
146
    </div>
179
    [% INCLUDE 'intranet-bottom.inc' %]
147
148
[% MACRO jsinclude BLOCK %]
149
    <script src="[% interface %]/[% theme %]/js/tools-menu_[% KOHA_VERSION %].js"></script>
150
    <script>
151
        $(document).ready(function(){
152
            var selectedUnit = $("#units option:selected").attr("value");
153
            var unitfields = $("#page_height,#page_width,#card_width,#card_height,#top_margin,#left_margin,#col_gap,#row_gap");
154
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
155
            $("#units").change(function(){
156
                $(".unit").html(getUnit($(this).val()));
157
            });
158
        function getUnit(unit){
159
            switch(unit){
160
                case "POINT":
161
                    var unit = " pt";
162
                    break;
163
                case "AGATE":
164
                    var unit = " ag";
165
                    break;
166
                case "INCH":
167
                    var unit = " in";
168
                    break;
169
                case "MM":
170
                    var unit = " mm";
171
                    break;
172
                case "CM":
173
                    var unit = " cm";
174
                    break;
175
                default:
176
                    var unit = "";
177
            }
178
            return unit;
179
        }
180
        });
181
    </script>
182
[% END %]
183
184
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt (-46 / +50 lines)
Lines 1-52 Link Here
1
[% SET footerjs = 1 %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Images</title>
3
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Images</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'doc-head-close.inc' %]
4
    <script type="text/javascript">
5
        //<![CDATA[
6
            function DeleteConfirm() {
7
                var results = selected_images("delete");
8
                if (results.images) {
9
                    var msg = _("Are you sure you want to delete image(s): %s?").format(results.image_ids);
10
                    var answer = confirm(msg);
11
                    if (answer) {
12
                        window.location = "/cgi-bin/koha/patroncards/image-manage.pl?op=delete&" + results.images;
13
                    } else {
14
                        return; // abort delete
15
                    }
16
                } else {
17
                    alert(_("Please select image(s) to delete."));
18
                }
19
            }
20
21
            function selected_images(op) {
22
                var selected = new Array;
23
                var image_ids = new Array;
24
                if (document.delete_images.action.length) {
25
                    for (i=0;i<document.delete_images.action.length;i++){
26
                        if (document.delete_images.action[i].checked){
27
                            selected.push("image_id=" + document.delete_images.action[i].value);
28
                            image_ids.push(document.delete_images.action[i].value);
29
                        }
30
                    }
31
                    images = selected.join("&");
32
                    return {images:images, image_ids:image_ids};
33
                }
34
                else if (document.delete_images.action.checked){
35
                        return {images:"image_id="+document.delete_images.action.value, image_ids:document.delete_images.action.value};
36
                }
37
                return (-1);
38
            }
39
        $(document).ready(function() {
40
            $("#delete").click(function(){
41
                return DeleteConfirm();
42
            });
43
            $(".delete_image").on("click", function(){
44
                return confirmDelete( _("Are you sure you want to delete this image?") );
45
            });
46
         });
47
        //]]>
48
    </script>
49
</head>
5
</head>
6
50
<body id="pcard_image-manage" class="tools pcard">
7
<body id="pcard_image-manage" class="tools pcard">
51
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'header.inc' %]
52
[% INCLUDE 'cat-search.inc' %]
9
[% INCLUDE 'cat-search.inc' %]
Lines 183-186 Link Here
183
          [% INCLUDE 'tools-menu.inc' %]
140
          [% INCLUDE 'tools-menu.inc' %]
184
        </div>
141
        </div>
185
    </div>
142
    </div>
186
    [% INCLUDE 'intranet-bottom.inc' %]
143
144
[% MACRO jsinclude BLOCK %]
145
    <script>
146
        function DeleteConfirm() {
147
            var results = selected_images("delete");
148
            if (results.images) {
149
                var msg = _("Are you sure you want to delete image(s): %s?").format(results.image_ids);
150
                var answer = confirm(msg);
151
                if (answer) {
152
                    window.location = "/cgi-bin/koha/patroncards/image-manage.pl?op=delete&" + results.images;
153
                } else {
154
                    return; // abort delete
155
                }
156
            } else {
157
                alert(_("Please select image(s) to delete."));
158
            }
159
        }
160
161
        function selected_images(op) {
162
            var selected = new Array;
163
            var image_ids = new Array;
164
            if (document.delete_images.action.length) {
165
                for (i=0;i<document.delete_images.action.length;i++){
166
                    if (document.delete_images.action[i].checked){
167
                        selected.push("image_id=" + document.delete_images.action[i].value);
168
                        image_ids.push(document.delete_images.action[i].value);
169
                    }
170
                }
171
                images = selected.join("&");
172
                return {images:images, image_ids:image_ids};
173
            }
174
            else if (document.delete_images.action.checked){
175
                    return {images:"image_id="+document.delete_images.action.value, image_ids:document.delete_images.action.value};
176
            }
177
            return (-1);
178
        }
179
        $(document).ready(function() {
180
            $("#delete").click(function(){
181
                return DeleteConfirm();
182
            });
183
            $(".delete_image").on("click", function(){
184
                return confirmDelete( _("Are you sure you want to delete this image?") );
185
            });
186
        });
187
    </script>
188
[% END %]
189
190
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt (-145 / +149 lines)
Lines 1-4 Link Here
1
[% USE CGI %]
1
[% USE CGI %]
2
[% SET footerjs = 1 %]
2
[% BLOCK translate_card_element %]
3
[% BLOCK translate_card_element %]
3
[%-  SWITCH element -%]
4
[%-  SWITCH element -%]
4
[%-  CASE 'layout'    -%]layout
5
[%-  CASE 'layout'    -%]layout
Lines 24-174 Link Here
24
    [% INCLUDE 'doc-head-open.inc' %]
25
    [% INCLUDE 'doc-head-open.inc' %]
25
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; [% PROCESS translate_card_element element=card_element_title %]</title>
26
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; [% PROCESS translate_card_element element=card_element_title %]</title>
26
    [% INCLUDE 'doc-head-close.inc' %]
27
    [% INCLUDE 'doc-head-close.inc' %]
27
    [% INCLUDE 'greybox.inc' %]
28
    <script type="text/javascript">
29
        //<![CDATA[
30
            function DeleteConfirm() {
31
                var element_ids = selected_layouts("delete");
32
33
                var msg;
34
                if (element_ids.length > 1) {
35
                    msg = _("Are you sure you want to delete %s %s?").format(element_ids.length, "[% PROCESS translate_card_elements element=card_element %]");
36
                } else if (element_ids.length == 1) {
37
                    msg = _("Are you sure you want to delete %s %s?").format("[% PROCESS translate_card_element element=card_element %]", element_ids[0]);
38
                }
39
40
                if (msg && confirm(msg)) {
41
                    var elements = "";
42
                    for (var i = 0; i < element_ids.length; i++) {
43
                        if (element_ids[i] > -1) {
44
                            elements += element_ids[i] + ","
45
                        }
46
                        else {
47
                            return;     // no layout selected
48
                        }
49
                    }
50
51
                    window.location = "/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element %]&element_id=" + elements;
52
                }
53
                else {
54
                    return; // abort delete
55
                }
56
57
            };
58
59
            function Edit() {
60
                var element_id = selected_layouts("edit");
61
                if (element_id>-1) {
62
                    window.location = "/cgi-bin/koha/patroncards/edit-[% card_element %].pl?op=edit&element_id=" + element_id;
63
                }
64
                else {
65
                    return;     // no layout selected
66
                };
67
            };
68
            function Xport() {
69
                batches= new Array;
70
                if(document.layouts.action.length > 0) {
71
                    for (var i=0; i < document.layouts.action.length; i++) {
72
                        if (document.layouts.action[i].checked) {
73
                            batches.push("batch_id=" +  document.layouts.action[i].value);
74
                        }
75
                    }
76
                    if (batches.length < 1) {
77
                        alert(_("Please select at least one batch to export."));
78
                        return;     // no batch selected
79
                    }
80
                    getstr = batches.join("&");
81
                }
82
                else if (document.layouts.action.checked) {
83
                    getstr = "batch_id="+document.layouts.action.value;
84
                }
85
                else {
86
                    alert(_("Please select at least one batch to export."));
87
                    return;     // no batch selected
88
                }
89
                return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 400, 800);
90
            };
91
92
            function XportPatronlist() {
93
                if ( patron_list_id.value.length < 1 ) {
94
                    alert(_("Please select a patron list."));
95
                    return;     // no patron list selected
96
                }
97
                getstr = 'patronlist_id='+patron_list_id.value;
98
                return GB_showCenter(_("Export patron cards from list"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800);
99
            };
100
101
            function selected_layout(op) {
102
                if (document.layouts.action.length) {
103
                    var selected = new Array();
104
                    for (i=0;i<document.layouts.action.length;i++){
105
                        if (document.layouts.action[i].checked){
106
                            selected.push(i);
107
                        }
108
                    };
109
                    if (selected.length == 1 || (op == "delete" && selected.length >= 1)) {
110
                        if (op == "delete") {
111
                            var selectedDelete = new Array;
112
                            for (i = 0; i < selected.length; i++) {
113
                                selectedDelete.push(document.layouts.action[selected[i]].value);
114
                            }
115
                            return(selectedDelete);
116
                        } else {
117
                            // op == 'edit' returns only the object and not list
118
                            return(document.layouts.action[selected[0]].value);
119
                        }
120
                    }
121
                    else if (selected.length < 1) {
122
                        if (op == "edit") {
123
                            alert(_("Please select one %s to %s.").format("[% PROCESS translate_card_element element=card_element %]", op));
124
                        } else {
125
                            alert(_("Please select at least one %s to %s.").format("[% PROCESS translate_card_element element=card_element %]", op));
126
                        }
127
                        return (-1);
128
                    }
129
                    else {
130
                        alert(_("Please select only one %s to %s.").format("[% PROCESS translate_card_element element=card_element %]", op));
131
                        return (-1);
132
                    }
133
                }
134
                else {
135
                    if (document.layouts.action.checked){
136
                        return([document.layouts.action.value]);
137
                    }
138
                };
139
                alert(_("Please select a %s.").format("[% PROCESS translate_card_element element=card_element %]"));
140
                return (-1);
141
            };
142
143
        $(document).ready(function() {
144
            $("#edit").click(function(){
145
                Edit();
146
                return false;
147
            });
148
            $("#delete").click(function(){
149
                DeleteConfirm();
150
                return false;
151
            });
152
            $("#print").click(function(){
153
                Xport();
154
                return false;
155
            });
156
            $("#printlist").click(function(){
157
                XportPatronlist();
158
                return false;
159
            });
160
            $(".delete").on("click", function(){
161
                return confirmDelete( _("Are you sure you want to delete this?") );
162
            });
163
            $(".export").on("click", function(e){
164
                e.preventDefault();
165
                var batch_id = $(this).data("batch-id");
166
                GB_showCenter( _("Export single batch"),'/cgi-bin/koha/patroncards/print.pl?batch_id='+batch_id, 400, 800);
167
            });
168
         });
169
//]]>
170
</script>
171
</head>
28
</head>
29
172
<body id="pcard_manage" class="tools pcard">
30
<body id="pcard_manage" class="tools pcard">
173
    [% INCLUDE 'header.inc' %]
31
    [% INCLUDE 'header.inc' %]
174
    [% INCLUDE 'cat-search.inc' %]
32
    [% INCLUDE 'cat-search.inc' %]
Lines 270-273 Link Here
270
              [% INCLUDE 'tools-menu.inc' %]
128
              [% INCLUDE 'tools-menu.inc' %]
271
            </div>
129
            </div>
272
        </div>
130
        </div>
273
    [% INCLUDE 'intranet-bottom.inc' %]
131
132
[% MACRO jsinclude BLOCK %]
133
    [% INCLUDE 'greybox.inc' %]
134
    <script>
135
        function DeleteConfirm() {
136
            var element_ids = selected_layouts("delete");
137
138
            var msg;
139
            if (element_ids.length > 1) {
140
                msg = _("Are you sure you want to delete %s %s?").format(element_ids.length, "[% PROCESS translate_card_elements element=card_element %]");
141
            } else if (element_ids.length == 1) {
142
                msg = _("Are you sure you want to delete %s %s?").format("[% PROCESS translate_card_element element=card_element %]", element_ids[0]);
143
            }
144
145
            if (msg && confirm(msg)) {
146
                var elements = "";
147
                for (var i = 0; i < element_ids.length; i++) {
148
                    if (element_ids[i] > -1) {
149
                        elements += element_ids[i] + ","
150
                    }
151
                    else {
152
                        return;     // no layout selected
153
                    }
154
                }
155
156
                window.location = "/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element %]&element_id=" + elements;
157
            }
158
            else {
159
                return; // abort delete
160
            }
161
162
        };
163
164
        function Edit() {
165
            var element_id = selected_layouts("edit");
166
            if (element_id>-1) {
167
                window.location = "/cgi-bin/koha/patroncards/edit-[% card_element %].pl?op=edit&element_id=" + element_id;
168
            }
169
            else {
170
                return;     // no layout selected
171
            };
172
        };
173
        function Xport() {
174
            batches= new Array;
175
            if(document.layouts.action.length > 0) {
176
                for (var i=0; i < document.layouts.action.length; i++) {
177
                    if (document.layouts.action[i].checked) {
178
                        batches.push("batch_id=" +  document.layouts.action[i].value);
179
                    }
180
                }
181
                if (batches.length < 1) {
182
                    alert(_("Please select at least one batch to export."));
183
                    return;     // no batch selected
184
                }
185
                getstr = batches.join("&");
186
            }
187
            else if (document.layouts.action.checked) {
188
                getstr = "batch_id="+document.layouts.action.value;
189
            }
190
            else {
191
                alert(_("Please select at least one batch to export."));
192
                return;     // no batch selected
193
            }
194
            return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 400, 800);
195
        };
196
197
        function XportPatronlist() {
198
            if ( patron_list_id.value.length < 1 ) {
199
                alert(_("Please select a patron list."));
200
                return;     // no patron list selected
201
            }
202
            getstr = 'patronlist_id='+patron_list_id.value;
203
            return GB_showCenter(_("Export patron cards from list"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800);
204
        };
205
206
        function selected_layout(op) {
207
            if (document.layouts.action.length) {
208
                var selected = new Array();
209
                for (i=0;i<document.layouts.action.length;i++){
210
                    if (document.layouts.action[i].checked){
211
                        selected.push(i);
212
                    }
213
                };
214
                if (selected.length == 1 || (op == "delete" && selected.length >= 1)) {
215
                    if (op == "delete") {
216
                        var selectedDelete = new Array;
217
                        for (i = 0; i < selected.length; i++) {
218
                            selectedDelete.push(document.layouts.action[selected[i]].value);
219
                        }
220
                        return(selectedDelete);
221
                    } else {
222
                        // op == 'edit' returns only the object and not list
223
                        return(document.layouts.action[selected[0]].value);
224
                    }
225
                }
226
                else if (selected.length < 1) {
227
                    if (op == "edit") {
228
                        alert(_("Please select one %s to %s.").format("[% PROCESS translate_card_element element=card_element %]", op));
229
                    } else {
230
                        alert(_("Please select at least one %s to %s.").format("[% PROCESS translate_card_element element=card_element %]", op));
231
                    }
232
                    return (-1);
233
                }
234
                else {
235
                    alert(_("Please select only one %s to %s.").format("[% PROCESS translate_card_element element=card_element %]", op));
236
                    return (-1);
237
                }
238
            }
239
            else {
240
                if (document.layouts.action.checked){
241
                    return([document.layouts.action.value]);
242
                }
243
            };
244
            alert(_("Please select a %s.").format("[% PROCESS translate_card_element element=card_element %]"));
245
            return (-1);
246
        };
247
248
        $(document).ready(function() {
249
            $("#edit").click(function(){
250
                Edit();
251
                return false;
252
            });
253
            $("#delete").click(function(){
254
                DeleteConfirm();
255
                return false;
256
            });
257
            $("#print").click(function(){
258
                Xport();
259
                return false;
260
            });
261
            $("#printlist").click(function(){
262
                XportPatronlist();
263
                return false;
264
            });
265
            $(".delete").on("click", function(){
266
                return confirmDelete( _("Are you sure you want to delete this?") );
267
            });
268
            $(".export").on("click", function(e){
269
                e.preventDefault();
270
                var batch_id = $(this).data("batch-id");
271
                GB_showCenter( _("Export single batch"),'/cgi-bin/koha/patroncards/print.pl?batch_id='+batch_id, 400, 800);
272
            });
273
        });
274
    </script>
275
[% END %]
276
277
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt (-15 / +26 lines)
Lines 1-20 Link Here
1
    [% INCLUDE 'doc-head-open.inc' %]
1
[% SET footerjs = 1 %]
2
<!DOCTYPE html>
3
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
4
<head>
2
    <title>Koha &rsaquo; Tools &rsaquo; Patron cards &rsaquo; Patron card printing/exporting</title>
5
    <title>Koha &rsaquo; Tools &rsaquo; Patron cards &rsaquo; Patron card printing/exporting</title>
6
    <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
7
    [% INCLUDE intranetstylesheet.inc %]
8
    [% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
3
    [% INCLUDE 'doc-head-close.inc' popup => 1%]
9
    [% INCLUDE 'doc-head-close.inc' popup => 1%]
4
    <script type="text/javascript">
5
        //<![CDATA[
6
            function Done() {
7
                window.location = "[% referer %]";
8
            };
9
            $(document).ready(function(){
10
                $(".gb-close").on("click",function(){
11
                    parent.parent.GB_hide();
12
                });
13
            })
14
        //]]>
15
    </script>
16
    <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
10
    <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
17
</head>
11
</head>
12
18
<body id="pcard_print" class="tools pcard">
13
<body id="pcard_print" class="tools pcard">
19
    <div id="custom-doc">
14
    <div id="custom-doc">
20
        <div id="bd">
15
        <div id="bd">
Lines 118-121 Link Here
118
            [% END %]
113
            [% END %]
119
        </div>
114
        </div>
120
    </div>
115
    </div>
121
    [% INCLUDE 'popup-bottom.inc' %]
116
117
[% IF ( IntranetUserJS ) %]
118
    <script src="[% interface %]/lib/jquery/jquery-2.2.3.min_[% KOHA_VERSION %].js"></script>
119
    <script src="[% interface %]/lib/jquery/jquery-migrate-1.3.0.min_[% KOHA_VERSION %].js"></script>
120
    <script>
121
        [% IntranetUserJS %]
122
        function Done() {
123
            window.location = "[% referer %]";
124
        };
125
        $(document).ready(function(){
126
            $(".gb-close").on("click",function(){
127
                parent.parent.GB_hide();
128
            });
129
        });
130
    </script>
131
[% END %]
132
133
[% INCLUDE 'popup-bottom.inc' %]
122
- 

Return to bug 19961