LP1895678: Bring course materials into the bootstrap OPAC
[Evergreen.git] / Open-ILS / src / templates-bootstrap / opac / course_search.tt2
1 [%- PROCESS "opac/parts/header.tt2";
2     WRAPPER "opac/parts/base.tt2";
3     INCLUDE "opac/parts/topnav.tt2";
4     ctx.page_title = l("Course Search");
5
6     PROCESS "opac/parts/misc_util.tt2";
7     PROCESS get_library;
8     ctx.metalinks.push('<meta name="robots" content="noindex,follow">');
9 -%]
10
11 <h2 class="sr-only">[% l('Course Search') %]</h2>
12
13 <div id="content-wrapper">
14   <div id="main-content">
15   <form action="[% ctx.opac_root %]/course/results" method="get">
16     <!-- TODO: Refactor simple.js addSearchRow to better handle
17       tables with IDs that aren't adv_... -->
18     <div class="header_middle" id="adv_search_input">
19       [% l("Course Search Input") %]
20     </div>
21
22     <div id="adv_search_filters" class="adv_filter_block">
23       <div class="adv_filter_block_item">
24         <div>
25           <strong><label for="ord.id">[% l('Search Library') %]</label></strong>
26         </div>
27         <div>
28           [% PROCESS "opac/parts/org_selector.tt2" %]
29           [% INCLUDE build_org_selector show_loc_groups=1 id=org.id %]
30           <span class="course_search_archived">
31             <input type="checkbox" name="modifier" value="include_archived"
32               [% CGI.param('modifier').grep('include_archived').size ? ' checked="checked"' : '' %]
33               id="opac.course_result.include_archived" />
34             <label for="opac.course_result.include_archived">
35               [% l('Include Archived Courses?') %]
36             </label>
37           </span>
38         </div>
39       </div>
40     </div>
41     
42     <div class="advanced_div">
43       <div id='adv_global_search' class='data_grid data_grid_center'>
44         <div id='adv_search_rows'>
45           <div class='adv_global_input_container'>
46             <table id="adv_global_input_table" role="presentation">
47               <tbody id='adv_global_tbody'>
48                 [% INCLUDE "opac/parts/course_search/global_row.tt2" %]
49                 <!-- add a new row -->
50                 <tr id="adv_global_addrow">
51                   <td class="td-search-left">
52                     <a href="javascript:;" id="myopac_new_global_row" 
53                       onclick='addSearchRow();'>
54                       [% l('Add Search Row') %]
55                     </a>
56                   </td>
57                 </tr>
58                 <tr>
59               </tbody>
60             </table>
61           </div>
62         </div>
63
64         <div id='course_search_submit'>
65           <input type="hidden" name="_course" value="1" />
66           <span>
67             <input id='search-submit-go' type="submit" value="[% l('Search') %]" title="[% l('Search') %]" class="opac-button"
68               onclick='setTimeout(function(){$("search-submit-spinner").className=""; $("search-submit-go").className="hidden"}, 2000)'/>
69             <img id='search-submit-spinner' src='/opac/images/progressbar_green.gif[% ctx.cache_key %]'
70               class='hidden' alt="[% l('Search in progress icon') %]"/>
71           </span>
72           <a href="[% mkurl(ctx.opac_root _ '/course_search', {$loc_name => loc_value}, 1) %]"
73             class="opac-button">[% l('Clear Form') %]</a>
74         </div>
75       </div>
76     </div>
77     <div class="common-full-pad"></div>
78   </form>
79   </div>
80 </div>
81
82 [% END %]