2 [% ctx.page_title = "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");
13 openils.Util.addOnLoad(
15 module = openils.URLVerify.CreateSession;
16 module.setup("saved-searches", "org-selector", progress_dialog);
20 <style type="text/css">
21 #uv-search { width: 20em; }
22 .note { font-style: italic; background-color: #eee; }
23 #uv-tags-and-subfields { background-color: #ddd; }
24 table.create-session-form th { text-align: right; padding-right: 1em; }
25 table.create-session-form {
26 border-collapse: separate;
27 border-spacing: 0.5ex;
30 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
31 <div dojoType="dijit.layout.ContentPane"
32 layoutAlign="top" class="oils-header-panel">
33 <div> [% ctx.page_title %] </div>
34 <div> <!-- buttons could go here --></div>
37 <table class="create-session-form">
40 <label for="uv-session-name">[% l("Sesssion name:") %]</label>
43 <input dojoType="dijit.form.TextBox"
44 id="uv-session-name" jsId="uv_session_name" />
52 <label for="org-selector">[% l('Search scope:') %]</label>
55 <div id="org-selector"></div>
58 [% l("This will only be used if your search doesn't contain a hand-entered filter such as site(BR1)") %]
62 <!-- XXX TODO I bet we want a depth selector here too -->
66 <label for="uv-search">[% l('Search:') %]</label>
69 <input dojoType="dijit.form.TextBox" id="uv-search"
78 <label for="saved-searches">[% l("Saved searches:") %]</label>
80 <td><!-- XXX we're just assuming this list won't grow so
81 large as to be unrepresentable in a multiselect? We
82 could switch to a PCrudAutocompleteBox if needed for
83 constant load time regardless of dataset size. -->
84 <select id="saved-searches" multiple="true" size="6"></select>
86 <td class="note">[% l("Optionally select one or more to combine with 'Search' field above.") %]
92 <label for="no-url-selection">[% l('Process immediately?') %]</label>
95 <input dojoType="dijit.form.CheckBox" id="no-url-selection"
96 jsId="no_url_selection" />
104 [% l('Tags and subfields possibly containing URLs:') %]
107 <div id="uv-tags-and-subfields">
109 <div class="tag-and-subfield-add-another">
111 <input type="text" size="4" maxlength="3" />
112 [% l("Subfield(s)") %]
113 <input type="text" size="15" />
114 <a href="javascript:module.tag_and_subfields.add();">[% l('Add') %]</a>
123 <button dojoType="dijit.form.Button"
124 onClick="module.begin();">[% l("Begin") %]</button>
129 <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div>