root/head/ambra/webapp/src/main/webapp/article/article_variables.ftl @ 7698

Revision 7698, 2.2 KB (checked in by ssterling, 16 months ago)

Implemented cross-journal searching. Also, changed URLs to use config values instead of a hard-coded URL for the DOI resolver.

The Filters on a Session are disabled for the duration of a search, then re-enabled immediately thereafter. An article DOI returned from Lucene is included in the Results if that article has been published (or cross-published) in one of the Journals submitted with the search query.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id HeadURL Revision
Line 
1<#--
2  $HeadURL::                                                                            $
3  $Id$
4
5  Copyright (c) 2007-2009 by Topaz, Inc.
6  http://topazproject.org
7
8  Licensed under the Apache License, Version 2.0 (the "License");
9  you may not use this file except in compliance with the License.
10  You may obtain a copy of the License at
11
12  http://www.apache.org/licenses/LICENSE-2.0
13
14  Unless required by applicable law or agreed to in writing, software
15  distributed under the License is distributed on an "AS IS" BASIS,
16  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  See the License for the specific language governing permissions and
18  limitations under the License.
19-->
20
21<#--
22  The digg URL has to be different as digg appears to be picking up the redirect
23  from our internal DOI resolver and messing up the formating.
24 -->
25<#if articleInfoX??>
26  <#assign shortDOI = "${articleInfoX.id?replace('info:doi/','')}" />
27  <#assign docURL = "${freemarker_config.doiResolverURL}" + shortDOI />
28  <#assign jDocURL = freemarker_config.getJournalUrl(journalContext) + "/article/" + articleInfoX.id?url />
29  <#assign docTitle = articleInfoX.title />
30<#else>
31  <#assign shortDOI = "" />
32  <#assign docURL = "" />
33  <#assign jDocURL = "" />
34  <#assign docTitle = "" />
35</#if>
36
37<#if Request[freemarker_config.journalContextAttributeKey]?exists>
38  <#assign journalContext = Request[freemarker_config.journalContextAttributeKey].journal>
39<#else>
40  <#assign journalContext = "">
41</#if>
42
43<#assign publisher = "">
44<#list journalList as jour>
45  <#if jour.key != journalContext && articleInfo.eIssn == jour.eIssn>
46    <#assign publisher = "Published in <em><a href=\"" + freemarker_config.getJournalUrl(jour.key) + "\">" + jour.dublinCore.title + "</a></em>">
47    <#break/>
48  <#else>
49    <#if jour.key != journalContext>
50      <#assign jourAnchor = "<a href=\"" + freemarker_config.getJournalUrl(jour.key) + "\">"/>
51      <#if (publisher?length > 0)>
52        <#assign publisher = publisher + ", " + jourAnchor + jour.dublinCore.title + "</a>" />
53      <#else>
54        <#assign publisher = publisher + "Featured in " + jourAnchor + jour.dublinCore.title + "</a>" />
55      </#if>
56    </#if>
57  </#if>
58</#list>
Note: See TracBrowser for help on using the browser.