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