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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (-1 / +7 lines)
Lines 236-241 Link Here
236
                    <a href="/cgi-bin/koha/catalogue/search.pl" class="btn btn-default"><i class="fa fa-search"></i> Go to advanced search</a>
236
                    <a href="/cgi-bin/koha/catalogue/search.pl" class="btn btn-default"><i class="fa fa-search"></i> Go to advanced search</a>
237
                </div>
237
                </div>
238
            </div>
238
            </div>
239
            <fieldset id="itemselection">
240
                <label class="form-field-label">Forget item selections from previous search</label>
241
                <input type="checkbox" name="forget_item_selections" id="forget_item_selections" value="forget_item_selections" checked="checked" />
242
            </fieldset>
239
            <fieldset id="librarylocation">
243
            <fieldset id="librarylocation">
240
                [% INCLUDE form_field_select name="homebranch" options = branches %]
244
                [% INCLUDE form_field_select name="homebranch" options = branches %]
241
                [% INCLUDE form_field_select name="holdingbranch" options = branches %]
245
                [% INCLUDE form_field_select name="holdingbranch" options = branches %]
Lines 757-762 Link Here
757
761
758
            $('#itemsearchform').submit(function() {
762
            $('#itemsearchform').submit(function() {
759
                var searchform = $(this);
763
                var searchform = $(this);
764
                if( $("#forget_item_selections").is(':checked') ){
765
                  localStorage.removeItem("item_search_selections");
766
                }
760
                var format = searchform.find('input[name="format"]:checked').val();
767
                var format = searchform.find('input[name="format"]:checked').val();
761
                if (format == 'html') {
768
                if (format == 'html') {
762
                    submitForm(searchform);
769
                    submitForm(searchform);
763
- 

Return to bug 38438