--- /dev/null
+[%
+
+# This file contains skin-level configuration settings.
+# Many of these settings will probably migrate into actor.org_unit_settings.
+
+##############################################################################
+# RefWorks configuration
+##############################################################################
+# RefWorks is a Web-based citation manager
+ctx.refworks.enable = 'false';
+
+# Base URL for RefWorks
+ctx.refworks.url = 'http://www.refworks.com';
+
+# Some sites have a hosted RefWorks instance at a different URL;
+# in addition, you might want to proxy access to RefWorks - for example:
+# ctx.refworks.url = 'http://librweb.laurentian.ca/login?url=http://refworks.scholarsportal.info';
+
+%]
--- /dev/null
+[%
+ # Default to aou.id = 1 in the absence of a specific library
+ loc = 1;
+ IF CGI.param('loc');
+ loc = CGI.param('loc');
+ END;
+
+ # Get the full name of the library
+ ou_name = ctx.get_aou(loc).name | uri;
+
+ # Generate the gross RefWorks URL, based on parameters from config.tt2
+ rw_uri = ctx.refworks.url _
+ '/express/expressimport.asp?vendor=' _
+ ou_name _
+ '&filter=MARC+Format&database=All+MARC+Formats&' _
+ 'encoding=65001&url=http%3A%2F%2F' _
+ CGI.server_name _
+ '/opac/extras/supercat/marctxt/record/' _
+ ctx.bre_id;
+%]
+<div class="rdetail_refworks">
+ <a href="[% rw_uri %]">[% l('Export to RefWorks') %]</a>
+</div>
[% ctx.page_title = attrs.title | html_entity %]
<!-- ****************** rdetail_summary.xml ***************************** -->
<abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% ctx.bre_id %]'></abbr>
+
+[% IF ctx.refworks.enable == 'true' %]
+ [% INCLUDE 'default/opac/parts/record/refworks.tt2' %]
+[% END %]
+
<!-- This holds the record summary information -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="rdetail_details_table">
[% PROCESS "default/opac/parts/header.tt2";
+ PROCESS "default/opac/parts/config.tt2";
WRAPPER "default/opac/parts/base.tt2";
INCLUDE "default/opac/parts/topnav.tt2";
ctx.page_title = l("Record Detail") %]