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 #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;
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>
38 <table class="create-session-form">
41 <label for="uv-session-name">[% l("Sesssion name:") %]</label>
44 <input dojoType="dijit.form.TextBox"
45 id="uv-session-name" jsId="uv_session_name" />
53 <label for="org-selector">[% l('Search scope:') %]</label>
56 <div id="org-selector"></div>
59 [% l("This will only be used if your search doesn't contain an explicit filter such as site(BR1)") %]
63 <!-- XXX TODO I bet we want a depth selector here too -->
67 <label for="uv-search">[% l('Search:') %]</label>
70 <input dojoType="dijit.form.TextBox" id="uv-search"
79 <label for="saved-searches">[% l("Saved searches:") %]</label>
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>
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.") %]
97 <label for="no-url-selection">[% l('Process immediately?') %]</label>
100 <input dojoType="dijit.form.CheckBox" id="no-url-selection"
101 jsId="no_url_selection" />
109 [% l('Tags and subfields to search for URLs:') %]
112 <div id="uv-tags-and-subfields">
114 <div class="tag-and-subfield-add-another">
116 <input type="text" size="3" maxlength="3" />
117 [% l("Subfield(s)") %]
118 <input type="text" size="8" />
119 <a href="javascript:module.tag_and_subfields.add();">[% l('Add') %]</a>
128 <button dojoType="dijit.form.Button"
129 onClick="module.begin();">[% l("Begin") %]</button>
134 <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div>