Lines 425-432
Link Here
|
425 |
|
425 |
|
426 |
function PopupMARCFieldDoc() { |
426 |
function PopupMARCFieldDoc() { |
427 |
let field = this.dataset.tag; |
427 |
let field = this.dataset.tag; |
428 |
[% IF Koha.Preference('marcfielddocurl') %] |
428 |
[% IF Koha.Preference('MarcFieldDocURL') %] |
429 |
var docurl = "[% Koha.Preference('marcfielddocurl').replace('"','"') | html %]"; |
429 |
var docurl = "[% Koha.Preference('MarcFieldDocURL').replace('"','"') | html %]"; |
430 |
docurl = docurl.replace("{MARC}", "[% marcflavour | html %]"); |
430 |
docurl = docurl.replace("{MARC}", "[% marcflavour | html %]"); |
431 |
docurl = docurl.replace("{FIELD}", ""+field); |
431 |
docurl = docurl.replace("{FIELD}", ""+field); |
432 |
docurl = docurl.replace("{LANG}", "[% lang | html %]"); |
432 |
docurl = docurl.replace("{LANG}", "[% lang | html %]"); |
Lines 466-503
Link Here
|
466 |
|
466 |
|
467 |
function _MARC21FieldDoc(field) { |
467 |
function _MARC21FieldDoc(field) { |
468 |
if(field == 0) { |
468 |
if(field == 0) { |
469 |
window.open("http://www.loc.gov/marc/bibliographic/bdleader.html"); |
469 |
window.open("https://www.loc.gov/marc/bibliographic/bdleader.html"); |
470 |
} else if (field >= 90 && field <= 99 ){ |
470 |
} else if (field >= 90 && field <= 99 ){ |
471 |
window.open("http://www.loc.gov/marc/bibliographic/bd09x.html"); |
471 |
window.open("https://www.loc.gov/marc/bibliographic/bd09x.html"); |
472 |
} else if (field >= 590 && field <= 599 ){ |
472 |
} else if (field >= 590 && field <= 599 ){ |
473 |
window.open("http://www.loc.gov/marc/bibliographic/bd59x.html"); |
473 |
window.open("https://www.loc.gov/marc/bibliographic/bd59x.html"); |
474 |
} else if (field >= 690 && field <= 699 ){ |
474 |
} else if (field >= 690 && field <= 699 ){ |
475 |
window.open("http://www.loc.gov/marc/bibliographic/bd69x.html"); |
475 |
window.open("https://www.loc.gov/marc/bibliographic/bd69x.html"); |
476 |
} else if (field < 900) { |
476 |
} else if (field < 900) { |
477 |
window.open("http://www.loc.gov/marc/bibliographic/bd" + ("000"+field).slice(-3) + ".html"); |
477 |
window.open("https://www.loc.gov/marc/bibliographic/bd" + ("000"+field).slice(-3) + ".html"); |
478 |
} else { |
478 |
} else { |
479 |
window.open("http://www.loc.gov/marc/bibliographic/bd9xx.html"); |
479 |
window.open("https://www.loc.gov/marc/bibliographic/bd9xx.html"); |
480 |
} |
480 |
} |
481 |
} |
481 |
} |
482 |
|
482 |
|
483 |
function _UNIMARCFieldDoc(field) { |
483 |
function _UNIMARCFieldDoc(field) { |
484 |
/* http://archive.ifla.org/VI/3/p1996-1/ is an outdated version of UNIMARC, but |
484 |
/* IFLA no longer provides field-level pages for the UNIMARC format |
485 |
seems to be the only version available that can be linked to per tag. More recent |
485 |
(as at December 2024). |
486 |
versions of the UNIMARC standard are available on the IFLA website only as |
|
|
487 |
PDFs! |
488 |
*/ |
486 |
*/ |
489 |
var url; |
487 |
window.open("https://www.ifla.org/g/unimarc-rg/unimarc-updates/"); |
490 |
if (field == 0) { |
|
|
491 |
url = "http://archive.ifla.org/VI/3/p1996-1/uni.htm"; |
492 |
} else { |
493 |
var first = field.substring(0,1); |
494 |
url = "http://archive.ifla.org/VI/3/p1996-1/uni" + first + ".htm#"; |
495 |
if (first == 0) url = url + "b"; |
496 |
url = first == 9 |
497 |
? "http://archive.ifla.org/VI/3/p1996-1/uni9.htm" |
498 |
: url + field; |
499 |
} |
500 |
window.open(url); |
501 |
} |
488 |
} |
502 |
|
489 |
|
503 |
/* |
490 |
/* |
Lines 1068-1074
Link Here
|
1068 |
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to expand this tag" data-field_id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">[% innerloo.tag | html %]</a> |
1055 |
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to expand this tag" data-field_id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">[% innerloo.tag | html %]</a> |
1069 |
[% ELSE %] |
1056 |
[% ELSE %] |
1070 |
<span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span> |
1057 |
<span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span> |
1071 |
<a href="#" class="marcdocs" data-tag="[% innerloo.tag | html %]"> ?</a> |
1058 |
<a href="#" class="marcdocs" data-tag="[% innerloo.tag | html %]" title="Show help for this tag">[?]</a> |
1072 |
[% END %] |
1059 |
[% END %] |
1073 |
|
1060 |
|
1074 |
[% IF ( innerloo.fixedfield ) %] |
1061 |
[% IF ( innerloo.fixedfield ) %] |
Lines 1103-1112
Link Here
|
1103 |
size="1" |
1090 |
size="1" |
1104 |
maxlength="1" |
1091 |
maxlength="1" |
1105 |
value="[% innerloo.indicator2 | html %]" /> |
1092 |
value="[% innerloo.indicator2 | html %]" /> |
1106 |
[% END # /IF innerloo.fixedfield %] - |
1093 |
[% END # /IF innerloo.fixedfield %] |
1107 |
|
1094 |
|
1108 |
[% UNLESS advancedMARCEditor %] |
1095 |
[% UNLESS advancedMARCEditor %] |
1109 |
<a href="#" tabindex="1" class="expandfield" data-field_id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]" title="Click to expand this tag">[% innerloo.tag_lib | html %]</a> |
1096 |
<a href="#" tabindex="1" class="expandfield" data-field_id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]" title="Click to expand this tag">[% innerloo.tag_lib | html %]</a> |
1110 |
[% END %] |
1097 |
[% END %] |
1111 |
|
1098 |
|
1112 |
<span class="field_controls"> |
1099 |
<span class="field_controls"> |
1113 |
- |
|
|