[Koha-bugs] [Bug 10941] MARC21 documentation links while adding an authority

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 6 11:17:51 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10941

--- Comment #2 from Stefano Bargioni <bargioni at pusc.it> ---
(In reply to Stefano Bargioni from comment #1)
> A temporary solution through JQuery can be:
> 
> var tags = $('div[id^=div_indicator_tag_]');
> for (var i=0; i < tags.length; i++) {
> 	var t = $(tags[i]);
> 	var tag_name = t.attr('id').replace(/div_indicator_tag_/,'').substr(0,3);
> 	t.find('span:first').after('<a href="#" class="marcdocs" title="LC MARC
> auth specifications" onclick="MARC21FieldAuth(\''+tag_name+'\'); return
> false"> ?</a>');
> }
> $('.marcdocs').css({'color':'blue','font-weight':'bold'});

function MARC21FieldAuth(tag_name) {
    if (tag_name == '000') {
        window.open("http://www.loc.gov/marc/authority/adleader.html");
    }
    else if (tag_name.search('09') == 0) {
        window.open("http://www.loc.gov/marc/authority/ad09x.html");
    }
    else {
       
window.open("http://www.loc.gov/marc/authority/ad"+("000"+tag_name).slice(-3) +
".html");
    }
}

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list