]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/default/opac/parts/record/refworks.tt2
Merge remote branch 'working/user/shadowspar/ttopac-altcleanup' into template-toolkit...
[Evergreen.git] / Open-ILS / src / templates / default / opac / parts / record / refworks.tt2
1 [%
2     # Default to aou.id = 1 in the absence of a specific library
3     loc = 1;
4     IF CGI.param('loc');
5         loc = CGI.param('loc');
6     END;
7
8     # Get the full name of the library
9     ou_name = ctx.get_aou(loc).name | uri;
10
11     # Generate the gross RefWorks URL, based on parameters from config.tt2
12     rw_uri = ctx.refworks.url _ 
13         '/express/expressimport.asp?vendor=' _
14         ou_name _
15         '&filter=MARC+Format&database=All+MARC+Formats&' _
16         'encoding=65001&url=http%3A%2F%2F' _
17         CGI.server_name _ 
18         '/opac/extras/supercat/marctxt/record/' _ 
19         ctx.bre_id;
20 %]
21 <div class="rdetail_refworks">
22     <a href="[% rw_uri %]">[% l('Export to RefWorks') %]</a>
23 </div>