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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl (-6 / +5 lines)
Lines 67-77 function PopupZ3950() { Link Here
67
    } 
67
    } 
68
}
68
}
69
69
70
function PopupMARCFieldDoc(field, fieldnumber) {
70
function PopupMARCFieldDoc(field, blocknumber) {
71
    <!-- TMPL_IF NAME="MARC21" -->
71
    <!-- TMPL_IF NAME="MARC21" -->
72
        _MARC21FieldDoc(field);
72
        _MARC21FieldDoc(field);
73
    <!-- TMPL_ELSE -->
73
    <!-- TMPL_ELSE -->
74
        _UNIMARCFieldDoc(field, fieldnumber);
74
        _UNIMARCFieldDoc(field, blocknumber);
75
    <!-- /TMPL_IF -->
75
    <!-- /TMPL_IF -->
76
}
76
}
77
77
Lines 85-91 function _MARC21FieldDoc(field) { Link Here
85
    }
85
    }
86
}
86
}
87
87
88
function _UNIMARCFieldDoc(field,fieldnumber) {
88
function _UNIMARCFieldDoc(field, blocknumber) {
89
    /* http://archive.ifla.org/VI/3/p1996-1/ is an outdated version of UNIMARC, but
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
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
91
       versions of the UNIMARC standard are available on the IFLA website only as
Lines 94-102 function _UNIMARCFieldDoc(field,fieldnumber) { Link Here
94
    if(field == 0) {
94
    if(field == 0) {
95
        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) {
96
    } else if (field < 100) {
97
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni"+fieldnumber+".htm#b" + ("000"+field).slice(-3));
97
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni"+blocknumber+".htm#b" + ("000"+field).slice(-3));
98
    } else if (field < 900) {
98
    } else if (field < 900) {
99
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni"+fieldnumber+".htm#" + ("000"+field).slice(-3));
99
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni"+blocknumber+".htm#" + ("000"+field).slice(-3));
100
    } else {
100
    } else {
101
        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");
102
    }
102
    }
103
- 

Return to bug 5583