Summary: | MARC21 documentation links while adding an authority | ||
---|---|---|---|
Product: | Koha | Reporter: | Pablo AB <pablo.bianchi> |
Component: | MARC Authority data support | Assignee: | Tomás Cohen Arazi (tcohen) <tomascohen> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | bargioni, esther.melander, flyingendpaper, jheltibridle, lauren_denny, marjorie.barry-vila, mnero, pasi.kallinen, tomascohen |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11674 | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: |
Description
Pablo AB
2013-09-24 15:38:22 UTC
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'}); (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"); } } 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... (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. I would like to see this added, I use the documentation links on bibliographic records very often and would use them if they were included on authority records as well. *** Bug 34272 has been marked as a duplicate of this bug. *** I would *really* like to see this--I think it would be really helpful for those new to cataloging, and those new to authorities! Authorities can be a dark, murky world, and clarifying it in an easy to use & friendly way would rock! Also, those little "?" appearing are SUPER for newbies!!!! Super please with whipped cream on top and a cherry, please, please, advance this bug!!!! Thank you!!!!!!!!!!! h2 |