[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE KohaDates %] [% USE Branches %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% BLOCK page_heading %] [% IF additional_content.id %] [% IF category == 'news' %] [% t("Modify news item") | html %] [% ELSIF category == 'pages' %] [% t("Modify page") | html %] [% ELSE %] [% t("Modify HTML customization") | html %] [% END %] [% ELSE %] [% IF category == 'news' %] [% t("New news item") | html %] [% ELSIF category == 'pages' %] [% t("New page") | html %] [% ELSE %] [% t("New HTML customization") | html %] [% END %] [% END %] [% END %] [% BLOCK page_section %] [% IF category == 'news' %] [% t("News") | html %] [% ELSIF category == 'pages' %] [% t("Pages") | html %] [% ELSE %] [% t("HTML customizations") | html %] [% END %] [% END %] [% FILTER collapse %] [% IF op == 'add_form' %] [% PROCESS page_heading %] › [% END %] [% PROCESS page_section %] › [% t("Additional content") | html %] › [% t("Tools") | html %] › [% t("Koha") | html %] [% END %] [% 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' %] [% WRAPPER breadcrumbs %] [% WRAPPER breadcrumb_item %] Tools [% END %] [% WRAPPER breadcrumb_item %] Additional content [% END %] [% IF op == 'add_form' %] [% WRAPPER breadcrumb_item %] [% IF category == 'news' %] News [% ELSIF category == 'pages' %] Pages [% ELSE %] HTML customizations [% END %] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% PROCESS page_heading %] [% END %] [% ELSE %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% PROCESS page_section %] [% END %] [% END %] [% END #/ WRAPPER breadcrumbs %] [% END #/ WRAPPER sub-header.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 for details. [% CASE 'error_on_delete' %] An error occurred when deleting this content. Check the logs for details. [% 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 %]

[% PROCESS page_heading %]

[% IF category == 'news' %] Cancel [% ELSIF category == 'pages' %] Cancel [% ELSE %] Cancel [% END %]
[% INCLUDE 'csrf-token.inc' %]
  1. [% INCLUDE 'html-customization-help.inc' %]
  2. [% UNLESS languages.size %]
  3. [% IF category == 'news' %] Required [% ELSE %] [% END %]
  4. [% END %]
  5. [% INCLUDE 'date-format.inc' %]
  6. [% INCLUDE 'date-format.inc' %] [% IF category == 'news' %]
    News will still be accessible by direct URL if expired. [% END %]
  7. [% UNLESS category == 'pages' %]
  8. [% IF ( additional_content.number ) %] [% ELSE %] [% END %]
  9. [% END %]
[% IF languages.size %] [% WRAPPER tabs id= "tabs" %] [% WRAPPER tabs_nav %] [% FOR language IN languages %] [% IF language.lang == 'default' %] [% WRAPPER tab_item tabname= "lang_default" %] Default [% END %] [% ELSE %] [% WRAPPER tab_item tabname= "lang_${language.lang}" %] [% language.description | html %] [% END %] [% END %] [% END %] [% END # /WRAPPER tabs_nav %] [% WRAPPER tab_panels %] [% FOR language IN languages %] [% SET translated_content = translated_contents.item(language.lang) %] [% WRAPPER tab_panel tabname="lang_${language.lang}" %]
[% END # /WRAPPER tab_panel#lang %] [% END # /FOR language %] [% END # /WRAPPER tab_panels %] [% END # /WRAPPER tabs %] [% ELSE %]
[% END # /IF languages.size %]
[% END %] [% BLOCK list %]
New entry

Additional content: [% IF category == 'news' %] [% t("News") | html %] [% ELSIF category == 'pages' %] [% t("Pages") | html %] [% ELSE %] [% t("HTML customizations") | html %] [% 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%] [% SET default_localization = c.default_localization %] [% 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' %]Staff 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 %] [% default_localization.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 [% END %] [% IF c.location == 'staff_only' OR c.location == 'staff_and_opac' %] [% IF c.location == 'staff_and_opac' %]
[% END %] Staff [% END %]
Edit
[% INCLUDE 'csrf-token.inc' %]
[% 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 opac_available_options = [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo', 'OpacMaintenanceNotice', 'OPACResultsSidebar', 'OpacSuppressionMessage', 'SCOMainUserBlock', 'SelfCheckInMainUserBlock', 'SelfCheckHelpMessage', 'CatalogConcernHelp', 'CatalogConcernTemplate', 'CookieConsentBar', 'CookieConsentPopup', 'PatronSelfRegistrationAdditionalInstructions' ] %] [% FOREACH l IN opac_available_options.sort %] [% IF l == location %] [% ELSE %] [% END %] [% END %] [% SET staff_available_options = [ 'StaffAcquisitionsHome', 'StaffAuthoritiesHome', 'StaffCataloguingHome', 'StaffListsHome', 'StaffPatronsHome', 'StaffPOSHome', 'StaffSerialsHome' ] %] [% FOREACH l IN staff_available_options.sort %] [% IF l == location %] [% ELSE %] [% END %] [% END %] [% END %] [% END %] [% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'select2.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' %]