View | Details | Raw Unified | Return to bug 5329
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl (-8 / +20 lines)
Lines 67-87 function PopupZ3950() { Link Here
67
    } 
67
    } 
68
}
68
}
69
69
70
function PopupMARCFieldDoc(field) {
70
function PopupMARCFieldDoc(field, fieldnumber) {
71
    <!-- TMPL_IF NAME="MARC21" -->
72
        _MARC21FieldDoc(field);
73
    <!-- TMPL_ELSE -->
74
        _UNIMARCFieldDoc(field, fieldnumber);
75
    <!-- /TMPL_IF -->
76
}
77
78
function _MARC21FieldDoc(field) {
71
    if(field == 0) {
79
    if(field == 0) {
72
        window.open("http://www.loc.gov/marc/bibliographic/bdleader.html");
80
        window.open("http://www.loc.gov/marc/bibliographic/bdleader.html");
73
    } else if (field < 900) {
81
    } else if (field < 900) {
74
        window.open("http://www.loc.gov/marc/bibliographic/bd"+field+".html");
82
        window.open("http://www.loc.gov/marc/bibliographic/bd" + ("000"+field).slice(-3) + ".html");
75
    } else {
83
    } else {
76
        window.open("http://www.loc.gov/marc/bibliographic/bd9xx.html");
84
        window.open("http://www.loc.gov/marc/bibliographic/bd9xx.html");
77
    }
85
    }
78
}
86
}
79
87
80
function PopupUNIMARCFieldDoc(field,fieldnumber) {
88
function _UNIMARCFieldDoc(field,fieldnumber) {
89
    /* http://archive.ifla.org/VI/3/p1996-1/ is an outdated version of UNIMARC, but
90
       seems to be the only version available that can be linked to per tag.  More recent
91
       versions of the UNIMARC standard are available on the IFLA website only as
92
       PDFs!
93
    */
81
    if(field == 0) {
94
    if(field == 0) {
82
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni.htm");
95
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni.htm");
96
    } else if (field < 100) {
97
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni"+fieldnumber+".htm#b" + ("000"+field).slice(-3));
83
    } else if (field < 900) {
98
    } else if (field < 900) {
84
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni"+fieldnumber+".htm#b"+field);
99
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni"+fieldnumber+".htm#" + ("000"+field).slice(-3));
85
    } else {
100
    } else {
86
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni9.htm");
101
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni9.htm");
87
    }
102
    }
Lines 770-778 function unHideSubfield(index,labelindex) { // FIXME :: is it used ? Link Here
770
		<a href="#" tabindex="1" class="tagnum" title="<!-- TMPL_VAR NAME="tag_lib"--> - Click to Expand this Tag" onclick="ExpandField('tag_<!-- TMPL_VAR NAME="tag"-->_<!-- TMPL_VAR NAME='index' --><!-- TMPL_VAR NAME="random" -->'); return false;"><!-- TMPL_VAR NAME="tag" --></a>
785
		<a href="#" tabindex="1" class="tagnum" title="<!-- TMPL_VAR NAME="tag_lib"--> - Click to Expand this Tag" onclick="ExpandField('tag_<!-- TMPL_VAR NAME="tag"-->_<!-- TMPL_VAR NAME='index' --><!-- TMPL_VAR NAME="random" -->'); return false;"><!-- TMPL_VAR NAME="tag" --></a>
771
		<!-- TMPL_ELSE -->
786
		<!-- TMPL_ELSE -->
772
                        <span class="tagnum" title="<!-- TMPL_VAR NAME="tag_lib" -->"><!-- TMPL_VAR NAME="tag" --><a 
787
                        <span class="tagnum" title="<!-- TMPL_VAR NAME="tag_lib" -->"><!-- TMPL_VAR NAME="tag" --><a 
773
                 onClick="<!-- TMPL_IF NAME="MARC21" -->PopupMARCFieldDoc(<!-- TMPL_VAR NAME="tag" -->)
788
                 onclick="PopupMARCFieldDoc(<!-- TMPL_VAR NAME="tag" -->, <!-- TMPL_VAR NAME="number" -->); return false;">&nbsp;?</a></span>
774
                          <!-- TMPL_ELSE -->PopupUNIMARCFieldDoc(<!-- TMPL_VAR NAME="tag" -->,<!-- TMPL_VAR NAME="number" -->)
775
                          <!-- /TMPL_IF -->;return false;">&nbsp;?</a></span>
776
		<!-- /TMPL_IF -->
789
		<!-- /TMPL_IF -->
777
                <!-- TMPL_IF NAME="fixedfield" -->
790
                <!-- TMPL_IF NAME="fixedfield" -->
778
	                <input tabindex="1" class="indicator flat" type="text" style="display:none;" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="1" maxlength="1" value="<!-- TMPL_VAR NAME="indicator1" -->" />
791
	                <input tabindex="1" class="indicator flat" type="text" style="display:none;" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="1" maxlength="1" value="<!-- TMPL_VAR NAME="indicator1" -->" />
779
- 

Return to bug 5329