Link checker: user interface and supporting fixes (part 1)
[working/Evergreen.git] / Open-ILS / src / templates / url_verify / select_urls.tt2
1 [% WRAPPER base.tt2 %]
2 [% ctx.page_title = "Link Checker - Select URLs" %]
3 <script type="text/javascript">
4     dojo.require("dijit.form.Button");
5     dojo.require("openils.widget.FlattenerGrid");
6     dojo.require("openils.widget.ProgressDialog");
7     dojo.require("openils.Util");
8     dojo.require("openils.CGI");
9     dojo.require("openils.URLVerify.SelectURLs");
10
11     /* Minimize namespace pollution, but save us some typing later. */
12     var module = openils.URLVerify.SelectURLs;
13
14     openils.Util.addOnLoad(
15         function() {
16             module.setup(grid, progress_dialog);
17         }
18     );
19 </script>
20 <style type="text/css">
21     .url-verify-attempt-info { font-style: italic; }
22 </style>
23 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
24     <div dojoType="dijit.layout.ContentPane"
25          layoutAlign="top" class="oils-header-panel">
26         <div>[% ctx.page_title %]</div>
27         <div>
28             <button dojoType="dijit.form.Button"
29                 onClick="module.verify_selected();">[%
30                 l("Verify Selected URLs")
31             %]</button>
32         </div>
33     </div>
34     <div class="oils-acq-basic-roomy url-verify-attempt-info">
35         <div id="url-verify-attempt-id"></div>
36         <div id="url-verify-attempt-start"></div>
37         <div id="url-verify-attempt-finish"></div>
38     </div>
39     <table
40         jsid="grid"
41         dojoType="openils.widget.FlattenerGrid"
42         columnPersistKey='"url_verify.select_url"'
43         autoHeight="10"
44         editOnEnter="false"
45         autoFieldFields="null"
46         autoCoreFields="true"
47         autoCoreFieldsUnsorted="true"
48         fetchLock="true"
49         mapExtras="{session_id: {path: 'item.session.id', filter: true}}"
50         showLoadFilter="true"
51         fmClass="'uvu'">
52         <thead>
53             <tr>
54                 <th field="title" fpath="item.target_biblio_record_entry.simple_record.title"></th>
55                 <th field="author" fpath="item.target_biblio_record_entry.simple_record.author"></th>
56                 <th field="isbn" fpath="item.target_biblio_record_entry.simple_record.isbn" _visible="false"></th>
57                 <th field="issn" fpath="item.target_biblio_record_entry.simple_record.issn" _visible="false"></th>
58                 <th field="bib_id" fpath="item.target_biblio_record_entry.id" _visible="false"></th>
59             </tr>
60         </thead>
61     </table>
62 </div>
63 <div class="hidden">
64     <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div>
65 </div>
66 [% END %]