CAT-205 Add results view option to catalog search template
authorKatlyn Beck <kbeck@catalyte.io>
Wed, 30 Jan 2019 18:35:39 +0000 (18:35 +0000)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
- Added "Results View" dropdown to Search Templates section with
options for "Simple View" and "Detailed View".
- Selection from dropdown saves to a template.

Signed-off-by: Katlyn Beck <kbeck@catalyte.io>
 Changes to be committed:
modified:   KCLS/openils/var/templates_kcls/opac/parts/advanced/search.tt2

KCLS/openils/var/templates_kcls/opac/parts/advanced/search.tt2

index 4d01c1c..356e5ec 100644 (file)
                     <select id="templateList" onClick="" onChange="selectSearchTemplateOrClearAll(this.value);">
                     </select>
                     <br><br><br>
+                    <strong>[% l('Results View') %]</strong>
+                    <br>
+                    <select id="resultViewSel" name="detail_record_view" >
+                        <option value="0" selected="selected">Simple View</option>
+                        <option value="1">Detail View</option>
+                    </select>
+                    <br><br>
                     <strong>[% l('Template Name') %]</strong>
                     <br>
                     <input id="nameInput" type="text">
                     <br><br>
                     <button type="button" onClick="templateActionDelete();">[% l('Delete Template') %]</button>
                 </td>
-                <td valign="top" class="hide_me">
-                    <select id="resultViewSel" name="detail_record_view" >
-                        <option value="0" selected="selected">Simple View</option>
-                        <option value="1">Detail View</option>
-                    </select>
-                </td>
             [% END %]
         </tr>