[Bug 10941] New: MARC21 documentation links while adding an authority
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10941 Bug ID: 10941 Summary: MARC21 documentation links while adding an authority Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: MARC Authority data support Assignee: tomascohen@gmail.com Reporter: pablo.bianchi@gmail.com QA Contact: testopia@bugs.koha-community.org While adding authorities (authorities.pl), we don't have the "?" now available on cataloging frameworks. A similar strategy might be used. Related bugs: #10940, #5546. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10941 Stefano Bargioni <bargioni@pusc.it> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bargioni@pusc.it --- Comment #1 from Stefano Bargioni <bargioni@pusc.it> --- 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'}); -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10941 --- Comment #2 from Stefano Bargioni <bargioni@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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10941 Pablo AB <pablo.bianchi@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10941 paxed <pasi.kallinen@pttk.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pasi.kallinen@pttk.fi See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=11674 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10941 --- Comment #3 from Pablo AB <pablo.bianchi@gmail.com> --- Added to JQuery Library on wiki: http://wiki.koha-community.org/wiki/JQuery_Library#MARC21_documentation_link... but in status=incomplete because it shows also on bibliographic frameworks. A lot of this JQuery enhancement should be added to Koha... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10941 --- Comment #4 from Stefano Bargioni <bargioni@pusc.it> --- (In reply to Pablo AB from comment #3)
Added to JQuery Library on wiki: http://wiki.koha-community.org/wiki/ JQuery_Library#MARC21_documentation_links_while_adding_an_authority but in status=incomplete because it shows also on bibliographic frameworks. A lot of this JQuery enhancement should be added to Koha...
Thx Pablo to adding it to the jQuery Library. I wrapped the code into an IF statement to apply it only in case of auth frameworks. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org