On Wed, Jun 17, 2009 at 11:50 PM, Mike Rylander <[email protected]> wrote:
>
> Hrm ... is the purpose of <VENDOR> to tell RefWorks what sort of
> system the data is coming from, or to tell them which of their clients
> is using the service?
>
I believe it's the latter (for instance, see the link to RefWorks at
http://mirlyn2-beta.lib.umich.edu/Record/001376273 ).
I've attached a slightly modified patch that doesn't append "+Evergreen" to
<VENDOR> and just uses the org's fullname (with spaces replaced with '+'
chars). That is likely more appropriate, at least from RefWorks' point of
view.
Cheers,
Warren
Index: Open-ILS/web/opac/skin/default/js/rdetail.js
===================================================================
--- Open-ILS/web/opac/skin/default/js/rdetail.js (revision 13399)
+++ Open-ILS/web/opac/skin/default/js/rdetail.js (working copy)
@@ -368,6 +368,21 @@
$('rdetail_place_hold').setAttribute(
'href','javascript:holdsDrawEditor({record:"'+record.doc_id()+'",type:"T"});');
+ var here = (findOrgUnit(getLocation())).name();
+ var org_name = here.replace(" ", "+");
+ var cgi = new CGI();
+
+ $('rdetail_exp_refworks').setAttribute(
+ 'href',
+ 'http://www.refworks.com/express/expressimport.asp?vendor='
+ +org_name
+ +'&filter=MARC+Format&database=All+MARC+Formats&encoding=65001&url=http%3A%2F%2F'
+ +cgi.server_name+'/opac/extras/supercat/marctxt/record/'
+ +record.doc_id());
+
+ $('rdetail_exp_refworks').setAttribute(
+ 'target', 'RefWorksMain');
+
$('rdetail_img_link').setAttribute('href', buildISBNSrc(cleanISBN(record.isbn()), 'large'));
G.ui.rdetail.image.setAttribute("src", buildISBNSrc(cleanISBN(record.isbn())));
runEvt("rdetail", "recordDrawn");