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