lp1487527 Search Results checkbox for "Set Depth to Zero"
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 27 Oct 2015 17:13:27 +0000 (13:13 -0400)
committerKathy Lussier <klussier@masslnc.org>
Thu, 5 Nov 2015 17:52:35 +0000 (12:52 -0500)
Intended for "expand my search" while remaining as focused on the original
search location as possible.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/opac/results.tt2

index f1bb957..d49c525 100644 (file)
                             [% l('Group Formats and Editions') %]
                         </label>
                     [% END %]
+                    [% IF loc_value != 1 %]
+                    <label class="results_header_lbl" for="depth_zero" title="[% l('Select this option to expand your results to all Org Units while retaining the priority of your selected library\'s holdings.') %]">
+                        <input type="checkbox" id="depth_zero" name="depth" value="0"
+                            onchange="this.form.submit()"
+                            [% CGI.param('depth') == '0' ? ' checked="checked"' : '' %] />
+                        [% l('Show results from all Org Units') %]
+                    </label>
+                    [% END %]
                     [%- IF CGI.param('detail_record_view')
                         OR (show_more_details.default == 'true'
                         OR show_more_details.default == 'hide');