[OPEN-ILS-DEV] RefWorks code sample
Grant Johnson
fgjohnson at upei.ca
Sun Apr 19 20:31:42 EDT 2009
George et al,
Here's a non-hardcore description of the export to refworks that Alexander put together.
He will put together a proper patch after our migration to 1.4 if there is interest.
Find attached the some new files and a description of mods required for existing files from build of 1.2.3.
Let me know if I missed anything.
Hope it helps someone.
1. refworks_export.js
2. rdetail_custom.js
3. At the top of skin/roblib/xml/rdetail/rdetail_summary.xml for the image
<!-- vendor attribution link -->
<div class='jacket_attrib hide_me' id='rdetail.jacket_attrib_div'>
<div>&opac.image_provided;</div>
<div><a target='_blank' href='&vendor.base_link;'
class='classic_link' id='rdetail.jacket_attrib_link'>&vendor.name;</a></div>
</div>
</td>
<td nowrap='nowrap' class='rdetail_desc'>&common.title;</td>
<td class='rdetail_item' id='rdetail_title'> <span style="float:right;"><a id="refworks_export" title="Export this citation to Refworks."><img border="0" target="_top" src="/opac/images/refworks5.gif" /></a></span></td>
</tr>
<tr>
<td nowrap='nowrap' class='rdetail_desc'>&common.author;</td>
<td class='rdetail_item'> <a title='&rdetail.author.search;' id='rdetail_author'> </a></td>
</tr>
4. Include in skin/roblib/xml/page_rdetail.xml:
<script language='javascript' type='text/javascript' src='<!--#echo var="OILS_OPAC_JS_HOST"-->/skin/default/js/rdetail_custom.js'></script>
<script language='javascript' type='text/javascript' src='<!--#echo var="OILS_OPAC_JS_HOST"-->/skin/default/js/xregexp.js'></script>
<script language='javascript' type='text/javascript' src='<!--#echo var="OILS_OPAC_JS_HOST"-->/skin/default/js/rdetail_preview.js'></script>
<script language='javascript' type='text/javascript' src='<!--#echo var="OILS_OPAC_JS_HOST"-->/skin/default/js/refworks_export.js'></script>
F. Grant Johnson
Systems Coordinator
Robertson Library
University of Prince Edward Island
-------------- next part --------------
A non-text attachment was scrubbed...
Name: refworks_export.js
Type: application/octet-stream
Size: 8428 bytes
Desc: not available
Url : http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20090419/3484fe46/attachment-0004.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xregexp.js
Type: application/octet-stream
Size: 22385 bytes
Desc: not available
Url : http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20090419/3484fe46/attachment-0005.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rdetail_preview.js
Type: application/octet-stream
Size: 3675 bytes
Desc: not available
Url : http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20090419/3484fe46/attachment-0006.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rdetail_custom.js
Type: application/octet-stream
Size: 7877 bytes
Desc: not available
Url : http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20090419/3484fe46/attachment-0007.obj
More information about the Open-ils-dev
mailing list