Lines 435-441
function AutomaticLinker() {
Link Here
|
435 |
} |
435 |
} |
436 |
|
436 |
|
437 |
|
437 |
|
438 |
function PopupMARCFieldDoc(field) { |
438 |
function PopupMARCFieldDoc() { |
|
|
439 |
let field = this.dataset.tag; |
439 |
[% IF Koha.Preference('marcfielddocurl') %] |
440 |
[% IF Koha.Preference('marcfielddocurl') %] |
440 |
var docurl = "[% Koha.Preference('marcfielddocurl').replace('"','"') | html %]"; |
441 |
var docurl = "[% Koha.Preference('marcfielddocurl').replace('"','"') | html %]"; |
441 |
docurl = docurl.replace("{MARC}", "[% marcflavour | html %]"); |
442 |
docurl = docurl.replace("{MARC}", "[% marcflavour | html %]"); |
Lines 447-453
function PopupMARCFieldDoc(field) {
Link Here
|
447 |
[% ELSIF ( marcflavour == 'UNIMARC' ) %] |
448 |
[% ELSIF ( marcflavour == 'UNIMARC' ) %] |
448 |
_UNIMARCFieldDoc(field); |
449 |
_UNIMARCFieldDoc(field); |
449 |
[% END %] |
450 |
[% END %] |
|
|
451 |
return false; |
450 |
} |
452 |
} |
|
|
453 |
[%# Attach to body, so that cloned nodes will still have the event listener %] |
454 |
$(document).ready(function(){ |
455 |
$('body').on('click','.marcdocs',PopupMARCFieldDoc); |
456 |
}); |
457 |
|
451 |
function confirmnotdup(redirect){ |
458 |
function confirmnotdup(redirect){ |
452 |
$("#confirm_not_duplicate").attr("value","1"); |
459 |
$("#confirm_not_duplicate").attr("value","1"); |
453 |
$("#redirect").attr("value",redirect); |
460 |
$("#redirect").attr("value",redirect); |
Lines 1040-1046
function PopupMARCFieldDoc(field) {
Link Here
|
1040 |
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to expand this tag" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;">[% innerloo.tag | html %]</a> |
1047 |
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to expand this tag" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;">[% innerloo.tag | html %]</a> |
1041 |
[% ELSE %] |
1048 |
[% ELSE %] |
1042 |
<span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span> |
1049 |
<span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span> |
1043 |
<a href="#" class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag | html %]'); return false;"> ?</a> |
1050 |
<a href="#" class="marcdocs" data-tag="[% innerloo.tag | html %]"> ?</a> |
1044 |
[% END %] |
1051 |
[% END %] |
1045 |
|
1052 |
|
1046 |
[% IF ( innerloo.fixedfield ) %] |
1053 |
[% IF ( innerloo.fixedfield ) %] |
1047 |
- |
|
|