Changeset 7402

Show
Ignore:
Timestamp:
03/11/09 16:52:49 (17 months ago)
Author:
josowski
Message:

Improvements on how we display the competing interest statement

References #1136

Location:
head/ambra
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • head/ambra/libs/js/src/main/scripts/ambra/displayComment.js

    r7395 r7402  
    263263 
    264264    if (jsonObj.annotation.CIStatement) { 
    265       ciStatementFrag = this.ciStatementMsg + jsonObj.annotation.CIStatement; 
     265      ciStatementFrag = "<div class=\"cis\">" + this.ciStatementMsg + jsonObj.annotation.CIStatement + "</div>"; 
    266266    } else { 
    267       ciStatementFrag = this.noCIStatementMsg; 
     267      ciStatementFrag = "<div class=\"cis\">" + this.noCIStatementMsg + "</div>"; 
    268268    } 
    269269 
     
    388388    } 
    389389 
    390     contentDiv.innerHTML = this.buildDisplayBody(jsonObj); 
     390    contentDiv.innerHTML = this.buildDisplayBody(jsonObj) + this.buildDisplayCIStatement(jsonObj); 
    391391     
    392392    var cDetailDiv = document.createElement('div'); 
     
    406406    cDetailDiv.appendChild(commentLink); 
    407407    cDetailDiv.appendChild(responseLink);*/ 
    408     cDetailDiv.appendChild(this.buildDisplayCIStatement(jsonObj)); 
    409408    cDetailDiv.appendChild(this.buildDisplayViewLink(jsonObj)); 
    410409    contentDiv.appendChild(cDetailDiv); 
  • head/ambra/webapp/src/main/webapp/discussion/threaded_replies.ftl

    r7399 r7402  
    3939                                <blockquote> 
    4040                                        ${reply.commentWithUrlLinking} 
    41                                 </blockquote> 
    42                                 <blockquote class="cis"> 
    43         <#if reply.CIStatement??> 
    44           <b>Competing interests declared:</b> ${reply.CIStatement} 
    45         <#else> 
    46           <b>No competing interests declared.</b> 
    47         </#if> 
     41          <div class="cis"> 
     42          <#if reply.CIStatement??> 
     43            <b>Competing interests declared:</b> ${reply.CIStatement} 
     44          <#else> 
     45            <b>No competing interests declared.</b> 
     46          </#if> 
     47          </div> 
    4848                                </blockquote> 
    4949                                <!-- end : response body text --> 
     
    102102                                ${baseAnnotation.commentWithUrlLinking} 
    103103                                <#if citation??><div class="citation"><strong>Citation: </strong><#assign isCorrection=true/><#if baseAnnotation.type?index_of("Retraction") gte 0><#assign isRetraction=true/><#else><#assign isRetraction=false/></#if><#assign doi=baseAnnotation.id?replace("info:doi/","") /><#include "/article/citation.ftl"/></#if> 
     104        <div class="cis"> 
     105          <#if baseAnnotation.CIStatement??> 
     106            <b>Competing interests declared:</b> ${baseAnnotation.CIStatement} 
     107          <#else> 
     108            <b>No competing interests declared.</b> 
     109          </#if> 
     110        </div> 
    104111                        </blockquote> 
    105       <blockquote class="cis"> 
    106         <#if baseAnnotation.CIStatement??> 
    107           <b>Competing interests declared:</b> ${baseAnnotation.CIStatement} 
    108         <#else> 
    109           <b>No competing interests declared.</b> 
    110         </#if> 
    111       </blockquote> 
    112112                        <!-- end : response body text --> 
    113113                        <!-- begin : toolbar options -->