]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/url_verify/create_session.tt2
Maintenance message: avoid Unicode corruption, support KPAC
[working/Evergreen.git] / Open-ILS / src / templates / url_verify / create_session.tt2
1 [% WRAPPER base.tt2 %]
2 [% ctx.page_title = l("Link Checker - Create Session") %]
3 <script type="text/javascript">
4     dojo.require("dijit.form.Button");
5     dojo.require("dijit.form.CheckBox");
6     dojo.require("dijit.form.TextBox");
7     dojo.require("openils.Util");
8     dojo.require("openils.widget.ProgressDialog");
9     dojo.require("openils.URLVerify.CreateSession");
10
11     var module;
12
13     openils.Util.addOnLoad(
14         function() {
15             module = openils.URLVerify.CreateSession;
16             module.setup("saved-searches", "org-selector", progress_dialog);
17         }
18     );
19 </script>
20 <style type="text/css">
21     #uv-search { width: 20em; }
22     .note { font-style: italic; background-color: #eee; }
23     #saved-searches { width: 15em; }
24     #uv-tags-and-subfields { background-color: #ddd; }
25     table.create-session-form th { text-align: right; padding-right: 1em; }
26     table.create-session-form {
27         border-collapse: separate;
28         border-spacing: 0.5ex;
29     }
30 </style>
31 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
32     <div dojoType="dijit.layout.ContentPane"
33          layoutAlign="top" class="oils-header-panel">
34         <div> [% ctx.page_title %] </div>
35         <div> <!-- buttons could go here --></div>
36     </div>
37     <div>
38         <table class="create-session-form">
39             <tr>
40                 <th>
41                     <label for="uv-session-name">[% l("Session name:") %]</label>
42                 </th>
43                 <td>
44                     <input dojoType="dijit.form.TextBox"
45                         id="uv-session-name" jsId="uv_session_name" />
46                 </td>
47                 <td class="note">
48                 </td>
49             </tr>
50
51             <tr>
52                 <th>
53                     <label for="org-selector">[% l('Search scope:') %]</label>
54                 </th>
55                 <td>
56                     <div id="org-selector"></div>
57                 </td>
58                 <td class="note">
59                     [% l("This will only be used if your search doesn't contain an explicit filter such as site(BR1)") %]
60                 </td>
61             </tr>
62
63             <!-- XXX TODO I bet we want a depth selector here too -->
64
65             <tr>
66                 <th>
67                     <label for="uv-search">[% l('Search:') %]</label>
68                 </th>
69                 <td>
70                     <input dojoType="dijit.form.TextBox" id="uv-search"
71                         jsId="uv_search" />
72                 </td>
73                 <td class="note">
74                 </td>
75             </tr>
76
77             <tr>
78                 <th>
79                     <label for="saved-searches">[% l("Saved searches:") %]</label>
80                 </th>
81                 <td><!-- XXX we're just assuming this list won't grow so
82                     large as to be unrepresentable in a multiselect?  We
83                     could switch to a PCrudAutocompleteBox if needed for
84                     constant load time regardless of dataset size. -->
85                     <select id="saved-searches" multiple="true" size="6"></select>
86                 </td>
87                 <td class="note">
88                     <p>[% l("Optionally select one or more to combine with 'Search' field above.") %]</p>
89                     <p class="hidden" id="clone-saved-search-warning">
90                         [% l("NOTE: When cloning sessions, any saved searches used in the original session will already be mentioned in the 'Search' field above. You should not need to select them again here.") %]
91                     </p>
92                 </td>
93             </tr>
94
95             <tr>
96                 <th>
97                     [% l('Tags and subfields to search for URLs:') %]
98                 </th>
99                 <td>
100                     <div id="uv-tags-and-subfields">
101                     </div>
102                     <div class="tag-and-subfield-add-another">
103                         [% l("Tag") %]
104                         <input type="text" size="3" maxlength="3" />
105                         [% l("Subfield(s)") %]
106                         <input type="text" size="8" />
107                         <a href="javascript:module.tag_and_subfields.add();">[% l('Add') %]</a>
108                     </div>
109                 </td>
110                 <td class="note">
111                 </td>
112             </tr>
113
114             <tr>
115                 <th>
116                     <label for="no-url-selection">[% l('Process immediately?') %]</label>
117                 </th>
118                 <td>
119                     <input dojoType="dijit.form.CheckBox" id="no-url-selection"
120                         jsId="no_url_selection" />
121                 </td>
122                 <td class="note">
123                 </td>
124             </tr>
125
126         </table>
127
128         <div>
129             <button dojoType="dijit.form.Button"
130                 onClick="module.begin();">[% l("Begin") %]</button>
131
132         </div>
133     </div>
134 </div>
135 <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div>
136 [% END %]