| 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 | <#import "/global/global_variables.ftl" as global> |
|---|
| 21 | <#assign cisStartDateMillis = freemarker_config.cisStartDateMillis> |
|---|
| 22 | |
|---|
| 23 | <div id="content"> |
|---|
| 24 | <h1>Ratings</h1> |
|---|
| 25 | <div class="source"> |
|---|
| 26 | <span>Original Article</span> |
|---|
| 27 | <@s.url id="fetchArticleURL" namespace="/article" action="fetchArticle" articleURI="${articleURI}"/> |
|---|
| 28 | |
|---|
| 29 | <a href="${fetchArticleURL}" title="Back to original article" class="article icon">${articleTitle} |
|---|
| 30 | <#if isResearchArticle == true> |
|---|
| 31 | <#if articleOverallRounded?exists> |
|---|
| 32 | <span class="inline-rating inlineRatingEnd"> |
|---|
| 33 | <ul class="star-rating rating" title="overall"> |
|---|
| 34 | <#assign overallPct = (20 * articleOverallRounded)?string("##0")> |
|---|
| 35 | <li class="current-rating pct${overallPct}">Currently ${articleOverallRounded?string("0.#")}/5 Stars.</li> |
|---|
| 36 | </ul> |
|---|
| 37 | </span> |
|---|
| 38 | </#if> |
|---|
| 39 | <#else> |
|---|
| 40 | <#if articleSingleRatingRounded?exists> |
|---|
| 41 | <span class="inline-rating inlineRatingEnd"> |
|---|
| 42 | <ul class="star-rating rating" title="single"> |
|---|
| 43 | <#assign overallPct = (20 * articleSingleRatingRounded)?string("##0")> |
|---|
| 44 | <li class="current-rating pct${overallPct}">Currently ${articleSingleRatingRounded?string("0.#")}/5 Stars.</li> |
|---|
| 45 | </ul> |
|---|
| 46 | </span> |
|---|
| 47 | </#if> |
|---|
| 48 | </#if> |
|---|
| 49 | </a> |
|---|
| 50 | <!--<p><a href="/annotation/getCommentary.action?target=${articleURI}" class="commentary icon">See all commentary</a> on this article</p>--> |
|---|
| 51 | </div> |
|---|
| 52 | |
|---|
| 53 | <#list articleRatingSummaries as articleRatingSummary> |
|---|
| 54 | <@s.url id="fetchUserURL" namespace="/user" action="showUser" userId="${articleRatingSummary.creatorURI}"/> |
|---|
| 55 | <div class="response ratingComment"> |
|---|
| 56 | <a name="${articleRatingSummary.ratingId}"/> |
|---|
| 57 | <div class="hd"> |
|---|
| 58 | <!-- begin : response title : user --> |
|---|
| 59 | <h3> |
|---|
| 60 | <#if articleRatingSummary.commentTitle?exists> |
|---|
| 61 | ${articleRatingSummary.commentTitle} |
|---|
| 62 | </#if> |
|---|
| 63 | <span class="detail">Posted by <a href="${fetchUserURL}" title="Annotation Author" class="user icon">${articleRatingSummary.creatorName}</a> |
|---|
| 64 | on <strong>${articleRatingSummary.created?string("dd MMM yyyy '</strong>at<strong>' HH:mm zzz")}</strong> |
|---|
| 65 | </span> |
|---|
| 66 | </h3> |
|---|
| 67 | <!-- end : response title : user --> |
|---|
| 68 | </div> |
|---|
| 69 | <!-- begin : response body text --> |
|---|
| 70 | <div class="ratingDetail"> |
|---|
| 71 | <div class="posterRating"> |
|---|
| 72 | <ol class="ratingAvgs"> |
|---|
| 73 | <#if isResearchArticle == true> |
|---|
| 74 | <#if articleRatingSummary.insight?exists> |
|---|
| 75 | <li><label for="insight">Insight</label> |
|---|
| 76 | <ul class="star-rating rating" title="insight"> |
|---|
| 77 | <#assign insightPct = (20 * articleRatingSummary.insight)?string("##0")> |
|---|
| 78 | <li class="current-rating average pct${insightPct}">Currently ${articleRatingSummary.insight?string("0.#")}/5 Stars.</li> |
|---|
| 79 | </ul> |
|---|
| 80 | </li> |
|---|
| 81 | </#if> |
|---|
| 82 | <#if articleRatingSummary.reliability?exists> |
|---|
| 83 | <li><label for="reliability">Reliability</label> |
|---|
| 84 | <ul class="star-rating rating" title="reliability"> |
|---|
| 85 | <#assign reliabilityPct = (20 * articleRatingSummary.reliability)?string("##0")> |
|---|
| 86 | <li class="current-rating average pct${reliabilityPct}">Currently ${articleRatingSummary.reliability?string("0.#")}/5 Stars.</li> |
|---|
| 87 | </ul> |
|---|
| 88 | </li> |
|---|
| 89 | </#if> |
|---|
| 90 | <#if articleRatingSummary.style?exists> |
|---|
| 91 | <li><label for="style">Style</label> |
|---|
| 92 | <ul class="star-rating rating" title="style"> |
|---|
| 93 | <#assign stylePct = (20 * articleRatingSummary.style)?string("##0")> |
|---|
| 94 | <li class="current-rating average pct${stylePct}">Currently ${articleRatingSummary.style?string("0.#")}/5 Stars.</li> |
|---|
| 95 | </ul> |
|---|
| 96 | </li> |
|---|
| 97 | </#if> |
|---|
| 98 | <#if articleRatingSummary.overallRounded?exists> |
|---|
| 99 | <li><label for="overall"><strong>Overall</strong></label> |
|---|
| 100 | <ul class="star-rating rating" title="overall"> |
|---|
| 101 | <#assign overallPct = (20 * articleRatingSummary.overallRounded)?string("##0")> |
|---|
| 102 | <li class="current-rating average pct${overallPct}">Currently ${articleRatingSummary.overallRounded?string("0.#")}/5 Stars.</li> |
|---|
| 103 | </ul> |
|---|
| 104 | </li> |
|---|
| 105 | </#if> |
|---|
| 106 | <#else> |
|---|
| 107 | <li><label for="singleRating"> </label> |
|---|
| 108 | <ul class="star-rating rating single" title="singleRating"> |
|---|
| 109 | <#assign singleRatingPct = (20 * articleRatingSummary.singleRating)?string("##0")> |
|---|
| 110 | <li class="current-rating average pct${singleRatingPct}">Currently ${articleRatingSummary.singleRating?string("0.#")}/5 Stars.</li> |
|---|
| 111 | </ul> |
|---|
| 112 | </li> |
|---|
| 113 | </#if> |
|---|
| 114 | </ol> |
|---|
| 115 | </div> |
|---|
| 116 | <blockquote> |
|---|
| 117 | <#if articleRatingSummary.commentValue?exists> |
|---|
| 118 | <p>${articleRatingSummary.commentValue}</p> |
|---|
| 119 | </#if> |
|---|
| 120 | <#if (cisStartDateMillis < articleRatingSummary.createdMillis)> |
|---|
| 121 | <div class="cis"> |
|---|
| 122 | <#if (articleRatingSummary.CIStatement?? && articleRatingSummary.CIStatement !="")> |
|---|
| 123 | <strong>Competing interests declared:</strong> ${articleRatingSummary.CIStatement} |
|---|
| 124 | <#else> |
|---|
| 125 | <strong>No competing interests declared.</strong> |
|---|
| 126 | </#if> |
|---|
| 127 | </div> |
|---|
| 128 | </#if> |
|---|
| 129 | </blockquote> |
|---|
| 130 | </div> |
|---|
| 131 | <!-- end : response body text --> |
|---|
| 132 | |
|---|
| 133 | <!-- begin : toolbar options --> |
|---|
| 134 | <div class="toolbar"> |
|---|
| 135 | <#if articleRatingSummary.commentTitle?exists> |
|---|
| 136 | <#assign flagTitle = "${articleRatingSummary.commentTitle}"> |
|---|
| 137 | <#else> |
|---|
| 138 | <#assign flagTitle = "Flag this rating"> |
|---|
| 139 | </#if> |
|---|
| 140 | <ul> |
|---|
| 141 | <li> |
|---|
| 142 | <#if Session[freemarker_config.userAttributeKey]?exists> |
|---|
| 143 | <a href="#" onclick="ambra.responsePanel.show(this, _dcf, 'toolbar', '${articleRatingSummary.ratingId}', null, null, 2); return false;" class="flag tooltip" title="Report a Concern">Report a Concern</a> |
|---|
| 144 | <#else> |
|---|
| 145 | <a href="${freemarker_config.context}/user/secure/secureRedirect.action?goTo=${global.thisPage}" class="flag tooltip" title="Report a Concern">Report a Concern</a> |
|---|
| 146 | </#if> |
|---|
| 147 | </li> |
|---|
| 148 | </ul> |
|---|
| 149 | </div> |
|---|
| 150 | <!-- end : toolbar options --> |
|---|
| 151 | </div> |
|---|
| 152 | |
|---|
| 153 | <div class="rsep"></div> |
|---|
| 154 | </#list> |
|---|
| 155 | </div> |
|---|