Lines 24-29
Link Here
|
24 |
.syspref-link::before { |
24 |
.syspref-link::before { |
25 |
content: " | "; |
25 |
content: " | "; |
26 |
} |
26 |
} |
|
|
27 |
.customisation-link::before { |
28 |
content: " | "; |
29 |
} |
30 |
.customisation-link:first-child::before { |
31 |
content: none; |
32 |
} |
27 |
</style> |
33 |
</style> |
28 |
</head> |
34 |
</head> |
29 |
|
35 |
|
Lines 44-49
Link Here
|
44 |
<li> |
50 |
<li> |
45 |
[% IF category == 'news' %] |
51 |
[% IF category == 'news' %] |
46 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> |
52 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> |
|
|
53 |
[% ELSIF category == 'pages' %] |
54 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=pages">Pages</a> |
47 |
[% ELSE %] |
55 |
[% ELSE %] |
48 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> |
56 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> |
49 |
[% END %] |
57 |
[% END %] |
Lines 55-61
Link Here
|
55 |
[% ELSE %] |
63 |
[% ELSE %] |
56 |
<span>Add additional content</span> |
64 |
<span>Add additional content</span> |
57 |
[% END %] |
65 |
[% END %] |
58 |
([% IF category == 'news' %]<span>News</span>[% ELSE %]<span>HTML customizations</span>[% END %]) |
66 |
([% IF category == 'news' %]<span>News</span>[% ELSIF category == 'pages' %]<span>Pages</span>[% ELSE %]<span>HTML customizations</span>[% END %]) |
59 |
</a> |
67 |
</a> |
60 |
</li> |
68 |
</li> |
61 |
[% ELSE %] |
69 |
[% ELSE %] |
Lines 63-68
Link Here
|
63 |
<a href="#" aria-current="page"> |
71 |
<a href="#" aria-current="page"> |
64 |
[% IF category == 'news' %] |
72 |
[% IF category == 'news' %] |
65 |
News |
73 |
News |
|
|
74 |
[% ELSIF category == 'pages' %] |
75 |
Pages |
66 |
[% ELSE %] |
76 |
[% ELSE %] |
67 |
HTML customizations |
77 |
HTML customizations |
68 |
[% END %] |
78 |
[% END %] |
Lines 165-171
Link Here
|
165 |
[% IF additional_content %] |
175 |
[% IF additional_content %] |
166 |
<h1>Modify an additional content</h1> |
176 |
<h1>Modify an additional content</h1> |
167 |
[% ELSE %] |
177 |
[% ELSE %] |
168 |
<h1>New additional content ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])</h1> |
178 |
<h1>New additional content ([% IF category == 'news' %]News[% ELSIF category == 'pages' %]Pages[% ELSE %]HTML customizations[% END %])</h1> |
169 |
[% END %] |
179 |
[% END %] |
170 |
|
180 |
|
171 |
<div id="toolbar" class="btn-toolbar"> |
181 |
<div id="toolbar" class="btn-toolbar"> |
Lines 180-185
Link Here
|
180 |
</div> |
190 |
</div> |
181 |
[% IF category == 'news' %] |
191 |
[% IF category == 'news' %] |
182 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl"><i class="fa fa-remove"></i> Cancel</a> |
192 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl"><i class="fa fa-remove"></i> Cancel</a> |
|
|
193 |
[% ELSIF category == 'pages' %] |
194 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl?category=pages"><i class="fa fa-remove"></i> Cancel</a> |
183 |
[% ELSE %] |
195 |
[% ELSE %] |
184 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations"><i class="fa fa-remove"></i> Cancel</a> |
196 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations"><i class="fa fa-remove"></i> Cancel</a> |
185 |
[% END %] |
197 |
[% END %] |
Lines 308-323
Link Here
|
308 |
</div> |
320 |
</div> |
309 |
</div> |
321 |
</div> |
310 |
|
322 |
|
311 |
<h2>Additional contents ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])</h2> |
323 |
<h2>Additional contents ([% IF category == 'news' %]News[% ELSIF category == 'pages' %]Pages[% ELSE %]HTML customizations[% END %])</h2> |
312 |
[% IF category == 'news' %] |
324 |
<span id="additional_contents_links"> |
313 |
See <a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> |
325 |
See |
314 |
[% ELSE %] |
326 |
<a class="customisation-link" href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> |
315 |
See <a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> |
327 |
<a class="customisation-link" href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> |
316 |
[% END %] |
328 |
<a class="customisation-link" href="/cgi-bin/koha/tools/additional-contents.pl?category=pages">Pages</a> |
317 |
[% IF ( CAN_user_parameters_manage_sysprefs ) %] |
329 |
[% IF ( CAN_user_parameters_manage_sysprefs ) %] |
318 |
<a class="syspref-link" href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserJS'>OPACUserJS</a> |
330 |
<a class="syspref-link" href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserJS'>OPACUserJS</a> |
319 |
<a class="syspref-link" href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserCSS'>OPACUserCSS</a> |
331 |
<a class="syspref-link" href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserCSS'>OPACUserCSS</a> |
320 |
[% END %] |
332 |
[% END %] |
|
|
333 |
</span> |
321 |
|
334 |
|
322 |
[% IF additional_contents.count %] |
335 |
[% IF additional_contents.count %] |
323 |
<form id="del_form" method="post" action="/cgi-bin/koha/tools/additional-contents.pl"> |
336 |
<form id="del_form" method="post" action="/cgi-bin/koha/tools/additional-contents.pl"> |
Lines 332-338
Link Here
|
332 |
<th>Expiration date</th> |
345 |
<th>Expiration date</th> |
333 |
<th class="anti-the">Title</th> |
346 |
<th class="anti-the">Title</th> |
334 |
<th>Author</th> |
347 |
<th>Author</th> |
335 |
<th class="anti-the">News</th> |
348 |
[% IF category == 'pages' %] |
|
|
349 |
<th>Page URL</th> |
350 |
<th class="anti-the">Page</th> |
351 |
[% ELSE %] |
352 |
<th class="anti-the">News</th> |
353 |
[% END %] |
336 |
<th class="NoSort noExport">Actions</th> |
354 |
<th class="NoSort noExport">Actions</th> |
337 |
</tr> |
355 |
</tr> |
338 |
</thead> |
356 |
</thead> |
Lines 343-349
Link Here
|
343 |
<input type="checkbox" name="ids" value="[% c.idnew | html %]" /> |
361 |
<input type="checkbox" name="ids" value="[% c.idnew | html %]" /> |
344 |
</td> |
362 |
</td> |
345 |
<td> |
363 |
<td> |
346 |
[% IF c.category == 'news' %] |
364 |
[% IF c.category == 'news' || c.category == 'pages' %] |
347 |
[% IF c.location == 'staff_and_opac' %]<span>All</span> |
365 |
[% IF c.location == 'staff_and_opac' %]<span>All</span> |
348 |
[% ELSIF c.location == 'staff_only' %]<span>Librarian interface</span> |
366 |
[% ELSIF c.location == 'staff_only' %]<span>Librarian interface</span> |
349 |
[% ELSIF c.location == 'opac_only' %]<span>OPAC</span> |
367 |
[% ELSIF c.location == 'opac_only' %]<span>OPAC</span> |
Lines 365-370
Link Here
|
365 |
<td data-order="[% c.expirationdate | html %]">[% c.expirationdate | $KohaDates %] [% IF ( c.is_expired ) %](<span class="expired">expired</span>)[% END %]</td> |
383 |
<td data-order="[% c.expirationdate | html %]">[% c.expirationdate | $KohaDates %] [% IF ( c.is_expired ) %](<span class="expired">expired</span>)[% END %]</td> |
366 |
<td>[% c.title | html %]</td> |
384 |
<td>[% c.title | html %]</td> |
367 |
<td>[% IF ( c.author) %][% INCLUDE 'patron-title.inc' patron=c.author %][% END %]</td> |
385 |
<td>[% IF ( c.author) %][% INCLUDE 'patron-title.inc' patron=c.author %][% END %]</td> |
|
|
386 |
[% IF category == 'pages' %] |
387 |
<td class="actions"> |
388 |
[% IF c.location == 'opac_only' %] |
389 |
<strong>OPAC</strong>: <a target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | uri %]" title="View on OPAC">[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | uri %]</a> |
390 |
[% ELSIF c.location == 'staff_only' %] |
391 |
<strong>Librarian interface</strong>: <a href="/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %]" title="View on librarian interface">[% Koha.Preference('staffClientBaseURL') | url %]/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %]</a> |
392 |
[% ELSIF c.location == 'staff_and_opac' %] |
393 |
<strong>OPAC</strong>: <a target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | uri %]" title="View on OPAC">[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | uri %]</a><br> |
394 |
<strong>Librarian interface</strong>: <a href="/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %]" title="View on librarian interface">[% Koha.Preference('staffClientBaseURL') | url %]/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %]</a> |
395 |
[% END %] |
396 |
</td> |
397 |
[% END %] |
368 |
<td> |
398 |
<td> |
369 |
<div class="btn-group"> |
399 |
<div class="btn-group"> |
370 |
<a class="preview_news btn btn-default btn-xs" data-number="[% loop.count | html %]"><i class="fa fa-eye" aria-hidden="true"></i> Preview content</a> |
400 |
<a class="preview_news btn btn-default btn-xs" data-number="[% loop.count | html %]"><i class="fa fa-eye" aria-hidden="true"></i> Preview content</a> |
Lines 422-428
Link Here
|
422 |
[% END %] |
452 |
[% END %] |
423 |
|
453 |
|
424 |
[% BLOCK locations_options %] |
454 |
[% BLOCK locations_options %] |
425 |
[% IF category == 'news' %] |
455 |
[% IF category == 'news' || category == 'pages' %] |
426 |
[% IF location == "staff_and_opac" %] |
456 |
[% IF location == "staff_and_opac" %] |
427 |
<option value="staff_and_opac" selected="selected">Librarian and OPAC interfaces</option> |
457 |
<option value="staff_and_opac" selected="selected">Librarian and OPAC interfaces</option> |
428 |
[% ELSE %] |
458 |
[% ELSE %] |
Lines 441-450
Link Here
|
441 |
<option value="opac_only">OPAC</option> |
471 |
<option value="opac_only">OPAC</option> |
442 |
[% END %] |
472 |
[% END %] |
443 |
|
473 |
|
444 |
[% IF location == "slip" %] |
474 |
[% UNLESS category == 'pages' %] |
445 |
<option value="slip" selected="selected">Slip</option> |
475 |
[% IF location == "slip" %] |
446 |
[% ELSE %] |
476 |
<option value="slip" selected="selected">Slip</option> |
447 |
<option value="slip">Slip</option> |
477 |
[% ELSE %] |
|
|
478 |
<option value="slip">Slip</option> |
479 |
[% END %] |
448 |
[% END %] |
480 |
[% END %] |
449 |
[% ELSE %] |
481 |
[% ELSE %] |
450 |
[% FOREACH l IN [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote' ] %] |
482 |
[% FOREACH l IN [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote' ] %] |