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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (-4 / +17 lines)
Lines 81-88 Link Here
81
        </optgroup>
81
        </optgroup>
82
      [% END %]
82
      [% END %]
83
    </select>
83
    </select>
84
    [% IF params.exists('op') %]
85
        <select name="op" class="form-field-not">
86
           <option value="like">is</option>
87
            [% IF params.op == '!=' %]
88
               <option value="!=" selected="selected">is not</option>
89
            [% ELSE %]
90
               <option value="!=">is not</option>
91
            [% END %]
92
        </select>
93
    [% ELSE %]
94
        <select name="op" class="form-field-not">
95
           <option value="like">is</option>
96
           <option value="!=">is not</option>
97
        </select>
98
    [% END %]
84
    <input type="text" name="q" class="form-field-value" value="" />
99
    <input type="text" name="q" class="form-field-value" value="" />
85
    <input type="hidden" name="op" value="like" />
86
  </div>
100
  </div>
87
[% END %]
101
[% END %]
88
102
Lines 220-226 Link Here
220
    [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
234
    [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
221
    [% Asset.js("lib/hc-sticky.js") | $raw %]
235
    [% Asset.js("lib/hc-sticky.js") | $raw %]
222
    <script type="text/javascript">
236
    <script type="text/javascript">
223
        var authorised_values = [% authorised_values_json | html %];
237
        var authorised_values = [% authorised_values_json | $raw %];
224
238
225
        function loadAuthorisedValuesSelect(select) {
239
        function loadAuthorisedValuesSelect(select) {
226
            var selected = select.find('option:selected');
240
            var selected = select.find('option:selected');
Lines 428-434 Link Here
428
      form_field.append(button_field_new);
442
      form_field.append(button_field_new);
429
443
430
            // If a field is linked to an authorised values list, display the list.
444
            // If a field is linked to an authorised values list, display the list.
431
            $('div.form-field-select-text select').change(function() {
445
            $('div.form-field-select-text select.form-field-column').change(function() {
432
                loadAuthorisedValuesSelect($(this));
446
                loadAuthorisedValuesSelect($(this));
433
            }).change();
447
            }).change();
434
448
435
- 

Return to bug 20888