diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc index db6ec682d8..7c758dabf1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -200,38 +200,27 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr } function getFieldHelpURL( tag ) { - [% IF Koha.Preference('marcfielddocurl') %] - var docurl = "[% Koha.Preference('marcfielddocurl').replace('"','"') | html %]"; + [% IF Koha.Preference('MarcFieldDocURL') %] + var docurl = "[% Koha.Preference('MarcFieldDocURL').replace('"','"') | html %]"; docurl = docurl.replace("{MARC}", "[% marcflavour | html %]"); docurl = docurl.replace("{FIELD}", ""+tag); docurl = docurl.replace("{LANG}", "[% lang | html %]"); return docurl; [% ELSIF ( marcflavour == 'MARC21' ) %] if ( tag == '000' ) { - return "http://www.loc.gov/marc/bibliographic/bdleader.html"; + return "https://www.loc.gov/marc/bibliographic/bdleader.html"; } else if ( tag >= '090' && tag < '100' ) { - return "http://www.loc.gov/marc/bibliographic/bd09x.html"; + return "https://www.loc.gov/marc/bibliographic/bd09x.html"; } else if ( tag < '900' ) { - return "http://www.loc.gov/marc/bibliographic/bd" + tag + ".html"; + return "https://www.loc.gov/marc/bibliographic/bd" + tag + ".html"; } else { - return "http://www.loc.gov/marc/bibliographic/bd9xx.html"; + return "https://www.loc.gov/marc/bibliographic/bd9xx.html"; } [% ELSIF ( marcflavour == 'UNIMARC' ) %] - /* http://archive.ifla.org/VI/3/p1996-1/ is an outdated version of UNIMARC, but - seems to be the only version available that can be linked to per tag. More recent - versions of the UNIMARC standard are available on the IFLA website only as - PDFs! + /* IFLA no longer provides field-level pages for the UNIMARC format + (as at December 2024). */ - if ( tag == '000' ) { - return "http://archive.ifla.org/VI/3/p1996-1/uni.htm"; - } else { - var first = tag[0]; - var url = "http://archive.ifla.org/VI/3/p1996-1/uni" + first + ".htm#"; - if ( first == '0' ) url += "b"; - if ( first != '9' ) url += tag; - - return url; - } + return "https://www.ifla.org/g/unimarc-rg/unimarc-updates/"; [% END %] } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref index 348dbc74f1..bb9ffb4588 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref @@ -238,9 +238,16 @@ Cataloging: - pref: MarcFieldDocURL class: url - as the URL for MARC field documentation. - - Possible substitutions are {MARC} (marc flavour, eg. "MARC21" or "UNIMARC"), {FIELD} (field number, eg. "000" or "048"), {LANG} (user language, eg. "en" or "fi-FI"). - - If left empty, the format documentation on http://loc.gov (MARC21) or http://archive.ifla.org (UNIMARC) is used. - - For example http://fielddoc.example.com/?marc={MARC}&field={FIELD}&language={LANG} + - "

" + - "If left empty, the default URLs are:" + - "" + - "Placeholders available for use in the URL:" + - "" + - "Examples:" - - pref: hide_marc choices: diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index 4ffd67fbfd..b5d47b0449 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -444,8 +444,8 @@ function AutomaticLinker() { function PopupMARCFieldDoc() { let field = this.dataset.tag; - [% IF Koha.Preference('marcfielddocurl') %] - var docurl = "[% Koha.Preference('marcfielddocurl').replace('"','"') | html %]"; + [% IF Koha.Preference('MarcFieldDocURL') %] + var docurl = "[% Koha.Preference('MarcFieldDocURL').replace('"','"') | html %]"; docurl = docurl.replace("{MARC}", "[% marcflavour | html %]"); docurl = docurl.replace("{FIELD}", ""+field); docurl = docurl.replace("{LANG}", "[% lang | html %]"); @@ -485,38 +485,25 @@ $(document).ready(function(){ function _MARC21FieldDoc(field) { if(field == 0) { - window.open("http://www.loc.gov/marc/bibliographic/bdleader.html"); + window.open("https://www.loc.gov/marc/bibliographic/bdleader.html"); } else if (field >= 90 && field <= 99 ){ - window.open("http://www.loc.gov/marc/bibliographic/bd09x.html"); + window.open("https://www.loc.gov/marc/bibliographic/bd09x.html"); } else if (field >= 590 && field <= 599 ){ - window.open("http://www.loc.gov/marc/bibliographic/bd59x.html"); + window.open("https://www.loc.gov/marc/bibliographic/bd59x.html"); } else if (field >= 690 && field <= 699 ){ - window.open("http://www.loc.gov/marc/bibliographic/bd69x.html"); + window.open("https://www.loc.gov/marc/bibliographic/bd69x.html"); } else if (field < 900) { - window.open("http://www.loc.gov/marc/bibliographic/bd" + ("000"+field).slice(-3) + ".html"); + window.open("https://www.loc.gov/marc/bibliographic/bd" + ("000"+field).slice(-3) + ".html"); } else { - window.open("http://www.loc.gov/marc/bibliographic/bd9xx.html"); + window.open("https://www.loc.gov/marc/bibliographic/bd9xx.html"); } } function _UNIMARCFieldDoc(field) { - /* http://archive.ifla.org/VI/3/p1996-1/ is an outdated version of UNIMARC, but - seems to be the only version available that can be linked to per tag. More recent - versions of the UNIMARC standard are available on the IFLA website only as - PDFs! + /* IFLA no longer provides field-level pages for the UNIMARC format + (as at December 2024). */ - var url; - if (field == 0) { - url = "http://archive.ifla.org/VI/3/p1996-1/uni.htm"; - } else { - var first = field.substring(0,1); - url = "http://archive.ifla.org/VI/3/p1996-1/uni" + first + ".htm#"; - if (first == 0) url = url + "b"; - url = first == 9 - ? "http://archive.ifla.org/VI/3/p1996-1/uni9.htm" - : url + field; - } - window.open(url); + window.open("https://www.ifla.org/g/unimarc-rg/unimarc-updates/"); } /* @@ -1082,7 +1069,7 @@ $(document).ready(function(){ [% innerloo.tag | html %] [% ELSE %] [% innerloo.tag | html %] -  ? +  [?]   [% END %] [% IF ( innerloo.fixedfield ) %] @@ -1117,10 +1104,10 @@ $(document).ready(function(){ size="1" maxlength="1" value="[% innerloo.indicator2 | html %]" /> - [% END # /IF innerloo.fixedfield %] - + [% END # /IF innerloo.fixedfield %] [% UNLESS advancedMARCEditor %] - [% innerloo.tag_lib | html %] +   [% innerloo.tag_lib | html %] [% END %]