Lines 108-118
function PopupZ3950() {
Link Here
|
108 |
} |
108 |
} |
109 |
} |
109 |
} |
110 |
|
110 |
|
111 |
function PopupMARCFieldDoc(field, blocknumber) { |
111 |
function PopupMARCFieldDoc(field) { |
112 |
[% IF ( marcflavour == 'MARC21' ) %] |
112 |
[% IF ( marcflavour == 'MARC21' ) %] |
113 |
_MARC21FieldDoc(field); |
113 |
_MARC21FieldDoc(field); |
114 |
[% ELSIF ( marcflavour == 'UNIMARC' ) %] |
114 |
[% ELSIF ( marcflavour == 'UNIMARC' ) %] |
115 |
_UNIMARCFieldDoc(field, blocknumber); |
115 |
_UNIMARCFieldDoc(field); |
116 |
[% END %] |
116 |
[% END %] |
117 |
} |
117 |
} |
118 |
|
118 |
|
Lines 126-146
function _MARC21FieldDoc(field) {
Link Here
|
126 |
} |
126 |
} |
127 |
} |
127 |
} |
128 |
|
128 |
|
129 |
function _UNIMARCFieldDoc(field, blocknumber) { |
129 |
function _UNIMARCFieldDoc(field) { |
130 |
/* http://archive.ifla.org/VI/3/p1996-1/ is an outdated version of UNIMARC, but |
130 |
/* http://archive.ifla.org/VI/3/p1996-1/ is an outdated version of UNIMARC, but |
131 |
seems to be the only version available that can be linked to per tag. More recent |
131 |
seems to be the only version available that can be linked to per tag. More recent |
132 |
versions of the UNIMARC standard are available on the IFLA website only as |
132 |
versions of the UNIMARC standard are available on the IFLA website only as |
133 |
PDFs! |
133 |
PDFs! |
134 |
*/ |
134 |
*/ |
135 |
if(field == 0) { |
135 |
var url; |
136 |
window.open("http://archive.ifla.org/VI/3/p1996-1/uni.htm"); |
136 |
if (field == 0) { |
137 |
} else if (field < 100) { |
137 |
url = "http://archive.ifla.org/VI/3/p1996-1/uni.htm"; |
138 |
window.open("http://archive.ifla.org/VI/3/p1996-1/uni"+blocknumber+".htm#b" + ("000"+field).slice(-3)); |
|
|
139 |
} else if (field < 900) { |
140 |
window.open("http://archive.ifla.org/VI/3/p1996-1/uni"+blocknumber+".htm#" + ("000"+field).slice(-3)); |
141 |
} else { |
138 |
} else { |
142 |
window.open("http://archive.ifla.org/VI/3/p1996-1/uni9.htm"); |
139 |
var first = field.substring(0,1); |
|
|
140 |
url = "http://archive.ifla.org/VI/3/p1996-1/uni" + first + ".htm#"; |
141 |
if (first == 0) url = url + "b"; |
142 |
url = first == 9 |
143 |
? "http://archive.ifla.org/VI/3/p1996-1/uni9.htm" |
144 |
: url + field; |
143 |
} |
145 |
} |
|
|
146 |
window.open(url); |
144 |
} |
147 |
} |
145 |
|
148 |
|
146 |
/* |
149 |
/* |
Lines 466-472
function Changefwk(FwkList) {
Link Here
|
466 |
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;">[% innerloo.tag %]</a> |
469 |
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;">[% innerloo.tag %]</a> |
467 |
[% ELSE %] |
470 |
[% ELSE %] |
468 |
<span class="tagnum" title="[% innerloo.tag_lib %]">[% innerloo.tag %] |
471 |
<span class="tagnum" title="[% innerloo.tag_lib %]">[% innerloo.tag %] |
469 |
[% IF marcflavour != 'NORMARC' %]<a href="#" class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag %]', [% BIG_LOO.number %]); return false;"> ?</a>[% END %] |
472 |
[% IF marcflavour != 'NORMARC' %]<a href="#" class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag %]'); return false;"> ?</a>[% END %] |
470 |
</span> |
473 |
</span> |
471 |
[% END %] |
474 |
[% END %] |
472 |
[% IF ( innerloo.fixedfield ) %] |
475 |
[% IF ( innerloo.fixedfield ) %] |
473 |
- |
|
|