Link checker: user interface and supporting fixes (part 2)
[working/Evergreen.git] / Open-ILS / src / templates / url_verify / select_urls.tt2
1 [% WRAPPER base.tt2 no_content_pane=1 %]
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     #session-name-here { font-weight: normal; font-size: 90%; }
23 </style>
24 <div class="oils-header-panel" dojoType="dijit.layout.ContentPane" layoutAlign="top">
25     <div>[% ctx.page_title %] - <span id="session-name-here"></span></div>
26     <div class="url-verify-button">
27         <button dojoType="dijit.form.Button"
28             onClick="grid.print();">[%
29             l("Print URLs")
30         %]</button>
31         <button dojoType="dijit.form.Button"
32             onClick="module.verify_selected();">[%
33             l("Verify Selected URLs")
34         %]</button>
35     </div>
36 </div>
37 <div dojoType="dijit.layout.ContentPane" layoutAlign="bottom" style="height: 85%;">
38     <table jsid="grid"
39         dojoType="openils.widget.FlattenerGrid"
40         columnPersistKey="'url_verify.select_urls'"
41         editOnEnter="false"
42         autoCoreFields="true"
43         autoCoreFieldsFilter="true"
44         autoCoreFieldsUnsorted="true"
45         savedFiltersInterface="'url_verify'"
46         fetchLock="true"
47         mapExtras="{session_id: {path: 'session.id', filter: true}}"
48         showLoadFilter="true"
49         fmClass="'uvu'">
50         <thead>
51             <tr>
52                 <th field="title" fpath="item.target_biblio_record_entry.simple_record.title"></th>
53                 <th field="author" fpath="item.target_biblio_record_entry.simple_record.author"></th>
54                 <th field="isbn" fpath="item.target_biblio_record_entry.simple_record.isbn" _visible="false"></th>
55                 <th field="issn" fpath="item.target_biblio_record_entry.simple_record.issn" _visible="false"></th>
56                 <th field="bib_id" fpath="item.target_biblio_record_entry.id" _visible="false"></th>
57                 <!-- You do NOT want to add the "verifications" column to this
58                 table with ffilter="true".  That introduces a left join to a
59                 table linked to the core table in has-many relationship.  When
60                 PCRUD tries a query like that, it can return fewer objects than
61                 its LIMIT clause called for, even when there are more objects
62                 left.  This may need to be a bug report against flattener or
63                 cstore/pcrud(?) but I'm not sure I understand the expectations. -->
64             </tr>
65         </thead>
66     </table>
67 </div>
68 <div class="hidden">
69     <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div>
70 </div>
71 [% END %]