Lines 1-8
Link Here
|
|
|
1 |
[% USE raw %] |
1 |
[% USE Koha %] |
2 |
[% USE Koha %] |
2 |
[% USE Asset %] |
3 |
[% USE Asset %] |
3 |
[% SET footerjs = 1 %] |
4 |
[% SET footerjs = 1 %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
<title>Koha › Tools › Digital signs</title> |
6 |
<title>Digital signs › Tools › Koha</title> |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
</head> |
8 |
</head> |
8 |
<body id="tools_signs" class="tools"> |
9 |
<body id="tools_signs" class="tools"> |
Lines 15-42
Link Here
|
15 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
16 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
16 |
[% IF op == 'stream_form' %] |
17 |
[% IF op == 'stream_form' %] |
17 |
[% IF ( stream.sign_stream_id ) %] |
18 |
[% IF ( stream.sign_stream_id ) %] |
18 |
[% INCLUDE dslink %] Edit "[% stream.name %]" |
19 |
[% INCLUDE dslink %] Edit "[% stream.name | html %]" |
19 |
[% ELSE %] |
20 |
[% ELSE %] |
20 |
[% INCLUDE dslink %] Add a new stream |
21 |
[% INCLUDE dslink %] Add a new stream |
21 |
[% END %] |
22 |
[% END %] |
22 |
[% ELSIF op == 'sign_form' %] |
23 |
[% ELSIF op == 'sign_form' %] |
23 |
[% IF ( sign.sign_id ) %] |
24 |
[% IF ( sign.sign_id ) %] |
24 |
[% INCLUDE dslink %] Edit "[% sign.name %]" |
25 |
[% INCLUDE dslink %] Edit "[% sign.name | html %]" |
25 |
[% ELSE %] |
26 |
[% ELSE %] |
26 |
[% INCLUDE dslink %] Add a new sign |
27 |
[% INCLUDE dslink %] Add a new sign |
27 |
[% END %] |
28 |
[% END %] |
28 |
[% ELSIF op == 'edit_streams' %] |
29 |
[% ELSIF op == 'edit_streams' %] |
29 |
[% INCLUDE dslink %] Edit streams attached to "[% sign.name %]" |
30 |
[% INCLUDE dslink %] Edit streams attached to "[% sign.name | html %]" |
30 |
[% ELSIF op == 'get_params' %] |
31 |
[% ELSIF op == 'get_params' %] |
31 |
[% INCLUDE dslink %] |
32 |
[% INCLUDE dslink %] |
32 |
<a href="/cgi-bin/koha/tools/signs.pl?op=edit_streams&sign_id=[% sign.sign_id %]">Edit streams attached to "[% sign.name %]"</a> › |
33 |
<a href="/cgi-bin/koha/tools/signs.pl?op=edit_streams&sign_id=[% sign.sign_id | uri %]">Edit streams attached to "[% sign.name | html %]"</a> › |
33 |
Get parameters |
34 |
Get parameters |
34 |
[% ELSIF op == 'del_stream' %] |
35 |
[% ELSIF op == 'del_stream' %] |
35 |
[% INCLUDE dslink %] Delete stream "[% stream.name %]" |
36 |
[% INCLUDE dslink %] Delete stream "[% stream.name | html %]" |
36 |
[% ELSIF op == 'del_stream_ok' %] |
37 |
[% ELSIF op == 'del_stream_ok' %] |
37 |
[% INCLUDE dslink %] Stream deleted |
38 |
[% INCLUDE dslink %] Stream deleted |
38 |
[% ELSIF op == 'del_sign' %] |
39 |
[% ELSIF op == 'del_sign' %] |
39 |
[% INCLUDE dslink %] Delete sign "[% sign.name %]" |
40 |
[% INCLUDE dslink %] Delete sign "[% sign.name | html %]" |
40 |
[% ELSIF op == 'del_sign_ok' %] |
41 |
[% ELSIF op == 'del_sign_ok' %] |
41 |
[% INCLUDE dslink %] Sign deleted |
42 |
[% INCLUDE dslink %] Sign deleted |
42 |
[% ELSIF op == 'view_sign' %] |
43 |
[% ELSIF op == 'view_sign' %] |
Lines 79-94
Link Here
|
79 |
[% ELSE %] |
80 |
[% ELSE %] |
80 |
<h1>Add stream</h1> |
81 |
<h1>Add stream</h1> |
81 |
[% END %] |
82 |
[% END %] |
82 |
<form action="[% script_name %]" name="streamform" id="streamform" method="post"> |
83 |
<form action="[% script_name | html %]" name="streamform" id="streamform" method="post"> |
83 |
<input type="hidden" name="op" value="save_stream" /> |
84 |
<input type="hidden" name="op" value="save_stream" /> |
84 |
[% IF ( stream.sign_stream_id ) %] |
85 |
[% IF ( stream.sign_stream_id ) %] |
85 |
<input type="hidden" name="sign_stream_id" value="[% stream.sign_stream_id %]" /> |
86 |
<input type="hidden" name="sign_stream_id" value="[% stream.sign_stream_id | html %]" /> |
86 |
[% END %] |
87 |
[% END %] |
87 |
<fieldset class="rows"> |
88 |
<fieldset class="rows"> |
88 |
<ol> |
89 |
<ol> |
89 |
<li> |
90 |
<li> |
90 |
<label for="name" class="required">Name</label> |
91 |
<label for="name" class="required">Name</label> |
91 |
<input type="text" name="name" value="[% stream.name %]" required="required"> |
92 |
<input type="text" name="name" value="[% stream.name | html %]" required="required"> |
92 |
<span class="required">Required</span> |
93 |
<span class="required">Required</span> |
93 |
</li> |
94 |
</li> |
94 |
<li><label for="report" class="required">Report</label> |
95 |
<li><label for="report" class="required">Report</label> |
Lines 98-106
Link Here
|
98 |
[% END %] |
99 |
[% END %] |
99 |
[% FOREACH report IN reports %] |
100 |
[% FOREACH report IN reports %] |
100 |
[% IF ( report.id == stream.saved_sql_id ) %] |
101 |
[% IF ( report.id == stream.saved_sql_id ) %] |
101 |
<option value="[% report.id %]" selected="selected">[% report.report_name %]</option> |
102 |
<option value="[% report.id | html %]" selected="selected">[% report.report_name | html %]</option> |
102 |
[% ELSE %] |
103 |
[% ELSE %] |
103 |
<option value="[% report.id %]">[% report.report_name %]</option> |
104 |
<option value="[% report.id | html %]">[% report.report_name | html %]</option> |
104 |
[% END %] |
105 |
[% END %] |
105 |
[% END %] |
106 |
[% END %] |
106 |
</select> |
107 |
</select> |
Lines 118-132
Link Here
|
118 |
[% ELSE %] |
119 |
[% ELSE %] |
119 |
<h1>Add sign</h1> |
120 |
<h1>Add sign</h1> |
120 |
[% END %] |
121 |
[% END %] |
121 |
<form action="[% script_name %]" name="signform" id="signform" method="post"> |
122 |
<form action="[% script_name | html %]" name="signform" id="signform" method="post"> |
122 |
<input type="hidden" name="op" value="save_sign" /> |
123 |
<input type="hidden" name="op" value="save_sign" /> |
123 |
[% IF ( sign.sign_id ) %] |
124 |
[% IF ( sign.sign_id ) %] |
124 |
<input type="hidden" name="sign_id" value="[% sign.sign_id %]" /> |
125 |
<input type="hidden" name="sign_id" value="[% sign.sign_id | html %]" /> |
125 |
[% END %] |
126 |
[% END %] |
126 |
<fieldset id="sign_general_info" class="rows"> |
127 |
<fieldset id="sign_general_info" class="rows"> |
127 |
<legend id="general_info_lgd">General settings</legend> |
128 |
<legend id="general_info_lgd">General settings</legend> |
128 |
<ol> |
129 |
<ol> |
129 |
<li><label for="name">Name</label><input type="text" name="name" value="[% sign.name %]" /></li> |
130 |
<li><label for="name">Name</label><input type="text" name="name" value="[% sign.name | html %]" /></li> |
130 |
</ol> |
131 |
</ol> |
131 |
</fieldset> |
132 |
</fieldset> |
132 |
<fieldset id="sign_appearance" class="rows"> |
133 |
<fieldset id="sign_appearance" class="rows"> |
Lines 147-155
Link Here
|
147 |
<option value="">Default</option> |
148 |
<option value="">Default</option> |
148 |
[% FOREACH swatch IN Koha.Preference('OPACDigitalSignsSwatches').split('') %] |
149 |
[% FOREACH swatch IN Koha.Preference('OPACDigitalSignsSwatches').split('') %] |
149 |
[% IF swatch == sign.swatch %] |
150 |
[% IF swatch == sign.swatch %] |
150 |
<option value="[% swatch %]" selected="selected">[% swatch %]</option> |
151 |
<option value="[% swatch | html %]" selected="selected">[% swatch | html %]</option> |
151 |
[% ELSE %] |
152 |
[% ELSE %] |
152 |
<option value="[% swatch %]">[% swatch %]</option> |
153 |
<option value="[% swatch | html %]">[% swatch | html %]</option> |
153 |
[% END %] |
154 |
[% END %] |
154 |
[% END %] |
155 |
[% END %] |
155 |
</select> |
156 |
</select> |
Lines 158-166
Link Here
|
158 |
<select name="transition" id="transition"> |
159 |
<select name="transition" id="transition"> |
159 |
[% FOREACH transition IN [ 'none' 'fade' 'pop' 'flip' 'turn' 'flow' 'slidefade' 'slide' 'slideup' 'slidedown' ] %] |
160 |
[% FOREACH transition IN [ 'none' 'fade' 'pop' 'flip' 'turn' 'flow' 'slidefade' 'slide' 'slideup' 'slidedown' ] %] |
160 |
[% IF transition == sign.transition %] |
161 |
[% IF transition == sign.transition %] |
161 |
<option value="[% transition %]" selected="selected">[% transition %]</option> |
162 |
<option value="[% transition | html %]" selected="selected">[% transition | html %]</option> |
162 |
[% ELSE %] |
163 |
[% ELSE %] |
163 |
<option value="[% transition %]">[% transition %]</option> |
164 |
<option value="[% transition | html %]">[% transition | html %]</option> |
164 |
[% END %] |
165 |
[% END %] |
165 |
[% END %] |
166 |
[% END %] |
166 |
</select> |
167 |
</select> |
Lines 171-183
Link Here
|
171 |
<legend id="autopage_lgd">Automatic page turning</legend> |
172 |
<legend id="autopage_lgd">Automatic page turning</legend> |
172 |
<ol> |
173 |
<ol> |
173 |
<li><label for="idleafter">Idle after</label> |
174 |
<li><label for="idleafter">Idle after</label> |
174 |
<input type="text" name="idleafter" id="idleafter" value="[% sign.idleafter %]" size="4" /> seconds. (Set to 0 to disable automatic page turning.) |
175 |
<input type="text" name="idleafter" id="idleafter" value="[% sign.idleafter | html %]" size="4" /> seconds. (Set to 0 to disable automatic page turning.) |
175 |
</li> |
176 |
</li> |
176 |
<li><label for="pagedelay">Page delay</label> |
177 |
<li><label for="pagedelay">Page delay</label> |
177 |
<input type="text" name="pagedelay" id="pagedelay" value="[% sign.pagedelay %]" size="4" /> seconds. |
178 |
<input type="text" name="pagedelay" id="pagedelay" value="[% sign.pagedelay | html %]" size="4" /> seconds. |
178 |
</li> |
179 |
</li> |
179 |
<li><label for="reloadafter">Reload after</label> |
180 |
<li><label for="reloadafter">Reload after</label> |
180 |
<input type="text" name="reloadafter" id="reloadafter" value="[% sign.reloadafter %]" size="4" /> seconds. |
181 |
<input type="text" name="reloadafter" id="reloadafter" value="[% sign.reloadafter | html %]" size="4" /> seconds. |
181 |
</li> |
182 |
</li> |
182 |
</ol> |
183 |
</ol> |
183 |
</fieldset> |
184 |
</fieldset> |
Lines 185-191
Link Here
|
185 |
</form> |
186 |
</form> |
186 |
|
187 |
|
187 |
[% ELSIF op == 'edit_streams' %] |
188 |
[% ELSIF op == 'edit_streams' %] |
188 |
<h1>Edit streams attached to [% sign.name %]</h1> |
189 |
<h1>Edit streams attached to [% sign.name | html %]</h1> |
189 |
<h2>Streams already attached to this sign</h2> |
190 |
<h2>Streams already attached to this sign</h2> |
190 |
[% IF ( sts.count ) %] |
191 |
[% IF ( sts.count ) %] |
191 |
<table id="streams_attached"> |
192 |
<table id="streams_attached"> |
Lines 199-214
Link Here
|
199 |
<tbody> |
200 |
<tbody> |
200 |
[% FOREACH s IN sts %] |
201 |
[% FOREACH s IN sts %] |
201 |
<tr> |
202 |
<tr> |
202 |
<td>[% s.sign_stream.name %]</td> |
203 |
<td>[% s.sign_stream.name | html %]</td> |
203 |
<td>[% IF s.params %][% s.params %][% ELSE %]None[% END %]</td> |
204 |
<td>[% IF s.params %][% s.params | html %][% ELSE %]None[% END %]</td> |
204 |
<td class="actions"> |
205 |
<td class="actions"> |
205 |
[% IF s.params %] |
206 |
[% IF s.params %] |
206 |
<a href="/cgi-bin/koha/tools/signs.pl?op=get_params&sign_to_stream_id=[% s.sign_to_stream_id %]&sign_stream_id=[% s.sign_stream_id %]&sign_id=[% s.sign_id %]" class="btn btn-default btn-xs" title="Edit parameters"><i class="fa fa-pencil"></i></a> |
207 |
<a href="/cgi-bin/koha/tools/signs.pl?op=get_params&sign_to_stream_id=[% s.sign_to_stream_id | uri %]&sign_stream_id=[% s.sign_stream_id | uri %]&sign_id=[% s.sign_id | uri %]" class="btn btn-default btn-xs" title="Edit parameters"><i class="fa fa-pencil"></i></a> |
207 |
[% ELSE %] |
208 |
[% ELSE %] |
208 |
<a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% s.sign_stream.saved_sql_id %]&phase=Edit SQL" class="btn btn-default btn-xs" title="Edit SQL"><i class="fa fa-pencil"></i></a> |
209 |
<a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% s.sign_stream.saved_sql_id | uri %]&phase=Edit SQL" class="btn btn-default btn-xs" title="Edit SQL"><i class="fa fa-pencil"></i></a> |
209 |
[% END %] |
210 |
[% END %] |
210 |
</td> |
211 |
</td> |
211 |
<td class="actions"><a href="/cgi-bin/koha/tools/signs.pl?op=detach_stream_from_sign&sign_id=[% s.sign_id %]&sign_to_stream_id=[% s.sign_to_stream_id %]" class="btn btn-default btn-xs detach"><i class="fa fa-times"></i> Detach</a></td> |
212 |
<td class="actions"><a href="/cgi-bin/koha/tools/signs.pl?op=detach_stream_from_sign&sign_id=[% s.sign_id | uri %]&sign_to_stream_id=[% s.sign_to_stream_id | uri %]" class="btn btn-default btn-xs detach"><i class="fa fa-times"></i> Detach</a></td> |
212 |
</tr> |
213 |
</tr> |
213 |
[% END %] |
214 |
[% END %] |
214 |
</tbody> |
215 |
</tbody> |
Lines 218-232
Link Here
|
218 |
[% END %] |
219 |
[% END %] |
219 |
|
220 |
|
220 |
<h2>Attach a new stream to this sign</h2> |
221 |
<h2>Attach a new stream to this sign</h2> |
221 |
<form action="[% script_name %]" name="attach_stream_to_sign_form" id="attach_stream_to_sign_form" method="post"> |
222 |
<form action="[% script_name | html %]" name="attach_stream_to_sign_form" id="attach_stream_to_sign_form" method="post"> |
222 |
<input type="hidden" name="op" value="attach_stream_to_sign" /> |
223 |
<input type="hidden" name="op" value="attach_stream_to_sign" /> |
223 |
<input type="hidden" name="sign_id" value="[% sign_id %]" /> |
224 |
<input type="hidden" name="sign_id" value="[% sign_id | html %]" /> |
224 |
<fieldset class="rows"> |
225 |
<fieldset class="rows"> |
225 |
<ol> |
226 |
<ol> |
226 |
<li><label for="stream">Choose a stream to attach</label> |
227 |
<li><label for="stream">Choose a stream to attach</label> |
227 |
<select name="sign_stream_id" id="stream"> |
228 |
<select name="sign_stream_id" id="stream"> |
228 |
[% FOREACH s IN streams %] |
229 |
[% FOREACH s IN streams %] |
229 |
<option value="[% s.sign_stream_id %]">[% s.name %]</option> |
230 |
<option value="[% s.sign_stream_id | html %]">[% s.name | html %]</option> |
230 |
[% END %] |
231 |
[% END %] |
231 |
</select> |
232 |
</select> |
232 |
</li> |
233 |
</li> |
Lines 236-249
Link Here
|
236 |
</form> |
237 |
</form> |
237 |
|
238 |
|
238 |
[% ELSIF op == 'get_params' %] |
239 |
[% ELSIF op == 'get_params' %] |
239 |
<h1>Parameters for [% stream.name %]</h1> |
240 |
<h1>Parameters for [% stream.name | html %]</h1> |
240 |
Based on report: [% sql.report_name %] | <a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% stream.saved_sql_id %]&phase=Edit SQL">Edit this report</a> |
241 |
Based on report: [% sql.report_name | html %] | <a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% stream.saved_sql_id | uri %]&phase=Edit SQL">Edit this report</a> |
241 |
|
242 |
|
242 |
<form action="[% script_name %]" name="get_params_form" id="get_params_form" method="post"> |
243 |
<form action="[% script_name | html %]" name="get_params_form" id="get_params_form" method="post"> |
243 |
<input type="hidden" name="op" value="save_params" /> |
244 |
<input type="hidden" name="op" value="save_params" /> |
244 |
<input type="hidden" name="sign_to_stream_id" value="[% sign_to_stream_id %]" /> |
245 |
<input type="hidden" name="sign_to_stream_id" value="[% sign_to_stream_id | html %]" /> |
245 |
<input type="hidden" name="sign_stream_id" value="[% sign_stream_id %]" /> |
246 |
<input type="hidden" name="sign_stream_id" value="[% sign_stream_id | html %]" /> |
246 |
<input type="hidden" name="sign_id" value="[% sign_id %]" /> |
247 |
<input type="hidden" name="sign_id" value="[% sign_id | html %]" /> |
247 |
<fieldset class="rows"> |
248 |
<fieldset class="rows"> |
248 |
[% IF ( sts.params ) %] |
249 |
[% IF ( sts.params ) %] |
249 |
<legend id="save_params_lgd">Edit parameters</legend> |
250 |
<legend id="save_params_lgd">Edit parameters</legend> |
Lines 252-258
Link Here
|
252 |
[% END %] |
253 |
[% END %] |
253 |
<ol> |
254 |
<ol> |
254 |
<li><label for="stream">Parameters</label> |
255 |
<li><label for="stream">Parameters</label> |
255 |
<input type="text" size="60" name="parameters" id="parameters" value="[% sts.params %]" /> |
256 |
<input type="text" size="60" name="parameters" id="parameters" value="[% sts.params | html %]" /> |
256 |
</li> |
257 |
</li> |
257 |
</ol> |
258 |
</ol> |
258 |
</fieldset> |
259 |
</fieldset> |
Lines 274-287
Link Here
|
274 |
|
275 |
|
275 |
[% ELSIF op == 'del_stream' %] |
276 |
[% ELSIF op == 'del_stream' %] |
276 |
<div class="dialog alert"> |
277 |
<div class="dialog alert"> |
277 |
<h3>Confirm deletion of stream <span class="ex">'[% stream.name %]'</span>?</h3> |
278 |
<h3>Confirm deletion of stream <span class="ex">'[% stream.name | html %]'</span>?</h3> |
278 |
<form action="[% script_name %]" id ="confirm_stream_delete_form" method="post"> |
279 |
<form action="[% script_name | html %]" id ="confirm_stream_delete_form" method="post"> |
279 |
<input type="hidden" name="op" value="del_stream_ok" /> |
280 |
<input type="hidden" name="op" value="del_stream_ok" /> |
280 |
<input type="hidden" name="sign_stream_id" value="[% stream.sign_stream_id %]" /> |
281 |
<input type="hidden" name="sign_stream_id" value="[% stream.sign_stream_id | html %]" /> |
281 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this stream</button> |
282 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this stream</button> |
282 |
</form> |
283 |
</form> |
283 |
|
284 |
|
284 |
<form action="[% script_name %]" id="cancel_stream_delete_form" method="get"> |
285 |
<form action="[% script_name | html %]" id="cancel_stream_delete_form" method="get"> |
285 |
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> |
286 |
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> |
286 |
</form> |
287 |
</form> |
287 |
</div> |
288 |
</div> |
Lines 289-309
Link Here
|
289 |
[% ELSIF op == 'del_stream_ok' %] |
290 |
[% ELSIF op == 'del_stream_ok' %] |
290 |
<div class="dialog message"> |
291 |
<div class="dialog message"> |
291 |
<h3>Stream deleted</h3> |
292 |
<h3>Stream deleted</h3> |
292 |
<form action="[% script_name %]" method="get"> |
293 |
<form action="[% script_name | html %]" method="get"> |
293 |
<input type="submit" value="OK" class="approve" /> |
294 |
<input type="submit" value="OK" class="approve" /> |
294 |
</form> |
295 |
</form> |
295 |
</div> |
296 |
</div> |
296 |
|
297 |
|
297 |
[% ELSIF op == 'del_sign' %] |
298 |
[% ELSIF op == 'del_sign' %] |
298 |
<div class="dialog alert"> |
299 |
<div class="dialog alert"> |
299 |
<h3>Confirm deletion of sign <span class="ex">'[% sign.name %]'</span>?</h3> |
300 |
<h3>Confirm deletion of sign <span class="ex">'[% sign.name | html %]'</span>?</h3> |
300 |
<form action="[% script_name %]" id ="confirm_sign_delete_form" method="post"> |
301 |
<form action="[% script_name | html %]" id ="confirm_sign_delete_form" method="post"> |
301 |
<input type="hidden" name="op" value="del_sign_ok" /> |
302 |
<input type="hidden" name="op" value="del_sign_ok" /> |
302 |
<input type="hidden" name="sign_id" value="[% sign.sign_id %]" /> |
303 |
<input type="hidden" name="sign_id" value="[% sign.sign_id | html %]" /> |
303 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this sign</button> |
304 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this sign</button> |
304 |
</form> |
305 |
</form> |
305 |
|
306 |
|
306 |
<form action="[% script_name %]" id="cancel_sign_delete_form" method="get"> |
307 |
<form action="[% script_name | html %]" id="cancel_sign_delete_form" method="get"> |
307 |
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> |
308 |
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> |
308 |
</form> |
309 |
</form> |
309 |
</div> |
310 |
</div> |
Lines 311-331
Link Here
|
311 |
[% ELSIF op == 'del_sign_ok' %] |
312 |
[% ELSIF op == 'del_sign_ok' %] |
312 |
<div class="dialog message"> |
313 |
<div class="dialog message"> |
313 |
<h3>Sign deleted</h3> |
314 |
<h3>Sign deleted</h3> |
314 |
<form action="[% script_name %]" method="get"> |
315 |
<form action="[% script_name | html %]" method="get"> |
315 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button> |
316 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button> |
316 |
</form> |
317 |
</form> |
317 |
</div> |
318 |
</div> |
318 |
|
319 |
|
319 |
[% ELSIF op == 'view_sign' %] |
320 |
[% ELSIF op == 'view_sign' %] |
320 |
<h1>[% sign.name %]</h1> |
321 |
<h1>[% sign.name | html %]</h1> |
321 |
<h2>Streams</h2> |
322 |
<h2>Streams</h2> |
322 |
|
323 |
|
323 |
[% IF ( streams ) %] |
324 |
[% IF ( streams ) %] |
324 |
[% FOREACH stream IN streams %] |
325 |
[% FOREACH stream IN streams %] |
325 |
<h3>[% stream.sign_stream.name %]</h3> |
326 |
<h3>[% stream.sign_stream.name | html %]</h3> |
326 |
<ul> |
327 |
<ul> |
327 |
[% FOREACH record IN stream.records %] |
328 |
[% FOREACH record IN stream.records %] |
328 |
<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% record.biblionumber %]">[% record.title %]</a></li> |
329 |
<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% record.biblionumber | uri %]">[% record.title | html %]</a></li> |
329 |
[% END %] |
330 |
[% END %] |
330 |
</ul> |
331 |
</ul> |
331 |
[% END %] |
332 |
[% END %] |
Lines 334-341
Link Here
|
334 |
[% END %] |
335 |
[% END %] |
335 |
|
336 |
|
336 |
[% ELSIF op == 'view_stream' %] |
337 |
[% ELSIF op == 'view_stream' %] |
337 |
<h1>[% stream.name %]</h1> |
338 |
<h1>[% stream.name | html %]</h1> |
338 |
Based on report: [% stream.saved_sql_id.report_name %] | <a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% stream.saved_sql_id %]&phase=Edit SQL">Edit this report</a> |
339 |
Based on report: [% stream.saved_sql_id.report_name | html %] | <a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% stream.saved_sql_id | uri %]&phase=Edit SQL">Edit this report</a> |
339 |
|
340 |
|
340 |
<h2>SQL</h2> |
341 |
<h2>SQL</h2> |
341 |
<pre id="sql_output">[% stream.saved_sql_id.savedsql | html %]</pre> |
342 |
<pre id="sql_output">[% stream.saved_sql_id.savedsql | html %]</pre> |
Lines 374-394
Link Here
|
374 |
<tbody> |
375 |
<tbody> |
375 |
[% FOREACH s IN signs %] |
376 |
[% FOREACH s IN signs %] |
376 |
<tr> |
377 |
<tr> |
377 |
<td><a href="/cgi-bin/koha/tools/signs.pl?op=view_sign&sign_id=[% s.sign_id %]">[% s.name %]</a></td> |
378 |
<td><a href="/cgi-bin/koha/tools/signs.pl?op=view_sign&sign_id=[% s.sign_id | uri %]">[% s.name | html %]</a></td> |
378 |
<td>[% IF ( s.webapp ) %]Yes[% ELSE %]No[% END %]</td> |
379 |
<td>[% IF ( s.webapp ) %]Yes[% ELSE %]No[% END %]</td> |
379 |
<td>[% s.swatch %]</td> |
380 |
<td>[% s.swatch | html %]</td> |
380 |
<td>[% s.transition %]</td> |
381 |
<td>[% s.transition | html %]</td> |
381 |
<td>[% s.idleafter %]</td> |
382 |
<td>[% s.idleafter | html %]</td> |
382 |
<td>[% s.pagedelay %]</td> |
383 |
<td>[% s.pagedelay | html %]</td> |
383 |
<td>[% s.reloadafter %]</td> |
384 |
<td>[% s.reloadafter | html %]</td> |
384 |
<td> |
385 |
<td> |
385 |
<div class="dropdown"> |
386 |
<div class="dropdown"> |
386 |
<a class="btn btn-default btn-xs dropdown-toggle" id="opensignsactions[% s.sign_id %]" role="button" data-toggle="dropdown" href="#"> Actions <b class="caret"></b></a> |
387 |
<a class="btn btn-default btn-xs dropdown-toggle" id="opensignsactions[% s.sign_id | html %]" role="button" data-toggle="dropdown" href="#"> Actions <b class="caret"></b></a> |
387 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="opensignsactions[% s.sign_id %]"> |
388 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="opensignsactions[% s.sign_id | html %]"> |
388 |
<li><a href="/cgi-bin/koha/tools/signs.pl?op=edit_sign&sign_id=[% s.sign_id %]"><i class="fa fa-pencil"></i> Edit</a></li> |
389 |
<li><a href="/cgi-bin/koha/tools/signs.pl?op=edit_sign&sign_id=[% s.sign_id | uri %]"><i class="fa fa-pencil"></i> Edit</a></li> |
389 |
<li><a href="/cgi-bin/koha/tools/signs.pl?op=edit_streams&sign_id=[% s.sign_id %]"><i class="fa fa-pencil"></i> Edit streams</a></li> |
390 |
<li><a href="/cgi-bin/koha/tools/signs.pl?op=edit_streams&sign_id=[% s.sign_id | uri %]"><i class="fa fa-pencil"></i> Edit streams</a></li> |
390 |
<li><a href="/cgi-bin/koha/tools/signs.pl?op=del_sign&sign_id=[% s.sign_id %]"><i class="fa fa-trash"></i> Delete</a></li> |
391 |
<li><a href="/cgi-bin/koha/tools/signs.pl?op=del_sign&sign_id=[% s.sign_id | uri %]"><i class="fa fa-trash"></i> Delete</a></li> |
391 |
[% IF ( OPACBaseURL ) %]<li><a href="[% OPACBaseURL %]/cgi-bin/koha/opac-signs.pl?sign=[% s.sign_id %]" title="View this sign in the OPAC"><i class="fa fa-eye"></i> View sign</a></li>[% END %] |
392 |
[% IF ( OPACBaseURL ) %]<li><a href="[% OPACBaseURL | uri %]/cgi-bin/koha/opac-signs.pl?sign=[% s.sign_id | uri %]" title="View this sign in the OPAC"><i class="fa fa-eye"></i> View sign</a></li>[% END %] |
392 |
</ul> |
393 |
</ul> |
393 |
</div> |
394 |
</div> |
394 |
</td> |
395 |
</td> |
Lines 414-424
Link Here
|
414 |
<tbody> |
415 |
<tbody> |
415 |
[% FOREACH s IN streams %] |
416 |
[% FOREACH s IN streams %] |
416 |
<tr> |
417 |
<tr> |
417 |
<td><a href="/cgi-bin/koha/tools/signs.pl?op=view_stream&sign_stream_id=[% s.sign_stream_id %]">[% s.name %]</a></td> |
418 |
<td><a href="/cgi-bin/koha/tools/signs.pl?op=view_stream&sign_stream_id=[% s.sign_stream_id | uri %]">[% s.name | html %]</a></td> |
418 |
<td title="ID: [% s.saved_sql_id %]">[% s.saved_sql.report_name %]</td> |
419 |
<td title="ID: [% s.saved_sql_id | html %]">[% s.saved_sql.report_name | html %]</td> |
419 |
<td class="actions"> |
420 |
<td class="actions"> |
420 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/signs.pl?op=edit_stream&sign_stream_id=[% s.sign_stream_id %]"><i class="fa fa-pencil"></i> Edit</a> |
421 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/signs.pl?op=edit_stream&sign_stream_id=[% s.sign_stream_id | html %]"><i class="fa fa-pencil"></i> Edit</a> |
421 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/signs.pl?op=del_stream&sign_stream_id=[% s.sign_stream_id %]"><i class="fa fa-trash"></i> Delete</a> |
422 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/signs.pl?op=del_stream&sign_stream_id=[% s.sign_stream_id | html %]"><i class="fa fa-trash"></i> Delete</a> |
422 |
</td> |
423 |
</td> |
423 |
</tr> |
424 |
</tr> |
424 |
[% END %] |
425 |
[% END %] |
Lines 480-486
Link Here
|
480 |
</thead> |
481 |
</thead> |
481 |
<tbody> |
482 |
<tbody> |
482 |
[% FOREACH r IN records %] |
483 |
[% FOREACH r IN records %] |
483 |
<tr><td>[% r.biblionumber %]</td><td>[% r.title %]</td></tr> |
484 |
<tr><td>[% r.biblionumber | html %]</td><td>[% r.title | html %]</td></tr> |
484 |
[% END %] |
485 |
[% END %] |
485 |
</tbody> |
486 |
</tbody> |
486 |
</table> |
487 |
</table> |