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

--- Comment #2 from Stefano Bargioni <bargi...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to