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");
11 /* Minimize namespace pollution, but save us some typing later. */
12 var module = openils.URLVerify.SelectURLs;
14 openils.Util.addOnLoad(
16 module.setup(grid, progress_dialog);
20 <style type="text/css">
21 .url-verify-attempt-info { font-style: italic; }
22 #session-name-here { font-weight: normal; font-size: 90%; }
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();">[%
31 <button dojoType="dijit.form.Button"
32 onClick="module.verify_selected();">[%
33 l("Verify Selected URLs")
37 <div dojoType="dijit.layout.ContentPane" layoutAlign="bottom" style="height: 85%;">
39 dojoType="openils.widget.FlattenerGrid"
40 columnPersistKey="'url_verify.select_urls'"
43 autoCoreFieldsFilter="true"
44 autoCoreFieldsUnsorted="true"
45 savedFiltersInterface="'url_verify'"
47 mapExtras="{session_id: {path: 'session.id', filter: true}}"
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. -->
69 <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div>