[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE KohaDates %] [% USE Branches %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Additional contents › Tools › Koha [% INCLUDE 'doc-head-close.inc' %] [% IF ( wysiwyg ) %] [% SET editmode = "wysiwyg" %] [% ELSE %] [% SET editmode = "text" %] [% Asset.css("lib/codemirror/codemirror.css") | $raw %] [% Asset.css("lib/codemirror/lint.min.css") | $raw %] [% END %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] [% IF op == 'add_form' %]
[% ELSE %]
[% END %]
[% FOR m IN messages %]
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this content. Perhaps it already exists. [% CASE 'error_on_insert' %] An error occurred when adding this content. Check the logs [% CASE 'error_on_delete' %] An error occurred when deleting this content. Check the logs. [% CASE 'success_on_update' %] Content updated successfully. [% CASE 'success_on_insert' %] Content added successfully. [% CASE 'success_on_delete' %] Content deleted successfully. [% CASE %] [% m.code | html %] [% END %]
[% END %] [% IF op == 'add_form' %] [% PROCESS add_form %] [% ELSE %] [% PROCESS list %] [% END %]
[% IF op != 'add_form' %]
[% END %]
[% BLOCK add_form %] [% IF additional_content %]

Modify an additional content

[% ELSE %]

New additional content ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])

[% END %]
[% IF category == 'news' %] Cancel [% ELSE %] Cancel [% END %]
  1. [% UNLESS languages.size %]
  2. Required
  3. [% END %]
  4. [% INCLUDE 'date-format.inc' %]
  5. [% INCLUDE 'date-format.inc' %] [% IF category == 'news' %]
    News will still be accessible by direct URL if expired. [% END %]
  6. [% IF ( additional_content.number ) %] [% ELSE %] [% END %]
[% IF languages.size %]
[% FOR language IN languages %]
[% END %]
[% ELSE %]
[% END %]
[% END %] [% BLOCK list %]
New entry

Additional contents ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])

[% IF category == 'news' %] See HTML customizations [% ELSE %] See News [% END %] [% IF additional_contents.count %]
[% FOREACH c IN additional_contents%] [% IF ( c.is_expired ) %][% ELSE %][% END %] [% END %]
  Location Library Number Publication date Expiration date Title Author News Actions
[% IF c.category == 'news' %] [% IF c.location == 'staff_and_opac' %]All [% ELSIF c.location == 'staff_only' %]Librarian interface [% ELSIF c.location == 'opac_only' %]OPAC [% ELSIF c.location == 'slip' %]Slip [% ELSE %]Unknown ('[% location | html %]') [% END %] [% ELSE %] [% c.location | html %] [% END %] [% IF ( c.branchcode == "" ) -%] All libraries [% ELSE %][% c.library.branchname | html %] [% END %] [% c.number | html %] [% c.published_on | $KohaDates %] [% c.expirationdate | $KohaDates %] [% IF ( c.is_expired ) %](expired)[% END %] [% c.title | html %] [% IF ( c.author) %][% INCLUDE 'patron-title.inc' patron=c.author %][% END %]
Edit
[% ELSE %]
There are no additional contents.
[% END %] [% END %] [% BLOCK locations_options %] [% IF category == 'news' %] [% IF location == "staff_and_opac" %] [% ELSE %] [% END %] [% IF location == "staff_only" %] [% ELSE %] [% END %] [% IF location == "opac_only" %] [% ELSE %] [% END %] [% IF location == "slip" %] [% ELSE %] [% END %] [% ELSE %] [% FOREACH l IN [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText' ] %] [% IF l == location %] [% ELSE %] [% END %] [% END %] [% END %] [% END %] [% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] [% Asset.js("js/tools-menu.js") | $raw %] [% Asset.js("lib/hc-sticky.js") | $raw %] [% IF additional_contents.count %] [% INCLUDE 'datatables.inc' %] [% ELSE %] [% END %] [% UNLESS ( wysiwyg ) %] [% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %] [% Asset.js( "lib/codemirror/xml.min.js" ) | $raw %] [% Asset.js( "lib/codemirror/lint.min.js" ) | $raw %] [% Asset.js( "lib/linters/htmlhint.min.js" ) | $raw %] [% Asset.js( "lib/codemirror/html-lint.min.js" ) | $raw %] [% ELSE %] [% Asset.js("lib/tiny_mce/tinymce.min.js") | $raw %] [% INCLUDE 'str/tinymce_i18n.inc' %] [% END # /UNLESS wysiwyg %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]