Lines 462-481
function PopupMARCFieldDoc(field) {
Link Here
|
462 |
} |
462 |
} |
463 |
} |
463 |
} |
464 |
|
464 |
|
465 |
function PopupMARCFieldDoc(field) { |
|
|
466 |
[% IF Koha.Preference('marcfielddocurl') %] |
467 |
var docurl = "[% Koha.Preference('marcfielddocurl').replace('"','"') | html %]"; |
468 |
docurl = docurl.replace("{MARC}", "[% marcflavour | html %]"); |
469 |
docurl = docurl.replace("{FIELD}", ""+field); |
470 |
docurl = docurl.replace("{LANG}", "[% lang | html %]"); |
471 |
window.open(docurl); |
472 |
[% ELSIF ( marcflavour == 'MARC21' ) %] |
473 |
_MARC21FieldDoc(field); |
474 |
[% ELSIF ( marcflavour == 'UNIMARC' ) %] |
475 |
_UNIMARCFieldDoc(field); |
476 |
[% END %] |
477 |
} |
478 |
|
479 |
function _MARC21FieldDoc(field) { |
465 |
function _MARC21FieldDoc(field) { |
480 |
if(field == 0) { |
466 |
if(field == 0) { |
481 |
window.open("http://www.loc.gov/marc/bibliographic/bdleader.html"); |
467 |
window.open("http://www.loc.gov/marc/bibliographic/bdleader.html"); |
482 |
- |
|
|