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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt (-48 / +49 lines)
Lines 1-55 Link Here
1
    [% INCLUDE 'doc-head-open.inc' %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Barcodes and labels &rsaquo; Search results</title>
2
    <title>Koha &rsaquo; Barcodes and labels &rsaquo; Search results</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    <style type="text/css">#custom-doc { width:46.23em;*width:45.04em;min-width:700px; margin:auto;margin-top: .4em; text-align:left; }</style>
5
    <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat_[% KOHA_VERSION %].js"></script>
6
    <script type="text/javascript">
7
        //<![CDATA[
8
            $(document).ready(function(){
9
                $("#toolbar").fixFloat();
10
                $("#CheckAll").click(function(e){
11
                    e.preventDefault();
12
                    $("input[type='checkbox']").prop("checked",true);
13
                });
14
                $("#CheckNone").click(function(e){
15
                    e.preventDefault();
16
                    $("input[type='checkbox']").prop("checked",false);
17
                });
18
                $("#add_items").on("click",function(){
19
                    add_item('checked',[% batch_id %],'[% type %]');
20
                });
21
                $(".select_item").on("click",function(e){
22
                    e.preventDefault();
23
                    var batch_id = $(this).data("batch-id");
24
                    var itemnumber = $(this).data("item-number");
25
                    var type = $(this).data("field-type");
26
                    add_item(itemnumber, batch_id, type);
27
                });
28
            });
29
            function add_item(item_number,batch_id,type_id){
30
                var p = window.opener;
31
                if (item_number == 'checked') {
32
                    items= new Array;
33
                    if(document.resultform.action.length > 0) {
34
                        for (var i=0; i < document.resultform.action.length; i++) {
35
                            if (document.resultform.action[i].checked) {
36
                                p.add_item(document.resultform.action[i].value);
37
                            }
38
                        }
39
                    } else {
40
                        p.add_item(document.resultform.action.value);
41
                    }
42
                }
43
                else {
44
                    p.add_item(item_number);
45
                }
46
            }
47
            //]]>
48
    </script>
49
</head>
4
</head>
5
50
<body id="labels_result" class="tools labels">
6
<body id="labels_result" class="tools labels">
51
    <div id="custom-doc" class="yui-t7">
7
    <div class="container-fluid">
52
        <div id="bd">
53
            <h1>Search results</h1>
8
            <h1>Search results</h1>
54
        <div class="results">
9
        <div class="results">
55
                [% IF ( displayprev || displaynext ) %]
10
                [% IF ( displayprev || displaynext ) %]
Lines 150-153 z [% END -%] Link Here
150
        <div id="closewindow"><a href="#" class="btn btn-default btn-default close">Close</a></div>
105
        <div id="closewindow"><a href="#" class="btn btn-default btn-default close">Close</a></div>
151
            [% END %]
106
            [% END %]
152
    </div>
107
    </div>
153
    [% INCLUDE 'popup-bottom.inc' %]
108
109
[% MACRO jsinclude BLOCK %]
110
    <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat_[% KOHA_VERSION %].js"></script>
111
    <script type="text/javascript">
112
            $(document).ready(function(){
113
                $("#toolbar").fixFloat();
114
                $("#CheckAll").click(function(e){
115
                    e.preventDefault();
116
                    $("input[type='checkbox']").prop("checked",true);
117
                });
118
                $("#CheckNone").click(function(e){
119
                    e.preventDefault();
120
                    $("input[type='checkbox']").prop("checked",false);
121
                });
122
                $("#add_items").on("click",function(){
123
                    add_item('checked',[% batch_id %],'[% type %]');
124
                });
125
                $(".select_item").on("click",function(e){
126
                    e.preventDefault();
127
                    var batch_id = $(this).data("batch-id");
128
                    var itemnumber = $(this).data("item-number");
129
                    var type = $(this).data("field-type");
130
                    add_item(itemnumber, batch_id, type);
131
                });
132
            });
133
            function add_item(item_number,batch_id,type_id){
134
                var p = window.opener;
135
                if (item_number == 'checked') {
136
                    items= new Array;
137
                    if(document.resultform.action.length > 0) {
138
                        for (var i=0; i < document.resultform.action.length; i++) {
139
                            if (document.resultform.action[i].checked) {
140
                                p.add_item(document.resultform.action[i].value);
141
                            }
142
                        }
143
                    } else {
144
                        p.add_item(document.resultform.action.value);
145
                    }
146
                }
147
                else {
148
                    p.add_item(item_number);
149
                }
150
            }
151
    </script>
152
[% END %]
153
154
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt (-8 / +8 lines)
Lines 1-12 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo;  Labels</title>
1
[% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo;  Labels</title>
2
[% INCLUDE 'doc-head-close.inc' %]
2
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'calendar.inc' %]
4
<style type="text/css">#custom-doc { width:47.23em;*width:46.04em;min-width:610px; margin:auto;margin-top: .4em; text-align:left; }</style>
3
<style type="text/css">#custom-doc { width:47.23em;*width:46.04em;min-width:610px; margin:auto;margin-top: .4em; text-align:left; }</style>
5
</head>
4
</head>
6
<body id="labels_search" class="tools labels">
7
5
8
<div id="custom-doc" class="yui-t7">
6
<body id="labels_search" class="tools labels">
9
   <div id="bd">
7
    <div class="container-fluid">
10
8
11
<h1>Search for items
9
<h1>Search for items
12
[% IF ( batch_id ) %]
10
[% IF ( batch_id ) %]
Lines 103-108 to add to Batch [% batch_id %] Link Here
103
101
104
<fieldset class="action"><input type="submit" value="Search" class="submit" /> <a class="cancel close" href="#">Cancel</a></fieldset>
102
<fieldset class="action"><input type="submit" value="Search" class="submit" /> <a class="cancel close" href="#">Cancel</a></fieldset>
105
</form>
103
</form>
106
</div>
104
107
</div>
105
[% MACRO jsinclude BLOCK %]
108
[% INCLUDE 'popup-bottom.inc' %]
106
    [% INCLUDE 'calendar.inc' %]
107
[% END %]
108
109
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
109
- 

Return to bug 19959