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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt (-26 / +55 lines)
Lines 86-91 $(document).ready(function(){ Link Here
86
            $(".checkboxed").unCheckCheckboxes();
86
            $(".checkboxed").unCheckCheckboxes();
87
            return false;
87
            return false;
88
        });
88
        });
89
90
    // #uploadbarcodes and #compareinv2barcd determine the behavior of
91
    // the controls within the barcode fieldset and the optional filters
92
    $("#uploadbarcodes").change(function() {
93
        if( $("#uploadbarcodes").val() ) {
94
            $("#setdate").prop('disabled',false);
95
            $("#compareinv2barcd").prop('disabled',false);
96
            $("#dont_checkin").prop('disabled',false);
97
            if( $("#compareinv2barcd").attr('checked') ) {
98
                $("fieldset#optionalfilters").show();
99
            } else {
100
                $("fieldset#optionalfilters").hide();
101
            }
102
        } else {
103
            $("#setdate").prop('disabled',true);
104
            $("#compareinv2barcd").prop('disabled',true);
105
            $("#compareinv2barcd").attr('checked',false);
106
            $("#dont_checkin").prop('disabled',true);
107
            $("#dont_checkin").attr('checked',false);
108
            $("fieldset#optionalfilters").show();
109
        }
110
    });
111
    $("#compareinv2barcd").click(function() {
112
        if( $("#compareinv2barcd").attr('checked') ) {
113
            $("fieldset#optionalfilters").show();
114
        } else {
115
            $("fieldset#optionalfilters").hide();
116
        }
117
    });
89
});
118
});
90
//]]>
119
//]]>
91
</script>
120
</script>
Lines 122-137 $(document).ready(function(){ Link Here
122
    <div class="yui-g">
151
    <div class="yui-g">
123
    <form method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data" onsubmit="return checkForm()">
152
    <form method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data" onsubmit="return checkForm()">
124
        <fieldset class="rows">
153
        <fieldset class="rows">
125
            <legend>Use a barcode file</legend>
154
          <legend>Use a barcode file</legend>
126
     <ol>
155
          <ol>
127
            <li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li>
156
            <li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li>
128
            <li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="[% today | $KohaDates %]" class="datepicker" />
157
            <li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="[% today | $KohaDates %]" class="datepicker" disabled /></li>
129
            </li>
158
            <li><label for="compareinv2barcd">Compare barcodes list to results: </label><input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" disabled /></li>
159
            <li><label for="dont_checkin">Do not check in items scanned during inventory: </label><input type="checkbox" name="dont_checkin" id="dont_checkin" disabled /></li>
130
          </ol>
160
          </ol>
131
        </fieldset>
161
        </fieldset>
132
162
133
        <fieldset class="rows">
163
        <fieldset class="rows">
134
        <legend>Select items you want to check</legend>
164
        <legend>Item location filters</legend>
135
        <ol><li>
165
        <ol><li>
136
        <label for="branch">Library: </label>
166
        <label for="branch">Library: </label>
137
            <input type="radio" name="branch" value="homebranch"> Home library</input>
167
            <input type="radio" name="branch" value="homebranch"> Home library</input>
Lines 168-178 $(document).ready(function(){ Link Here
168
           <li><label for="maxlocation">...and: </label>
198
           <li><label for="maxlocation">...and: </label>
169
                <input type="text" name="maxlocation" id="maxlocation" value="[% maxlocation %]" />
199
                <input type="text" name="maxlocation" id="maxlocation" value="[% maxlocation %]" />
170
        </li>
200
        </li>
171
        [% IF (statuses) %]
172
    </ol>
201
    </ol>
173
    </fieldset>
202
    </fieldset>
174
            <fieldset class="rows">
203
175
            <legend>Item statuses</legend>
204
    <fieldset class="rows" id="optionalfilters">
205
            <legend>Optional filters for inventory list or comparing barcodes</legend>
206
            <br/>
176
            <div id="statuses" style="display: block;">
207
            <div id="statuses" style="display: block;">
177
                  [% FOREACH status IN statuses %]
208
                  [% FOREACH status IN statuses %]
178
                      [% IF (status.values) %]
209
                      [% IF (status.values) %]
Lines 198-230 $(document).ready(function(){ Link Here
198
                      [% END %]
229
                      [% END %]
199
                  [% END %]
230
                  [% END %]
200
                </div>
231
                </div>
201
            </fieldset>
232
        <ol>
202
        <fieldset class="rows">
233
        <li>
203
          <ol>
234
            <br/>
204
        [% END %]
235
            <label for="datelastseen">Last inventory date:</label>
205
206
        <li><label for="datelastseen">Last inventory date:</label>
207
            <input type="text" id="datelastseen" name="datelastseen" value="[% datelastseen | $KohaDates %]" class="datepicker" />
236
            <input type="text" id="datelastseen" name="datelastseen" value="[% datelastseen | $KohaDates %]" class="datepicker" />
208
            (Skip records marked as seen on or after this date.)
237
            (Skip records marked as seen on or after this date.)
209
        </li>
238
        </li>
210
        <li><label for="ignoreissued">Skip items on loan: </label>
239
        <li>
240
            <label for="ignoreissued">Skip items on loan: </label>
211
            [% IF (ignoreissued) %]
241
            [% IF (ignoreissued) %]
212
            <input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" /></li>
242
                <input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" />
213
            [% ELSE %]
243
            [% ELSE %]
214
            <input type="checkbox" id="ignoreissued" name="ignoreissued" /></li>
244
                <input type="checkbox" id="ignoreissued" name="ignoreissued" />
215
            [% END %]
245
            [% END %]
246
        </li>
247
        </ol>
248
    </fieldset>
249
250
        <fieldset class="rows">
251
          <legend>Additional options</legend>
252
          <ol>
253
216
        <li>
254
        <li>
217
           <label for="CSVexport">Export to CSV file: </label>
255
           <label for="CSVexport">Export to CSV file: </label>
218
           <input type="checkbox" name="CSVexport" id="CSVexport" />
256
           <input type="checkbox" name="CSVexport" id="CSVexport" />
219
        </li>
257
        </li>
220
        <li>
221
            <label for="compareinv2barcd">Compare barcodes list to results: </label>
222
            <input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" />
223
        </li>
224
        <li>
225
            <label for="dont_checkin">Do not check in items scanned during inventory: </label>
226
            <input type="checkbox" name="dont_checkin" id="dont_checkin" />
227
        </li>
228
        </ol>
258
        </ol>
229
  </fieldset>
259
  </fieldset>
230
            <input type="hidden" name="op" value="do_it" />
260
            <input type="hidden" name="op" value="do_it" />
231
- 

Return to bug 14399