LP#1757526: escape more catalog data (MFHD edition)
[working/Evergreen.git] / Open-ILS / src / templates / url_verify / review_attempt.tt2
1 [% WRAPPER base.tt2 %]
2 [% ctx.page_title = l("Link Checker - Review Verification Attempt") %]
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.ReviewAttempt");
10
11     /* Minimize namespace pollution, but save us some typing later. */
12     var module = openils.URLVerify.ReviewAttempt;
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-link-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-link-here"></span></div>
28         <div>
29             <button dojoType="dijit.form.Button" onClick="grid.print();">
30                 [% l("Print verification results") %]
31             </button>
32             <button dojoType="dijit.form.Button"
33                 onClick="grid.downloadCSV('[% l("link-checker-results") %]',
34                     progress_dialog);">[% l("Download CSV") %]</button>
35         </div>
36     </div>
37     <div class="oils-acq-basic-roomy">
38         <!-- any blurb to precede grid can go here -->
39     </div>
40     <table
41         jsid="grid"
42         dojoType="openils.widget.FlattenerGrid"
43         columnPersistKey='"url_verify.review_attempt"'
44         autoHeight="10"
45         editOnEnter="false"
46         autoCoreFields="true"
47         autoCoreFieldsFilter="true"
48         autoCoreFieldsUnsorted="true"
49         savedFiltersInterface="'url_verify'"
50         fetchLock="true"
51         mapExtras="{attempt_id:{path:'attempt.id',filter:true,_label:'[% l("Attempt ID") %]'}}"
52         showLoadFilter="true"
53         fmClass="'uvuv'">
54         <thead>
55             <tr>
56                 <th field="redirect_from" fpath="url.redirect_from"></th>
57                 <th field="redirect_to" fpath="redirect_to"></th><!-- From here through fragment, these are fields from uvu.  We could have just used autoFieldFields on the FlattenerGrid, but by naming them explicitly we use the same field names that we use in the URL selection interface, allowing the two interfaces to use common saved filter sets. XXX Not very important, but is this comment even true anymore? -->
58                 <th field="url_id" fpath="url.id" ffilter="true"></th>
59                 <th field="full_url" fpath="url.full_url" ffilter="true"></th>
60                 <th field="tag" fpath="url.tag" ffilter="true"></th>
61                 <th field="subfield" fpath="url.subfield" ffilter="true"></th>
62                 <th field="ord" fpath="url.ord" ffilter="true"></th>
63                 <th field="scheme" fpath="url.scheme" _visible="false" ffilter="true"></th>
64                 <th field="host" fpath="url.host" _visible="false" ffilter="true"></th>
65                 <th field="domain" fpath="url.domain" _visible="false" ffilter="true"></th>
66                 <th field="tld" fpath="url.tld" _visible="false" ffilter="true"></th>
67                 <th field="path" fpath="url.path" _visible="false" ffilter="true"></th>
68                 <th field="page" fpath="url.page" _visible="false" ffilter="true"></th>
69                 <th field="query" fpath="url.query" _visible="false" ffilter="true"></th>
70                 <th field="fragment" fpath="url.fragment" _visible="false" ffilter="true"></th>
71                 <th field="title" fpath="url.item.target_biblio_record_entry.simple_record.title"></th>
72                 <th field="author" fpath="url.item.target_biblio_record_entry.simple_record.author"></th>
73                 <th field="isbn" fpath="url.item.target_biblio_record_entry.simple_record.isbn" _visible="false"></th>
74                 <th field="issn" fpath="url.item.target_biblio_record_entry.simple_record.issn" _visible="false"></th>
75                 <th field="bib_id" fpath="url.item.target_biblio_record_entry.id" formatter="module.format_bib_id"></th>
76             </tr>
77         </thead>
78     </table>
79 </div>
80 <div class="hidden">
81     <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div>
82 </div>
83 [% END %]