|
Lines 17-283
Link Here
|
| 17 |
[% t("Koha") | html %] |
17 |
[% t("Koha") | html %] |
| 18 |
[% END %]</title> |
18 |
[% END %]</title> |
| 19 |
[% INCLUDE 'doc-head-close.inc' %] |
19 |
[% INCLUDE 'doc-head-close.inc' %] |
| 20 |
<style> |
20 |
[% FILTER collapse %]<style> |
| 21 |
.setlabel {width: 6em; font-family: courier; background-color:#E8E8E8;} |
21 |
.setlabel {width: 6em; font-family: courier; background-color:#E8E8E8;} |
| 22 |
.rejected { color: #CC0033; } |
22 |
.rejected { color: #CC0033; } |
| 23 |
.approved { color: #339900; } |
23 |
.approved { color: #339900; } |
| 24 |
.pending { color: #CCC; font-style: italic; } |
24 |
.pending { color: #CCC; font-style: italic; } |
| 25 |
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } |
25 |
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } |
| 26 |
</style> |
26 |
</style>[% END %] |
| 27 |
</head> |
27 |
</head> |
| 28 |
|
28 |
|
| 29 |
<body id="tags_review" class="tools"> |
29 |
<body id="tags_review" class="tools"> |
| 30 |
[% WRAPPER 'header.inc' %] |
30 |
[% WRAPPER 'header.inc' %] |
| 31 |
[% INCLUDE 'cat-search.inc' %] |
31 |
[% INCLUDE 'cat-search.inc' %] |
| 32 |
[% END %] |
32 |
[% END %] |
| 33 |
|
33 |
|
| 34 |
[% WRAPPER 'sub-header.inc' %] |
34 |
[% WRAPPER 'sub-header.inc' %] |
| 35 |
[% WRAPPER breadcrumbs %] |
35 |
[% WRAPPER breadcrumbs %] |
| 36 |
[% WRAPPER breadcrumb_item %] |
|
|
| 37 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> |
| 38 |
[% END %] |
| 39 |
[% IF ( filter_approved_ok || filter_approved_pending || filter_approved_rej ) %] |
| 40 |
[% WRAPPER breadcrumb_item %] |
36 |
[% WRAPPER breadcrumb_item %] |
| 41 |
<a href="/cgi-bin/koha/tags/review.pl">Tags</a> |
37 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> |
| 42 |
[% END %] |
|
|
| 43 |
[% ELSE %] |
| 44 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 45 |
<span>Tags</span> |
| 46 |
[% END %] |
38 |
[% END %] |
| 47 |
[% END %] |
39 |
[% IF ( filter_approved_ok || filter_approved_pending || filter_approved_rej ) %] |
| 48 |
[% IF ( filter_approved_ok ) %] |
40 |
[% WRAPPER breadcrumb_item %] |
| 49 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
41 |
<a href="/cgi-bin/koha/tags/review.pl">Tags</a> |
| 50 |
[% t("Approved") | html %] |
42 |
[% END %] |
|
|
43 |
[% ELSE %] |
| 44 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 45 |
<span>Tags</span> |
| 46 |
[% END %] |
| 51 |
[% END %] |
47 |
[% END %] |
| 52 |
[% ELSIF ( filter_approved_pending ) %] |
48 |
[% IF ( filter_approved_ok ) %] |
| 53 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
49 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 54 |
[% t("Pending") | html %] |
50 |
[% t("Approved") | html %] |
|
|
51 |
[% END %] |
| 52 |
[% ELSIF ( filter_approved_pending ) %] |
| 53 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 54 |
[% t("Pending") | html %] |
| 55 |
[% END %] |
| 56 |
[% ELSIF ( filter_approved_rej ) %] |
| 57 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 58 |
[% t("Rejected") | html %] |
| 59 |
[% END %] |
| 55 |
[% END %] |
60 |
[% END %] |
| 56 |
[% ELSIF ( filter_approved_rej ) %] |
61 |
[% END #/ WRAPPER breadcrumbs %] |
| 57 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
62 |
[% END #/ WRAPPER sub-header.inc %] |
| 58 |
[% t("Rejected") | html %] |
|
|
| 59 |
[% END %] |
| 60 |
[% END %] |
| 61 |
[% END #/ WRAPPER breadcrumbs %] |
| 62 |
[% END #/ WRAPPER sub-header.inc %] |
| 63 |
|
63 |
|
| 64 |
<div class="main container-fluid"> |
64 |
<div class="main container-fluid"> |
| 65 |
<div class="row"> |
65 |
<div class="row"> |
| 66 |
<div class="col-sm-12"> |
66 |
<div class="col-sm-12"> |
| 67 |
<main> |
67 |
<main> |
|
|
68 |
<div class="row"> |
| 69 |
<div class="col-sm-8 col-sm-push-2"> |
| 70 |
[% INCLUDE 'messages.inc' %] |
| 71 |
<h1>Tags</h1> |
| 72 |
<form method="post" action="/cgi-bin/koha/tags/review.pl"> |
| 73 |
<h4> |
| 74 |
[% IF ( filter_approved_all ) %]<span>Displaying all terms</span>[% END %] |
| 75 |
[% IF ( filter_approved_ok ) %]<span>Displaying approved terms</span>[% END %] |
| 76 |
[% IF ( filter_approved_pending ) %]<span>Displaying pending terms</span>[% END %] |
| 77 |
[% IF ( filter_approved_rej ) %]<span>Displaying rejected terms</span>[% END %] |
| 78 |
</h4> |
| 68 |
|
79 |
|
| 69 |
<div class="row"> |
80 |
[% IF ( op_count ) %] |
| 70 |
<div class="col-sm-8 col-sm-push-2"> |
81 |
<div class="dialog message" id="main_status"> |
| 71 |
[% INCLUDE 'messages.inc' %] |
82 |
[% IF ( op == 'approve' ) %] <span>Approved</span> |
| 72 |
<h1>Tags</h1> |
83 |
[% ELSIF ( op == 'reject' ) %] <span>Rejected</span> |
| 73 |
<form method="post" action="/cgi-bin/koha/tags/review.pl"> |
84 |
[% ELSIF ( op == 'test' ) %] <span>Tested</span> |
| 74 |
<h4> |
85 |
[% ELSE %]<span>Unknown operation ([% op | html %]) on</span> |
| 75 |
[% IF ( filter_approved_all ) %]<span>Displaying all terms</span>[% END %] |
86 |
[% END %] |
| 76 |
[% IF ( filter_approved_ok ) %]<span>Displaying approved terms</span>[% END %] |
87 |
<span>[% op_count | html %] Term(s).</span> |
| 77 |
[% IF ( filter_approved_pending ) %]<span>Displaying pending terms</span>[% END %] |
88 |
</div> |
| 78 |
[% IF ( filter_approved_rej ) %]<span>Displaying rejected terms</span>[% END %] |
89 |
[% END %] |
| 79 |
</h4> |
90 |
[% IF ( message_loop ) %] |
|
|
91 |
<div class="dialog alert" id="main_error"> |
| 92 |
[% FOREACH message_loo IN message_loop %] |
| 93 |
[% IF ( message_loo.failed_ok ) %] |
| 94 |
<strong>Error: </strong> |
| 95 |
<span>Failed to approve term ([% message_loo.failed_ok | html %]).</span> |
| 96 |
[% ELSIF ( message_loo.failed_rej ) %] |
| 97 |
<strong>Error: </strong> |
| 98 |
<span>Failed to reject term ([% message_loo.failed_rej | html %]).</span> |
| 99 |
[% ELSIF ( message_loo.approver ) %] |
| 100 |
<span>No match for user ([% message_loo.approver | html %]). FILTER REQUIRES BORROWERNUMBER (not name).</span> |
| 101 |
[% ELSIF ( message_loo.approved_by ) %] |
| 102 |
<strong>Error: </strong> |
| 103 |
<span>No match for borrowernumber ([% message_loo.approved_by | html %]).</span> |
| 104 |
[% ELSIF ( message_loo.op_zero ) %] |
| 105 |
<strong>Error: </strong> |
| 106 |
<span>The root koha user in your KOHA_CONF file (default: kohaadmin) is not a valid tag moderator. These actions are logged by borrowernumber, so the moderator must exist in your borrowers table. Please log in as a different authorized staff user to moderate tags.</span> |
| 107 |
[% ELSE %] |
| 108 |
<span>Unrecognized error!</span> |
| 109 |
[% END %] |
| 110 |
<br /> |
| 111 |
[% END %] |
| 112 |
</div> |
| 113 |
[% END %] |
| 80 |
|
114 |
|
| 81 |
[% IF ( op_count ) %] |
115 |
[% IF ( pagination_bar ) %] |
| 82 |
<div class="dialog message" id="main_status"> |
116 |
<div class="pages" id="pagination_top"> |
| 83 |
[% IF ( op == 'approve' ) %] <span>Approved</span> |
117 |
[% pagination_bar | $raw %] |
| 84 |
[% ELSIF ( op == 'reject' ) %] <span>Rejected</span> |
118 |
</div> |
| 85 |
[% ELSIF ( op == 'test' ) %] <span>Tested</span> |
119 |
[% END %] |
| 86 |
[% ELSE %]<span>Unknown operation ([% op | html %]) on</span> |
120 |
|
| 87 |
[% END %] |
121 |
[% IF ( tagloop ) %] |
| 88 |
<span>[% op_count | html %] Term(s).</span> |
122 |
<div class="page-section"> |
| 89 |
</div> |
123 |
<p class="check"></p> |
| 90 |
[% END %] |
124 |
<table id="tagst"> |
| 91 |
[% IF ( message_loop ) %] |
125 |
<thead> |
| 92 |
<div class="dialog alert" id="main_error"> |
126 |
<tr> |
| 93 |
[% FOREACH message_loo IN message_loop %] |
127 |
<th class="NoSort"> </th> |
| 94 |
[% IF ( message_loo.failed_ok ) %]<strong>Error: </strong><span>Failed to approve term ([% message_loo.failed_ok | html %]).</span> |
128 |
<th>Status</th> |
| 95 |
[% ELSIF ( message_loo.failed_rej ) %]<strong>Error: </strong><span>Failed to reject term ([% message_loo.failed_rej | html %]).</span> |
129 |
<th>Term</th> |
| 96 |
[% ELSIF ( message_loo.approver ) %]<span>No match for user ([% message_loo.approver | html %]). FILTER REQUIRES BORROWERNUMBER (not name).</span> |
130 |
<th>Weight</th> |
| 97 |
[% ELSIF ( message_loo.approved_by ) %]<strong>Error: </strong><span>No match for borrowernumber ([% message_loo.approved_by | html %]).</span> |
131 |
<th class="NoSort noExport">Actions</th> |
| 98 |
[% ELSIF ( message_loo.op_zero ) %]<strong>Error: </strong> |
132 |
[% UNLESS ( filter_approved_pending ) %]<th>Reviewer</th>[% END %] |
| 99 |
<span>The root koha user in your KOHA_CONF file |
133 |
<th>Date</th> |
| 100 |
(default: kohaadmin) is not a valid tag moderator. These actions are logged |
134 |
</tr> |
| 101 |
by borrowernumber, so the moderator must exist in your borrowers table. |
135 |
</thead> |
| 102 |
Please log in as a different authorized staff user to moderate tags.</span> |
136 |
<tbody> |
| 103 |
[% ELSE %]<span>Unrecognized error!</span> |
137 |
[% FOREACH tagloo IN tagloop %] |
| 104 |
[% END %] |
138 |
<tr> |
| 105 |
<br /> |
139 |
<td> |
| 106 |
[% END %] |
140 |
[% IF ( tagloo.approved == 0 ) %] |
| 107 |
</div> |
141 |
<input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="pending" /> |
| 108 |
[% END %] |
142 |
[% ELSIF ( tagloo.approved == 1 ) %] |
| 109 |
[% IF ( pagination_bar ) %] |
143 |
<input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="approved" /> |
| 110 |
<div class="pages" id="pagination_top"> |
144 |
[% ELSE %] |
| 111 |
[% pagination_bar | $raw %] |
145 |
<input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="rejected" /> |
| 112 |
</div> |
146 |
[% END %] |
| 113 |
[% END %] |
147 |
</td> |
| 114 |
[% IF ( tagloop ) %] |
148 |
<td> |
| 115 |
<div class="page-section"> |
149 |
[% IF ( tagloo.approved == -1 ) %] |
| 116 |
<p class="check"></p> |
150 |
<label for="checkbox[% offset + loop.count | html %]"> |
| 117 |
<table id="tagst"> |
151 |
<span class="rejected status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Rejected') | html %]</span> |
| 118 |
<thead> |
152 |
</label> |
| 119 |
<tr> |
153 |
[% ELSIF ( tagloo.approved == 1 ) %] |
| 120 |
<th class="NoSort"> </th> |
154 |
<label for="checkbox[% offset + loop.count | html %]"> |
| 121 |
<th>Status</th> |
155 |
<span class="approved status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Approved') | html %]</span> |
| 122 |
<th>Term</th> |
156 |
</label> |
| 123 |
<th>Weight</th> |
157 |
[% ELSE %] |
| 124 |
<th class="NoSort noExport">Actions</th> |
158 |
<label for="checkbox[% offset + loop.count | html %]"> |
| 125 |
[% UNLESS ( filter_approved_pending ) %]<th>Reviewer</th>[% END %] |
159 |
<span class="pending status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Pending') | html %]</span> |
| 126 |
<th>Date</th> |
160 |
</label> |
| 127 |
</tr> |
161 |
[% END %] |
| 128 |
</thead> |
162 |
</td> |
| 129 |
<tbody> |
163 |
<td> |
| 130 |
[% FOREACH tagloo IN tagloop %] |
164 |
<a href="/cgi-bin/koha/tags/list.pl?tag=[% tagloo.term|uri %]">[% tagloo.term | html %]</a> |
| 131 |
<tr> |
165 |
</td> |
| 132 |
<td> |
166 |
<td> |
| 133 |
[% IF ( tagloo.approved == 0 ) %] |
167 |
[% tagloo.weight_total | html %] |
| 134 |
<input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="pending" /> |
168 |
</td> |
| 135 |
[% ELSIF ( tagloo.approved == 1 ) %] |
169 |
[% IF ( tagloo.approved ) %] |
| 136 |
<input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="approved" /> |
170 |
<td class="actions"> |
| 137 |
[% ELSE %] |
171 |
<span class="ajax_buttons" style="visibility:hidden"> |
| 138 |
<input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="rejected" /> |
172 |
[% IF ( tagloo.approved == -1 ) %] |
| 139 |
[% END %] |
173 |
<button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button> |
| 140 |
</td> |
174 |
<button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Rejected" name="reject"><i class="fa fa-times"></i> [% tp('Tags (single)', 'Rejected') | html %]</button> |
| 141 |
<td> |
175 |
[% ELSE %] |
| 142 |
[% IF ( tagloo.approved == -1 ) %] |
176 |
<button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Approved" name="approve"><i class="fa fa-check"></i> [% tp('Tags (single)', 'Approved') | html %]</button> |
| 143 |
<label for="checkbox[% offset + loop.count | html %]"> |
177 |
<button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-times"></i> Reject</button> |
| 144 |
<span class="rejected status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Rejected') | html %]</span> |
178 |
[% END %] |
| 145 |
</label> |
179 |
</span> |
| 146 |
[% ELSIF ( tagloo.approved == 1 ) %] |
180 |
</td> |
| 147 |
<label for="checkbox[% offset + loop.count | html %]"> |
181 |
<td> |
| 148 |
<span class="approved status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Approved') | html %]</span> |
182 |
[% IF ( tagloo.approved_by_name ) %] |
| 149 |
</label> |
183 |
<a href="/cgi-bin/koha/tags/review.pl?approved_by=[% tagloo.approved_by | uri %]&approved=all">[% tagloo.approved_by_name | html %]</a> |
| 150 |
[% ELSE %] |
184 |
[% ELSE %] |
| 151 |
<label for="checkbox[% offset + loop.count | html %]"> |
185 |
|
| 152 |
<span class="pending status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Pending') | html %]</span> |
186 |
[% END %] |
| 153 |
</label> |
187 |
</td> |
| 154 |
[% END %] |
188 |
[% ELSE %] |
| 155 |
</td> |
189 |
<td class="actions"><span class="ajax_buttons" style="visibility:hidden"> |
| 156 |
<td><a href="/cgi-bin/koha/tags/list.pl?tag=[% tagloo.term|uri %]">[% tagloo.term | html %]</a> |
190 |
<button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button> |
| 157 |
</td> |
191 |
<button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-times"></i> Reject</button> |
| 158 |
<td>[% tagloo.weight_total | html %] |
192 |
</span> |
| 159 |
</td> |
193 |
</td> |
| 160 |
[% IF ( tagloo.approved ) %] |
194 |
[% UNLESS ( filter_approved_pending ) %] |
| 161 |
<td class="actions"><span class="ajax_buttons" style="visibility:hidden"> |
195 |
<td> </td> |
| 162 |
[% IF ( tagloo.approved == -1 ) %] |
196 |
[% END %] |
| 163 |
<button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button> |
197 |
[% END %] |
| 164 |
<button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Rejected" name="reject"><i class="fa fa-times"></i> [% tp('Tags (single)', 'Rejected') | html %]</button> |
198 |
<td data-order="[% tagloo.date_approved | html %]"> |
| 165 |
[% ELSE %] |
199 |
[% tagloo.date_approved | $KohaDates %] |
| 166 |
<button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Approved" name="approve"><i class="fa fa-check"></i> [% tp('Tags (single)', 'Approved') | html %]</button> |
200 |
</td> |
| 167 |
<button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-times"></i> Reject</button> |
201 |
</tr> |
| 168 |
[% END %] |
202 |
[% END %] |
| 169 |
</span> |
203 |
</tbody> |
| 170 |
</td> |
204 |
</table> |
| 171 |
<td>[% IF ( tagloo.approved_by_name ) %]<a href="/cgi-bin/koha/tags/review.pl?approved_by=[% tagloo.approved_by | uri %]&approved=all">[% tagloo.approved_by_name | html %]</a>[% ELSE %] [% END %] |
205 |
</div> <!-- /.page-section --> |
| 172 |
</td> |
206 |
[% END %] |
| 173 |
[% ELSE %] |
207 |
|
| 174 |
<td class="actions"><span class="ajax_buttons" style="visibility:hidden"> |
208 |
[% IF ( tagloop ) %] |
| 175 |
<button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button> |
209 |
<fieldset class="action"> |
| 176 |
<button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-times"></i> Reject</button> |
210 |
<button type="submit" value="Approve" class="btn btn-default" id="approve_button" name="op-approve"><i class="fa fa-check"></i> Approve</button> |
| 177 |
</span> |
211 |
<button type="submit" value="Reject" class="btn btn-default" id="reject_button" name="op-reject"><i class="fa fa-times"></i> Reject</button> |
| 178 |
</td> |
212 |
</fieldset> |
| 179 |
[% UNLESS ( filter_approved_pending ) %]<td> </td>[% END %] |
213 |
[% END %] |
| 180 |
[% END %] |
214 |
</form> |
| 181 |
<td data-order="[% tagloo.date_approved | html %]"> |
215 |
</div> |
| 182 |
[% tagloo.date_approved | $KohaDates %] |
216 |
<div class="col-sm-2 col-sm-push-2"> |
| 183 |
</td> |
217 |
<aside> |
| 184 |
</tr> |
218 |
<fieldset class="brief"> |
| 185 |
[% END %] |
219 |
<h4>Terms summary</h4> |
| 186 |
</tbody> |
220 |
<ul> |
| 187 |
</table> |
221 |
<li> |
| 188 |
</div> <!-- /.page-section --> |
222 |
<a href="/cgi-bin/koha/tags/review.pl?approved=1">[% tp('Tags (multiple)', 'Approved') | html %]</a>: |
| 189 |
[% END %] |
223 |
<span id="terms_summary_approved_count">[% approved_count | html %]</span> |
| 190 |
[% IF ( tagloop ) %]<fieldset class="action"> |
224 |
</li> |
| 191 |
<button type="submit" value="Approve" class="btn btn-default" id="approve_button" name="op-approve"><i class="fa fa-check"></i> Approve</button> |
225 |
<li> |
| 192 |
<button type="submit" value="Reject" class="btn btn-default" id="reject_button" name="op-reject"><i class="fa fa-times"></i> Reject</button> |
226 |
<a href="/cgi-bin/koha/tags/review.pl?approved=-1">[% tp('Tags (multiple)', 'Rejected') | html %]</a>: |
| 193 |
</fieldset>[% END %] |
227 |
<span id="terms_summary_rejected_count">[% rejected_count | html %]</span> |
| 194 |
</form> |
228 |
</li> |
| 195 |
</div> |
229 |
<li> |
| 196 |
<div class="col-sm-2 col-sm-push-2"> |
230 |
<a href="/cgi-bin/koha/tags/review.pl?approved=0">[% tp('Tags (multiple)', 'Pending') | html %]</a>: |
| 197 |
<aside> |
231 |
<span id="terms_summary_unapproved_count">[% unapproved_count | html %]</span> |
| 198 |
<fieldset class="brief"> |
232 |
</li> |
| 199 |
<h4>Terms summary</h4> |
233 |
<li> |
| 200 |
<ul> |
234 |
<a href="/cgi-bin/koha/tags/review.pl?approved=all">Total</a>: |
| 201 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=1">[% tp('Tags (multiple)', 'Approved') | html %]</a>: |
235 |
<span id="terms_summary_approved_total">[% approved_total | html %]</span> |
| 202 |
<span id="terms_summary_approved_count">[% approved_count | html %]</span> |
236 |
</li> |
| 203 |
</li> |
237 |
</ul> |
| 204 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=-1">[% tp('Tags (multiple)', 'Rejected') | html %]</a>: |
238 |
<span id="terms_summary_status"> </span> |
| 205 |
<span id="terms_summary_rejected_count">[% rejected_count | html %]</span> |
239 |
</fieldset> |
| 206 |
</li> |
240 |
|
| 207 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=0">[% tp('Tags (multiple)', 'Pending') | html %]</a>: |
241 |
<fieldset class="brief"> |
| 208 |
<span id="terms_summary_unapproved_count">[% unapproved_count | html %]</span> |
242 |
<h4>Check lists</h4> |
| 209 |
</li> |
243 |
<div class="description">Enter a word or phrase to check against approved/rejected lists: </div> |
| 210 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=all">Total</a>: |
244 |
<form method="post" action="/cgi-bin/koha/tags/review.pl"> |
| 211 |
<span id="terms_summary_approved_total">[% approved_total | html %]</span> |
245 |
<input type="text" size="14" name="test" id="test" /> |
| 212 |
</li> |
246 |
<fieldset class="action"> |
| 213 |
</ul> |
247 |
<button type="submit" value="Test" class="approval_btn btn btn-default btn-sm" id="test_button" name="op-test"><i class="fas fa-check-square" aria-hidden="true"></i> Test</button> |
| 214 |
<span id="terms_summary_status"> </span> |
248 |
</fieldset> |
| 215 |
</fieldset> |
249 |
<div id="verdict"> |
| 216 |
<fieldset class="brief"> |
250 |
[% IF ( test_term ) %] |
| 217 |
<h4>Check lists</h4> |
251 |
[% IF ( verdict_ok ) %] |
| 218 |
<div class="description">Enter a word or phrase to check against approved/rejected lists: </div> |
252 |
<span>"[% test_term | html %]" is permitted.</span> |
| 219 |
<form method="post" action="/cgi-bin/koha/tags/review.pl"> |
253 |
[% ELSIF ( verdict_rej ) %] |
| 220 |
<input type="text" size="14" name="test" id="test" /> |
254 |
<span>"[% test_term | html %]" is prohibited.</span> |
| 221 |
<fieldset class="action"><button type="submit" value="Test" class="approval_btn btn btn-default btn-sm" id="test_button" name="op-test"><i class="fas fa-check-square" aria-hidden="true"></i> Test</button></fieldset> |
255 |
[% ELSIF ( verdict_indeterminate ) %] |
| 222 |
<div id="verdict"> |
256 |
<span>"[% test_term | html %]" is neither permitted nor prohibited.</span> |
| 223 |
[% IF ( test_term ) %] |
257 |
[% END %] |
| 224 |
[% IF ( verdict_ok ) %] |
258 |
[% END %] |
| 225 |
<span>"[% test_term | html %]" is permitted.</span> |
259 |
</div> |
| 226 |
[% ELSIF ( verdict_rej ) %] |
260 |
</form> |
| 227 |
<span>"[% test_term | html %]" is prohibited.</span> |
261 |
</fieldset> |
| 228 |
[% ELSIF ( verdict_indeterminate ) %] |
262 |
</aside> |
| 229 |
<span>"[% test_term | html %]" is neither permitted nor prohibited.</span> |
263 |
</div> |
| 230 |
[% END %] |
264 |
|
| 231 |
[% END %] |
265 |
<div class="col-sm-2 col-sm-pull-10"> |
| 232 |
</div> |
266 |
<aside> |
| 233 |
</form> |
267 |
<form method="post" action="/cgi-bin/koha/tags/review.pl"> |
| 234 |
</fieldset> |
268 |
<fieldset class="brief"> |
| 235 |
</aside> |
269 |
<h4>Filters</h4> |
| 236 |
</div> |
270 |
<ol> |
| 237 |
<div class="col-sm-2 col-sm-pull-10"> |
271 |
<li> |
| 238 |
<aside> |
272 |
<label for="tag">Term:</label> |
| 239 |
<form method="post" action="/cgi-bin/koha/tags/review.pl"> |
273 |
<input type="text" name="tag" id="tag" value="[% filter_tag | html %]" /> |
| 240 |
<fieldset class="brief"> |
274 |
</li> |
| 241 |
<h4>Filters</h4> |
275 |
<li> |
| 242 |
<ol> |
276 |
<label for="approved">Status:</label> |
| 243 |
<li><label for="tag">Term:</label> <input type="text" name="tag" id="tag" value="[% filter_tag | html %]" /> |
277 |
<select name="approved" id="approved"> |
| 244 |
</li> |
278 |
[% IF ( filter_approved_all ) %] |
| 245 |
<li><label for="approved">Status:</label> |
279 |
<option selected="selected" value="all">all</option> |
| 246 |
<select name="approved" id="approved"> |
280 |
[% ELSE %] |
| 247 |
[% IF ( filter_approved_all ) %]<option selected="selected" value="all">all</option> |
281 |
<option value="all">all</option> |
| 248 |
[% ELSE %]<option value="all">all</option>[% END %] |
282 |
[% END %] |
| 249 |
[% IF ( filter_approved_ok ) %]<option selected="selected" value="1">approved</option> |
283 |
[% IF ( filter_approved_ok ) %] |
| 250 |
[% ELSE %]<option value="1">approved</option>[% END %] |
284 |
<option selected="selected" value="1">approved</option> |
| 251 |
[% IF ( filter_approved_pending ) %]<option selected="selected" value="0">pending</option> |
285 |
[% ELSE %] |
| 252 |
[% ELSE %]<option value="0">pending</option>[% END %] |
286 |
<option value="1">approved</option> |
| 253 |
[% IF ( filter_approved_rej ) %]<option selected="selected" value="-1">rejected</option> |
287 |
[% END %] |
| 254 |
[% ELSE %]<option value="-1">rejected</option>[% END %] |
288 |
[% IF ( filter_approved_pending ) %] |
| 255 |
</select> |
289 |
<option selected="selected" value="0">pending</option> |
| 256 |
</li> |
290 |
[% ELSE %] |
| 257 |
<li><label for="approver">Reviewer:</label> <input type="text" name="approver" id="approver" value="[% filter_approver | html %]" /> |
291 |
<option value="0">pending</option> |
| 258 |
</li> |
292 |
[% END %] |
| 259 |
<li> |
293 |
[% IF ( filter_approved_rej ) %] |
| 260 |
<label for="from">Date: from </label> |
294 |
<option selected="selected" value="-1">rejected</option> |
| 261 |
<input type="text" size="10" id="from" name="from" value="[% filter_date_approved_from | html %]" class="flatpickr" data-date_to="to" /> |
295 |
[% ELSE %] |
| 262 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
296 |
<option value="-1">rejected</option> |
|
|
297 |
[% END %] |
| 298 |
</select> |
| 299 |
</li> |
| 300 |
<li> |
| 301 |
<label for="approver">Reviewer:</label> |
| 302 |
<input type="text" name="approver" id="approver" value="[% filter_approver | html %]" /> |
| 303 |
</li> |
| 304 |
<li> |
| 305 |
<label for="from">Date: from </label> |
| 306 |
<input type="text" size="10" id="from" name="from" value="[% filter_date_approved_from | html %]" class="flatpickr" data-date_to="to" /> |
| 307 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 263 |
|
308 |
|
| 264 |
<label for="to">...to </label> |
309 |
<label for="to">...to </label> |
| 265 |
<input type="text" size="10" id="to" name="to" value="[% filter_date_approved_to | html %]" class="flatpickr" /> |
310 |
<input type="text" size="10" id="to" name="to" value="[% filter_date_approved_to | html %]" class="flatpickr" /> |
| 266 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
311 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 267 |
</li> |
312 |
</li> |
| 268 |
</ol> |
313 |
</ol> |
| 269 |
<fieldset class="action"><button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-filter" aria-hidden="true"></i> Apply filter(s)</button></fieldset> |
314 |
<fieldset class="action"> |
| 270 |
</fieldset> |
315 |
<button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-filter" aria-hidden="true"></i> Apply filter(s)</button> |
| 271 |
</form> |
316 |
</fieldset> |
|
|
317 |
</fieldset> |
| 318 |
</form> |
| 272 |
|
319 |
|
| 273 |
[% INCLUDE 'tools-menu.inc' %] |
320 |
[% INCLUDE 'tools-menu.inc' %] |
| 274 |
|
321 |
|
| 275 |
</aside> |
322 |
</aside> |
| 276 |
</div> |
323 |
</div> |
| 277 |
</div> |
324 |
</div> |
| 278 |
</main> |
325 |
</main> |
| 279 |
</div> |
326 |
</div> |
| 280 |
</div> |
327 |
</div> |
| 281 |
|
328 |
|
| 282 |
[% MACRO jsinclude BLOCK %] |
329 |
[% MACRO jsinclude BLOCK %] |
| 283 |
[% INCLUDE 'datatables.inc' %] |
330 |
[% INCLUDE 'datatables.inc' %] |
| 284 |
- |
|
|