[% USE Koha %]
-<script type="text/javascript">//<![CDATA[
- $(document).ready(function() {
- var path = location.pathname.substring(1);
- if (path == "cgi-bin/koha/admin/marctagstructure.pl" || path == "cgi-bin/koha/admin/marc_subfields_structure.pl") {
- $('#navmenulist a[href$="/cgi-bin/koha/admin/biblio_framework.pl"]').css('font-weight','bold');
- } else if (path == "cgi-bin/koha/admin/auth_tag_structure.pl" || path == "cgi-bin/koha/admin/auth_subfields_structure.pl") {
- $('#navmenulist a[href$="/cgi-bin/koha/admin/authtypes.pl"]').css('font-weight','bold');
- } else if (path == "cgi-bin/koha/admin/oai_set_mappings.pl") {
- $('#navmenulist a[href$="/cgi-bin/koha/admin/oai_sets.pl"]').css('font-weight','bold');
- } else {
- $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold');
- }
- });
-//]]>
-</script>
+
<div id="navmenu">
<div id="navmenulist">
<h5>System preferences</h5>
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration › Authority MARC subfield structure</title>
[% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript">
-//<![CDATA[
- $(document).ready(function() {
- $('#subfieldtabs').tabs();
- });
-//]]>
-</script>
</head>
+
<body id="admin_auth_subfields_structure" class="admin">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'prefs-admin-search.inc' %]
[% INCLUDE 'admin-menu.inc' %]
</div>
</div>
+
+[% MACRO jsinclude BLOCK %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
+ <script type="text/javascript">
+ $(document).ready(function() {
+ $('#subfieldtabs').tabs();
+ });
+ </script>
+[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
[% USE AuthorisedValues %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration › Authority MARC framework [% IF ( add_form ) %][% IF ( use_heading_flags_p ) %]
[% IF ( heading_modify_tag_p ) %]› [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] › Modify tag[% END %]
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
-[% INCLUDE 'datatables.inc' %]
-<script type="text/javascript">
-//<![CDATA[
- $(document).ready(function() {
- $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
- "aoColumnDefs": [
- { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
- ],
- "sPaginationType": "four_button"
- }));
- });
-//]]>
-</script>
</head>
+
<body id="admin_auth_tag_structure" class="admin">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'prefs-admin-search.inc' %]
[% INCLUDE 'admin-menu.inc' %]
</div>
</div>
+
+[% MACRO jsinclude BLOCK %]
+ [% INCLUDE 'datatables.inc' %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
+ <script type="text/javascript">
+ $(document).ready(function() {
+ $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
+ "aoColumnDefs": [
+ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
+ ],
+ "sPaginationType": "four_button"
+ }));
+ });
+ </script>
+[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration › Authority types
[% IF op == 'add_form' %]
</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
-[% INCLUDE 'datatables.inc' %]
-<script type="text/javascript">
-//<![CDATA[
- $(document).ready(function() {
- $("#authtypes").dataTable($.extend(true, {}, dataTablesDefaults, {
- "aoColumnDefs": [
- { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
- ],
- "sPaginationType": "four_button"
- }));
- $("#authtypecode").on("blur",function(){
- toUC(this);
- });
- });
-//]]>
-</script>
</head>
<body id="admin_authtypes" class="admin">
[% INCLUDE 'admin-menu.inc' %]
</div>
</div>
+
+[% MACRO jsinclude BLOCK %]
+ [% INCLUDE 'datatables.inc' %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
+ <script type="text/javascript">
+ $(document).ready(function() {
+ $("#authtypes").dataTable($.extend(true, {}, dataTablesDefaults, {
+ "aoColumnDefs": [
+ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
+ ],
+ "sPaginationType": "four_button"
+ }));
+ $("#authtypecode").on("blur",function(){
+ toUC(this);
+ });
+ });
+ </script>
+[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration › MARC frameworks
[% IF op == 'add_form' %]
</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
-[% INCLUDE 'datatables.inc' %]
-<script type="text/javascript">
- /* Set some variable needed in biblio_framework.js */
- var MSG_IMPORT_ERROR = _("Error importing the framework");
- var MSG_SELECT_FILE_FORMAT = _("Please select a CSV (.csv), ODS (.ods) or XML (.xml) spreadsheet file.");
- var MSG_OVERWRITE_WARNING = _("Do you really want to import the framework fields and subfields? This will overwrite the current configuration. For safety reasons please use the export option to make a backup");
- var MSG_IMPORTING_TO_FRAMEWORK = _("Importing to framework: %s. Importing from file: %s.");
- var template_path = "[% interface %]/[% theme %]";
-</script>
-<script type="text/javascript" src="[% interface %]/[% theme %]/js/biblio_framework.js"></script>
-
</head>
+
<body id="admin_biblio_framework" class="admin">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'prefs-admin-search.inc' %]
[% INCLUDE 'admin-menu.inc' %]
</div>
</div>
+
+[% MACRO jsinclude BLOCK %]
+ [% INCLUDE 'datatables.inc' %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
+ <script type="text/javascript">
+ /* Set some variable needed in biblio_framework.js */
+ var MSG_IMPORT_ERROR = _("Error importing the framework");
+ var MSG_SELECT_FILE_FORMAT = _("Please select a CSV (.csv), ODS (.ods) or XML (.xml) spreadsheet file.");
+ var MSG_OVERWRITE_WARNING = _("Do you really want to import the framework fields and subfields? This will overwrite the current configuration. For safety reasons please use the export option to make a backup");
+ var MSG_IMPORTING_TO_FRAMEWORK = _("Importing to framework: %s. Importing from file: %s.");
+ var template_path = "[% interface %]/[% theme %]";
+ </script>
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/biblio_framework.js"></script>
+[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration › MARC check
[% IF ( total ) %] :[% total %] errors found[% ELSE %] : Configuration OK![% END %]</title>
[% INCLUDE 'admin-menu.inc' %]
</div>
</div>
+
+[% MACRO jsinclude BLOCK %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
+[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration › Keyword to MARC mapping</title>
[% INCLUDE 'doc-head-close.inc' %]
-
-<script type="text/javascript">
-//<![CDATA[
-$(document).ready(function() {
- $('#selectframework').find("input:submit").hide();
- $('#framework').change(function() {
- $('#selectframework').submit();
- });
-});
-//]]>
-</script>
-
-
</head>
<body id="admin_fieldmapping" class="admin">
[% INCLUDE 'admin-menu.inc' %]
</div>
+[% MACRO jsinclude BLOCK %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
+ <script type="text/javascript">
+ $(document).ready(function() {
+ $('#selectframework').find("input:submit").hide();
+ $('#framework').change(function() {
+ $('#selectframework').submit();
+ });
+ });
+ </script>
+[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration › Koha to MARC mapping</title>
-
[% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript">
-//<![CDATA[
-$(document).ready(function() {
-});
-
-function AddFld(kohafield) {
- var fieldstr = prompt( _("Adding a mapping for: ") + kohafield + ".\n" + _("Please enter field tag and subfield code, separated by a comma. (For control fields: add '@' as subfield code.)\nThe change will be applied immediately.") );
- var temp = fieldstr.split(',');
- if( temp.length == 2 ) {
- $('#add_field').val( kohafield+','+fieldstr );
- $('#koha2marc').submit();
- } else {
- alert( "Invalid input. Enter something like: 245,a" );
- }
-}
-
-function RemFld(tagfield, subfield ) {
- if( confirm( _("Mapping will be removed for: ") + tagfield + subfield + ".\n" + _("The change will be applied immediately." ))) {
- $('#remove_field').val(tagfield+','+subfield);
- $('#koha2marc').submit();
- }
-}
-//]]>
-</script>
</head>
<body id="admin_koha2marclinks" class="admin">
</div>
</div>
+
+[% MACRO jsinclude BLOCK %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
+ <script type="text/javascript">
+ function AddFld(kohafield) {
+ var fieldstr = prompt( _("Adding a mapping for: ") + kohafield + ".\n" + _("Please enter field tag and subfield code, separated by a comma. (For control fields: add '@' as subfield code.)\nThe change will be applied immediately.") );
+ var temp = fieldstr.split(',');
+ if( temp.length == 2 ) {
+ $('#add_field').val( kohafield+','+fieldstr );
+ $('#koha2marc').submit();
+ } else {
+ alert( "Invalid input. Enter something like: 245,a" );
+ }
+ }
+
+ function RemFld(tagfield, subfield ) {
+ if( confirm( _("Mapping will be removed for: ") + tagfield + subfield + ".\n" + _("The change will be applied immediately." ))) {
+ $('#remove_field').val(tagfield+','+subfield);
+ $('#koha2marc').submit();
+ }
+ }
+ </script>
+[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration ›[% IF ( add_form ) %][% IF ( use_heading_flags_p ) %][% IF ( heading_edit_subfields_p ) %] MARC subfield structure › Edit MARC subfields constraints[% END %][% ELSE %] MARC subfield structure › [% action %][% END %][% END %]
[% IF ( delete_confirm ) %] MARC subfield structure › Confirm deletion of subfield [% tagsubfield %][% END %][% IF ( delete_confirmed ) %] MARC subfield structure › Subfield deleted[% END %][% IF ( else ) %]MARC subfield structure[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" src="[% interface %]/[% theme %]/js/marc_subfields_structure.js"></script>
</head>
+
<body id="admin_marc_subfields_structure" class="admin">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'prefs-admin-search.inc' %]
[% INCLUDE 'admin-menu.inc' %]
</div>
</div>
+
+[% MACRO jsinclude BLOCK %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/marc_subfields_structure.js"></script>
+[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
[% USE AuthorisedValues %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration ›
[% IF ( add_form ) %]MARC frameworks › [% action %] [% searchfield %][% END %]
[% IF ( else ) %]MARC frameworks[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
-[% INCLUDE 'datatables.inc' %]
-<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min.js"></script>
-
-<script type="text/javascript">
-//<![CDATA[
-
-$(document).ready(function() {
- $("#table_marctagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
- "aoColumnDefs": [
- { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
- ],
- "sPaginationType": "four_button"
- }));
- $("#select_display").on("change",function(){
- var checked = $(this).prop("checked") ? 1: 0;
- $.cookie('marctagstructure_selectdisplay', checked);
- this.form.submit();
- });
-});
-
-//]]>
-</script>
</head>
+
<body id="admin_marctagstructure" class="admin">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'prefs-admin-search.inc' %]
[% INCLUDE 'admin-menu.inc' %]
</div>
</div>
+
+[% MACRO jsinclude BLOCK %]
+ [% INCLUDE 'datatables.inc' %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
+ <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min.js"></script>
+ <script type="text/javascript">
+ $(document).ready(function() {
+ $("#table_marctagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
+ "aoColumnDefs": [
+ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
+ ],
+ "sPaginationType": "four_button"
+ }));
+ $("#select_display").on("change",function(){
+ var checked = $(this).prop("checked") ? 1: 0;
+ $.cookie('marctagstructure_selectdisplay', checked);
+ this.form.submit();
+ });
+ });
+ </script>
+[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
--- /dev/null
+$(document).ready(function() {
+ var path = location.pathname.substring(1);
+ if (path == "cgi-bin/koha/admin/marctagstructure.pl" || path == "cgi-bin/koha/admin/marc_subfields_structure.pl") {
+ $('#navmenulist a[href$="/cgi-bin/koha/admin/biblio_framework.pl"]').css('font-weight','bold');
+ } else if (path == "cgi-bin/koha/admin/auth_tag_structure.pl" || path == "cgi-bin/koha/admin/auth_subfields_structure.pl") {
+ $('#navmenulist a[href$="/cgi-bin/koha/admin/authtypes.pl"]').css('font-weight','bold');
+ } else if (path == "cgi-bin/koha/admin/oai_set_mappings.pl") {
+ $('#navmenulist a[href$="/cgi-bin/koha/admin/oai_sets.pl"]').css('font-weight','bold');
+ } else {
+ $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold');
+ }
+});