[% 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 %] [% WRAPPER 'header.inc' %] [% INCLUDE 'cat-search.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% END %] [% 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[% ELSIF category == 'pages' %]Pages[% ELSE %]HTML customizations[% END %])

[% END %]
[% IF category == 'news' %] Cancel [% ELSIF category == 'pages' %] Cancel [% ELSE %] Cancel [% END %]
  1. [% UNLESS languages.size %]
  2. [% IF category == 'news' %] Required [% ELSE %] [% END %]
  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[% ELSIF category == 'pages' %]Pages[% ELSE %]HTML customizations[% END %])

See News HTML customizations Pages [% IF ( CAN_user_parameters_manage_sysprefs ) %] OPACUserJS OPACUserCSS [% END %] [% IF additional_contents.count %]
[% IF category == 'pages' %] [% ELSE %] [% END %] [% FOREACH c IN additional_contents%] [% IF ( c.is_expired ) %][% ELSE %][% END %] [% IF category == 'pages' %] [% END %] [% END %]
  Location Library Number Publication date Expiration date Title AuthorPage URL PageNewsActions
[% IF c.category == 'news' || c.category == 'pages' %] [% 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 %] [% IF c.location == 'opac_only' OR c.location == 'staff_and_opac' %] OPAC: Default OR Current language [% END %] [% IF c.location == 'staff_only' OR c.location == 'staff_and_opac' %] [% IF c.location == 'staff_and_opac' %]
[% END %] Librarian interface: Default OR Current language [% END %]
Edit
[% ELSE %]
There are no additional contents.
[% END %] [% END %] [% BLOCK locations_options %] [% IF category == 'news' || category == 'pages' %] [% IF location == "staff_and_opac" %] [% ELSE %] [% END %] [% IF location == "staff_only" %] [% ELSE %] [% END %] [% IF location == "opac_only" %] [% ELSE %] [% END %] [% UNLESS category == 'pages' %] [% IF location == "slip" %] [% ELSE %] [% END %] [% END %] [% ELSE %] [% SET available_options = [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo' ] %] [% FOREACH l IN available_options.sort %] [% 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' %]