Changeset 7355

Show
Ignore:
Timestamp:
03/06/09 13:39:12 (17 months ago)
Author:
stoomey
Message:

Images, css, and ftl updates for competing interest statement ui and commenting guidelines text..

References #1136

Location:
head/ambra/webapp/src/main/webapp
Files:
10 modified

Legend:

Unmodified
Added
Removed
  • head/ambra/webapp/src/main/webapp/css/annotation.css

    r7318 r7355  
    3838.dialog { line-height: 1.4em; font-size: .9em;} 
    3939/* dialog box title */ 
    40 .dialog h5{ margin: 0 0 10px 0; font-size: 1em; color: #333; padding: 5px;} 
     40.dialog h5{ margin: 5px 5px 10px;} 
    4141/* annotation post title */ 
    4242.dialog h6{ border: 1px solid #666; border-bottom:0; font-size: 1em; padding: 5px; margin: 0; background: #fff; clear: right;} 
     
    8383.preview div.detail a { margin: 0 10px; } 
    8484/* annotate is applied to dialog viewers in the annotation process */ 
    85 .annotate{ width: 42em; border: 3px solid #0bf; background: #fff url(../images/forms_bg.gif) repeat-x bottom; position:relative;} 
     85.annotate{ width:52em; border: 3px solid #666; background: #fff url(../images/forms_bg.gif) repeat-x bottom; position:relative;} 
    8686 
    8787div.contextActionDialog { padding:0;margin:0; } 
     
    8989div.context div.tipu { background:transparent url(../images/dialog_pt.gif) no-repeat 0px 0px; width:39px; height:22px; position:absolute; top: -22px; left:22px; } 
    9090 
    91 div.context{ width:22em; border:3px solid #666; background:#fff url(../images/forms_bg.gif) repeat-x bottom; position:relative;} 
    92 div.context div.contextActionContent { border:0px; margin:4px; line-height:1.1em; } 
     91div.context{ width:28em; border:3px solid #666; background:#fff url(../images/forms_bg.gif) repeat-x bottom; position:relative;} 
     92div.context div.contextActionContent { border:0px; margin:10px; } 
    9393div.context div.contextActionContent h5 { padding:0px 0px 3px 0px; margin:0px;} 
    9494div.context div.contextActionContent ul { padding:5px 0px 0px 0px; margin:0px; list-style-type:dot;} 
     
    106106.response fieldset{ border: none; } 
    107107.response fieldset .reply{ display: block; margin: 10px 0; padding: 2px; border: 1px solid #ccc} 
    108 .posting .title{ width: 34em; } 
     108.posting .title{ width: 25em; } 
    109109.flag textarea, 
    110 .posting textarea{ width: 34em; height: 8em; display: block; overflow: auto; margin-bottom: 10px; margin-left: 0; margin-top: 5px;} 
     110.posting textarea{ width: 25em; height: 8em; display: block; overflow: auto; margin-bottom: 10px; margin-left: 0; margin-top: 5px;} 
    111111.response .body{ width: 46em; height: 12em; overflow: auto;} 
    112112 
     
    131131 
    132132/* --- pane contains viewing area --- */ 
    133 .pane                   { margin: 20px; padding: 0 5px;  margin: 10px 0; position: relative; } 
     133.pane                   { margin: 20px; padding: 0 5px;  margin:0; position: relative; } 
    134134.reading.pane   { height: 12em; } 
    135135.dialog fieldset{ border: 0; margin: 0; padding: 0;} 
     
    137137.dialog legend, 
    138138.post legend    { display: none; } 
    139 .pane .error    { background-color: #fff; font-style: normal; } 
    140  
    141 .dialog input, 
    142 .post input     { display: block; margin: 10px 0;} 
     139.pane .error    { display:none; padding:5px; border:1px solid #c00; background-color: #fff; font-style: normal; } 
    143140 
    144141.dialog .response { width: 100%; height: 8em; overflow: auto; } 
     
    150147.dialog fieldset input.checkbox  { width: 1em; vertical-align: middle; height: 1.125em; display: inline; margin-right: 4px;} 
    151148div.btnwrap { width: 100%; display:block; margin: 0; height: auto; } 
    152 div.btnwrap input { margin: 5px auto; display: block; width: 18em; padding: 2px;} 
     149div.btnwrap input { margin: 5px auto; display: block; padding: 2px;} 
    153150 
    154151/* --- multiple is the containing block for multiple annotations --- */ 
     
    187184 
    188185.none                                   { display: none; } 
    189 .annotate ol, 
    190 .annotate li                    { list-style-type: none; margin: 0; padding: 0; width: 100%;} 
    191186 
    192187/* --- page view --- */ 
     
    209204div.response div.detail         { padding-left: 5px; } 
    210205/* h5 for pane posting titles */ 
    211 div.response h5  { margin: 20px 0 0 0; padding: 0; font-size: 1.1em;} 
     206div.response h5  { margin: 20px 5px 5px; padding: 0; font-size: 1.1em;} 
    212207 
    213208div.pane                { position: relative; } 
     209div.pane fieldset { margin:0; padding:0; } 
    214210div.response div.close a        { position: absolute; float: none; top: 20px; right: 20px; color: #333;} 
    215211 
    216 div.response .pane                                      { border: 2px solid #ccc; border-width: 2px 0 2px 2px; padding: 0 20px 20px 20px; margin: 0; background-repeat: repeat-x; background-position: top; color: #fff;} 
     212div.response .pane                                      { border: 2px solid #ccc; border-width: 2px 0 2px 2px; padding: 0 20px 20px; margin: 0; background-repeat: repeat-x; background-position: top; color: #fff;} 
    217213div.response .pane legend                       { display: none; } 
    218214 
     
    239235div#flagConfirm { display: none; } 
    240236 
     237/*-------------- additional styles for notation, comment/response and rating forms 
     238NOTE:  
     239div.response targets start/respond discussion forms only 
     240div.annotate targets rating and notation forms only 
     241div.posting targets all user input forms --------------------*/ 
     242div.response div.instructions a, 
     243div.response div.instructions a:hover { color:#fff; text-decoration:underline; } 
     244div.annotate div.instructions, 
     245div.response div.instructions { border:1px solid #ccc; border-left:0; border-right:0; font-size:0.9em; margin:0 5px 1.5em; padding:5px 0; } 
     246div.response div.instructions { font-size:inherit; } 
     247div.annotate div.instructions ol, 
     248div.response div.instructions ol { margin:0; padding-left:15px; list-style-position:inside; } 
     249 
     250div.posting ul { margin:0; padding:0; } 
     251div.posting label, 
     252div.posting ul.rating { line-height:0.8em; } 
     253/* SWT - this breaks star rating in IE div.posting ul.rating { top:-1em; }*/ 
     254div.annotate div.posting textarea, 
     255div.annotate div.posting input.title  { margin:5px 0; width:23.7em; } 
     256div.response textarea, 
     257div.response input.title { width:32em; } 
     258div.posting td.coi textarea { height:5em; } 
     259div.posting td.coi ul li { list-style-type:none; } 
     260div.posting td.coi ul li:first-child { margin-bottom:1em; } 
     261div.posting td.coi ul li label { display:block; line-height:1.5em; } 
     262div.posting td.coi ul li label input { float:left; margin-right:0.5em; margin-bottom:1em; } 
     263div.response td.coi ul li label input { margin-bottom:0; } 
     264div.response table.layout td.coi { vertical-align:bottom; } 
     265div.annotate div.instructions ol li { list-style-position:inside; } 
     266div.response table.layout {width:67em; margin:0 5px; } 
     267table.layout td.buttons { text-align:right; vertical-align:bottom; } 
     268.buttons input { color:#333; margin:0 5px; } 
     269.buttons input.primary { font-weight:bold; } 
     270 
     271 
    241272.toolbar                        { background: url(../images/toolbar_bg.gif) repeat-x 20px; padding: 5px; border: 1px solid #ccc; border-width: 0 0 2px 2px; margin: 0} 
    242273.toolbar ul, 
  • head/ambra/webapp/src/main/webapp/css/screen.css

    r7334 r7355  
    33 * $Id$ 
    44 * 
    5  * Copyright (c) 2006-2008 by Topaz, Inc. 
     5 * Copyright (c) 2006-2009 by Topaz, Inc. 
    66 * http://topazproject.org 
    77 * 
     
    5656strong          { font-weight: bold; } 
    5757h1 sup          { font-size: .75em; } 
    58 ul, ol, dl      { margin: 20px; position: relative; } 
    5958ol.simple {list-style-type: none; margin: 20px; position: relative; } 
    6059ol.roman-lower {list-style-type: lower-roman; margin: 20px; position: relative; } 
     
    6766th                      { padding: 6px; background-color: #fdae7a; border: 4px solid #FFF; border-width: 0 3px 3px 0; font-weight: bold;} 
    6867td                      { padding: 6px; background-color: #fcd3b8; border: 4px solid #FFF; border-width: 0 3px 3px 0; } 
     68table.layout { margin:0; } 
     69table.layout td { padding:0; background-color:transparent; border:0; vertical-align:top; } 
     70 
    6971/* Default Headings */ 
    7072h1, h2, h3      { font-family: Georgia, "Times New Roman", Times, serif; color: #333; /*position: relative; Note: this was causing links in floated articleMenu to be covered up and unclickable in Firefox2 */ } 
     
    396398div#contentHeader p { margin: 0; padding:0; text-indent: -9999px; } 
    397399div#contentHeader p#articleType { text-transform:uppercase; text-indent:7px; margin-top:-13px; font-weight:bold; color:#fff; background-color:transparent; } 
     400div#contentHeader a.info { background-position:0 0.3em; background-repeat:no-repeat; display:inline-block; text-indent:-9999px; width:14px; } 
    398401 
    399402div#publisher { border-bottom:1px dashed #c60; background-color:#fff; } /* background color allows bottom border to display in IE6 */ 
     
    407410p.oa-banner             { margin: 0; padding: 5px 0;font-size: .85em; border-bottom: 8px solid #c60; color: #666; } 
    408411p.authors               { margin: 10px 0 0 0; font-weight: bold; font-size: 1.1em; } 
    409 p.affiliations  { font-size: .85em; margin: 0; } 
     412p.affiliations  { font-size: .85em; margin: 0; line-height:1.4em; } 
    410413 
    411414div.abstract    { margin: 15px 0; } 
     
    427430div.content div#articleMenu p { margin-bottom:0; padding:0 8px 0 23px; } 
    428431div.content div#articleMenu ul { margin:0; padding:0 8px 0 23px; position:static!important; } /* position:static fixes display issues in IE6 */ 
    429 div.content div#articleMenu ul li { background-image:none; padding:2px 0; line-height:1.5em; } 
     432div.content div#articleMenu ul li { background-image:none; padding:2px 0; line-height:1.4em; } 
    430433div.content div#articleMenu ul li.annotation, 
    431434div.content div#articleMenu ul li.discuss { background-position:0 2px; background-repeat:no-repeat; padding-left:18px; } 
     
    496499div.fch ol li p a:visited { font-weight:normal; color:#004e9c; } 
    497500 
     501/* Retraction styles */ 
     502div.retractionHtmlId p.retractionHtmlId strong { color:#ff0000; }  
     503div.retractionHtmlId p.retractionHtmlId em { font-weight:bold; font-style:normal; }  
     504div.retractionHtmlId { margin: 15px 0; padding:0; border: 1px solid #ff0000; background-color: #fff4f0; }  
     505div.retractionHtmlId p.retractionHtmlId,  
     506div.corrections td.title a,  
     507div#discussionContainer div.corrections div.original div.hd h3 { background:url(../images/icon_correction.gif) left 0% no-repeat; }  
     508div.retractionHtmlId p.retractionHtmlId { margin:8px 8px 0; text-indent:20px; }  
     509div.retractionHtmlId span.retractionHtmlId { margin:8px 8px 0; text-indent:0; }  
     510div.retractionHtmlId span.retractionHtmlId div { margin-bottom:10px; font-weight:normal; }  
     511div.retractionHtmlId span.retractionHtmlId div p { margin:0; padding:0; display:inline; font-weight:normal; }  
     512div.retractionHtmlId span.retractionHtmlId div p a:link { font-weight:normal; color:#069; }  
     513div.retractionHtmlId span.retractionHtmlId div p a:visited { font-weight:normal; color:#004e9c; }  
     514 
    498515div#ratingRhc1 { margin-bottom:5px;} 
    499516div#ratingRhc1 ol, 
     
    568585 
    569586/* adds correction icon to bugs containing correction notes */ 
    570 span.minrcrctn a.bug span, span.frmlcrctn a.bug span { 
     587span.minrcrctn a.bug span, span.frmlcrctn a.bug span, span.retractionCssStyle a.bug span { 
    571588  background:url(../images/icon_correction_small.gif) left center no-repeat; 
    572589  padding-left:10px; 
  • head/ambra/webapp/src/main/webapp/discussion/startDiscussion.ftl

    r6581 r7355  
    3232      <div class="posting pane" id="DiscussionPanel"> 
    3333        <h5>Post Your Discussion Comment</h5> 
    34         <div class="close btn" id="btnCancelResponse"><@s.a href="%{articlePageURL}" title="Cancel and go back to original article">Cancel</@s.a></div> 
     34        <div class="instructions">Please follow our <a  href="/static/commentGuidelines.action">guidelines for commenting/rating</a> and review our <a href="#">competing interests policy</a>. Comments that do not conform to our guidelines will be promptly removed and the user account disabled. The following must be avoided: 
     35        <ol> 
     36          <li>Remarks that could be interpreted as allegations of misconduct</li> 
     37          <li>Unsupported assertions or statements</li> 
     38          <li>Inflammatory or insulting language</li> 
     39        </ol> 
     40      </div> 
     41        <!-- You may want the url variables here for targeting by the new cancel button at the bottom of the form. <div class="close btn" id="btnCancelResponse"><@s.a href="%{articlePageURL}" title="Cancel and go back to original article">Cancel</@s.a></div>--> 
    3542          <form name="discussionResponse" method="post" action=""> 
    3643          <input type="hidden" name="target" value="${articleInfo.id}" />         
    3744          <input type="hidden" name="commentTitle" value="" /> 
    3845          <input type="hidden" name="comment" value="" /> 
    39           <input type="hidden" name="isPublic" value="true" /> 
    40  
    41           <div id="responseSubmitMsg" class="error"/>                 
     46          <input type="hidden" name="isPublic" value="true" />              
    4247          <fieldset> 
    4348            <legend>Compose Your Response</legend> 
    44  
    45             <label for="responseTitle"><span class="none">Enter your comment title</span><!-- error message text <em>A title is required for all public annotations</em>--></label> 
    46             <input type="text" name="responseTitle" id="responseTitle" value="Enter your comment title..." class="title" alt="Enter your comment title..." /> 
    47  
    48             <label for="responseArea"><span class="none">Enter your comment</span><!-- error message style <em>Please enter your response</em>--></label> 
    49             <textarea id="responseArea" title="Enter your comment..." class="response" name="responseArea" >Enter your comment...</textarea> 
    50  
    51             <div class="btnwrap"><input name="post" value="Post" type="button" id="btnPostResponse" title="Click to Post Your Response"/></div> 
     49            <div id="responseSubmitMsg" class="error"></div> 
     50            <table class="layout"> 
     51              <tr> 
     52                <td> 
     53                  <label for="title"><span class="none">Enter your comment title</span></label> 
     54                  <input type="text" name="responseTitle" id="title" value="Enter your comment title..." class="title" alt="Enter your comment title..." /> 
     55                  <label for="responseArea"><span class="none">Enter your comment</span></label> 
     56                  <textarea id="responseArea" title="Enter your comment..." class="response" name="responseArea" >Enter your comment...</textarea> 
     57                </td> 
     58                <td>&nbsp;</td> 
     59                <td class="coi"> 
     60                  <fieldset> 
     61                    <legend>Declare any competing interests.</legend> 
     62                    <ul> 
     63                      <li><label><input id="temp" type="radio" checked="checked" name="noCOI" value="blah"  /> No, I don't have any competing interests to declare.</label></li> 
     64                      <li><label><input id="temp2" type="radio" name="yesCOI" value="blahblah"  /> Yes, I have competing interests to declare (enter below):</label></li> 
     65                    </ul> 
     66                    <textarea name="coi" id="temp" value="Enter your competing interests..." alt="Enter your competing interests...">Enter your competing interests...</textarea> 
     67                  </fieldset> 
     68                </td> 
     69              </tr> 
     70              <tr> 
     71                <td colspan="3" class="buttons"> 
     72                  <input type="button" value="Cancel" title="Click to close and cancel" id="btnCancelResponse"/> 
     73                  <input name="post" value="Submit" type="button" id="btnPostResponse" title="Click to Post Your Response" class="primary"/> 
     74                </td> 
     75              </tr> 
     76            </table> 
    5277          </fieldset> 
    5378        </form> 
  • head/ambra/webapp/src/main/webapp/journals/plosJournals/article/article_content.ftl

    r7339 r7355  
    4242        <li class="discuss icon"> 
    4343          <#if Session[freemarker_config.userAttributeKey]?exists> 
    44             <a href="${createDiscussionURL}" class="discuss icon">Make a general comment</a> 
     44            <a href="${createDiscussionURL}">Make a general comment</a> 
    4545          <#else> 
    4646            <a href="${freemarker_config.context}/user/secure/secureRedirect.action?goTo=${thisPage}">Make a general comment</a> 
  • head/ambra/webapp/src/main/webapp/widget/annotation_add.ftl

    r5684 r7355  
    2121        <div class="dialog annotate"> 
    2222                <div class="tipu" id="dTipu"></div> 
    23                 <div class="btn close" title="Click to close and cancel"> 
    24                         <a id="btn_cancel" title="Click to close and cancel">Cancel</a> 
    25                 </div> 
    2623                <div class="comment"> 
    2724                        <h5><span class="commentPrivate">Add Your Note (For Private Viewing)</span><span class="commentPublic">Post Your Note (For Public Viewing)</span></h5> 
     
    3835                                        <fieldset> 
    3936                                                <legend>Compose Your Note</legend> 
    40  
    4137                                                <span id="submitMsg" class="error"></span> 
    42                                                  
    43                                                 <label for="cNoteType">This is a </label><select name="cNoteType" id="cNoteType"><option value="note">note</option><option value="correction">correction</option></select> 
    44             <@s.url id="wacl" namespace="/static" action="commentGuidelines" includeParams="none" anchor="corrections" target="${articleURI}" /> 
    45                                                 <span id="cdls" style="visibility:hidden;margin-left:1em">(<a href="${wacl}">What are corrections?</a>)</span> 
    46  
    47                                                 <label for="cTitle" class="commentPublic"><span class="none">Enter your note title</span><!-- error message text <em>A title is required for all public notes</em>--></label> 
    48                                                 <input type="text" name="cTitle" id="cTitle" value="Enter your note title..." class="title commentPublic" alt="Enter your note title..." /> 
    49  
    50                                                 <label for="cArea"><span class="none">Enter your note</span><!-- error message text <em>Please enter your note</em>--></label> 
    51                                                 <textarea name="cArea" id="cArea" value="Enter your note..." alt="Enter your note...">Enter your note...</textarea> 
    52  
    53                                                 <input type="hidden" name="isPublic" value="true" /> 
    54                                                 <!-- 
    55                                                 <div><input type="radio" id="privateFlag" class="radio" title="Choose from one of the options" name="public" value="false" disabled="true" /><label for="Private">Private</label></div> 
    56                                                 <div><input type="radio" id="publicFlag" class="radio" title="Choose from one of the options" name="public" value="true" checked="true" /><label for="Public">Public</label></div> 
    57             --> 
    58             <div class="btnwrap commentPrivate"><input type="button" value="Save" class="commentPrivate" title="Click to save your note privately" id="btn_save"/></div> 
    59                                                 <div class="btnwrap commentPublic"><input type="button" value="Post" class="commentPublic" title="Click to post your note publicly" id="btn_post"/></div> 
     38                                                <table class="layout"> 
     39              <tr> 
     40                <td> 
     41                                                <label for="cNoteType">This is a </label><select name="cNoteType" id="cNoteType"><option value="note">note</option><option value="correction">correction</option></select> 
     42                  <@s.url id="wacl" namespace="/static" action="commentGuidelines" includeParams="none" anchor="corrections" target="${articleURI}" /> 
     43                                                <span id="cdls" style="visibility:hidden;margin-left:0.3em; white-space:nowrap;"><a href="${wacl}">What are corrections?</a></span> 
     44                                                <label for="cTitle" class="commentPublic"><span class="none">Enter your note title</span><!-- error message text <em>A title is required for all public notes</em>--></label> 
     45                                                <input type="text" name="cTitle" id="cTitle" value="Enter your note title..." class="title commentPublic" alt="Enter your note title..." /> 
     46                                                <label for="cArea"><span class="none">Enter your note</span><!-- error message text <em>Please enter your note</em>--></label> 
     47                                                <textarea name="cArea" id="cArea" value="Enter your note..." alt="Enter your note...">Enter your note...</textarea> 
     48                                                <input type="hidden" name="isPublic" value="true" /> 
     49                </td> 
     50                <td>&nbsp;</td> 
     51                <td class="coi"> 
     52                  <fieldset> 
     53                    <legend>Declare any competing interests.</legend> 
     54                    <ul> 
     55                      <li><label><input id="temp" type="radio" checked="checked" name="noCOI" value="blah"  /> No, I don't have any competing interests to declare.</label></li> 
     56                      <li><label><input id="temp2" type="radio" name="yesCOI" value="blahblah"  /> Yes, I have competing interests to declare (enter below):</label></li> 
     57                    </ul> 
     58                    <textarea name="coi" id="temp" value="Enter your competing interests..." alt="Enter your competing interests...">Enter your competing interests...</textarea> 
     59                  </fieldset> 
     60                </td> 
     61              </tr> 
     62              <tr> 
     63                <td colspan="3" class="buttons"> 
     64                  <input type="button" value="Cancel" title="Click to close and cancel" id="btn_cancel"/> 
     65                  <input type="button" value="Submit" title="Click to post your note publicly" id="btn_post" class="primary"/> 
     66                </td> 
     67              </tr> 
     68            </table> 
    6069                                        </fieldset> 
    6170                                </form> 
  • head/ambra/webapp/src/main/webapp/widget/contextAction.ftl

    r7318 r7355  
    33                <div class="tipu" id="caTipu"></div> 
    44                <div class="contextActionContent"> 
    5                         <h5><img src="images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 
    6                         Please follow our <a href="">guidelines for commenting/rating</a>. Comments that do 
    7                         not conform to our guidelines will be promptly removed and the 
    8                         user account disabled.  The following must be avoided: 
     5                        <h5><img src="../images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 
     6                        Please follow our <a href="">guidelines for commenting/rating</a> and review our <a href="#">competing interests policy</a>. Comments that do not conform to our guidelines will be promptly removed and the user account disabled. The following must be avoided: 
    97                        <ul> 
    108                                <li>Remarks that could be interpreted as allegations of misconduct</li> 
     
    1210                                <li>Inflammatory and insulting language</li> 
    1311                        </ul> 
    14                         <form name="contextActionForm" id="contextActionForm" method="post" action=""> 
    15         <input type="button" name="Continue" value="Continue" id="ContextActionDialogContinueButton" onmouseup="ambra.displayAnnotationContext.startComment(event);" title="Add a note to this text"></form> 
    16                         <div class="clearer"></div> 
     12                        <form name="contextActionForm" id="contextActionForm" class="clearfix buttons" method="post" action=""> 
     13        <input type="button" name="Continue" value="Continue" id="ContextActionDialogContinueButton" onmouseup="ambra.displayAnnotationContext.startComment(event);" title="Add a note to this text" class="primary"/></form> 
    1714                </div> 
    1815                <div class="tip" id="caTip"></div> 
     
    2320                <div class="tipu" id="canlTipu"></div> 
    2421                <div class="contextActionContent"> 
    25                         <h5><img src="images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 
     22                        <h5><img src="../images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 
    2623                        You must be logged into to add a note to an article. 
    2724      You may log in by <a onmousedown="ambra.displayAnnotationContext.disconnect(event);" href="${freemarker_config.context}/user/secure/secureRedirect.action?goTo=${thisPage}">clicking here</a>. 
     
    3431                <div class="tipu" id="canBDTipu"></div> 
    3532                <div class="contextActionContent"> 
    36                         <h5><img src="images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 
     33                        <h5 class="annotation icon"><img src="../images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 
    3734      You can not annotate this area of the document. 
    3835                </div> 
     
    4441                <div class="tipu" id="canbrTipu"></div> 
    4542                <div class="contextActionContent"> 
    46                         <h5><img src="images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 
     43                        <h5><img src="../images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 
    4744      You can not create an annotation that spans different sections of the document, please 
    4845      adjust your selection. 
  • head/ambra/webapp/src/main/webapp/widget/discussionResponse.ftl

    r5405 r7355  
    2121<div class="posting pane" id="DiscussionPanel"> 
    2222        <h5>Post Your Response</h5> 
    23         <div class="close btn" id="btnCancelResponse"><a href="#" title="Close this dialogue box">Cancel</a></div> 
    24         <form name="discussionResponse" method="post" action=""> 
    25                 <input type="hidden" name="commentTitle" value="" /> 
    26                 <input type="hidden" name="comment" value="" /> 
    27  
    28                 <div id="responseSubmitMsg" class="error"></div> 
    29                  
    30                 <fieldset> 
    31                         <legend>Compose Your Response</legend> 
    32                  
    33                         <label for="responseTitle"><span class="none">Enter your response title</span><!-- error message text <em>A title is required for all public annotations</em>--></label> 
    34                         <input type="text" name="responseTitle" id="responseTitle" value="Enter your response title..." class="title" alt="Enter your response title..." /> 
    35                          
    36                         <label for="reponseArea"><span class="none">Enter your response</span><!-- error message style <em>Please enter your response</em>--></label> 
    37                         <textarea id="responseArea" title="Enter your response..." class="response" name="responseArea" >Enter your response...</textarea> 
    38                          
    39                         <div class="btnwrap"><input name="post" value="Post" type="button" id="btnPostResponse" title="Click to Post Your Response"/></div> 
    40                          
     23  <div class="instructions">Please follow our <a  href="/static/commentGuidelines.action">guidelines for commenting/rating</a> and review our <a href="#">competing interests policy</a>. Comments that do not conform to our guidelines will be promptly removed and the user account disabled. The following must be avoided: 
     24    <ol> 
     25      <li>Remarks that could be interpreted as allegations of misconduct</li> 
     26      <li>Unsupported assertions or statements</li> 
     27      <li>Inflammatory or insulting language</li> 
     28    </ol> 
     29  </div> 
     30  <form name="discussionResponse" method="post" action=""> 
     31  <input type="hidden" name="commentTitle" value="" /> 
     32  <input type="hidden" name="comment" value="" /> 
     33  <fieldset> 
     34    <legend>Compose Your Response</legend> 
     35    <div id="responseSubmitMsg" class="error"></div> 
     36    <table class="layout"> 
     37        <tr> 
     38          <td> 
     39            <label for="title"><span class="none">Enter your response title</span></label> 
     40            <input type="text" name="responseTitle" id="title" value="Enter your response title..." class="title" alt="Enter your response title..." /> 
     41            <label for="reponseArea"><span class="none">Enter your response</span></label> 
     42            <textarea id="responseArea" title="Enter your response..." class="response" name="responseArea" >Enter your response...</textarea> 
     43          <td>&nbsp;</td> 
     44          <td class="coi"> 
     45            <fieldset> 
     46              <legend>Declare any competing interests.</legend> 
     47              <ul> 
     48                <li><label><input id="temp" type="radio" checked="checked" name="noCOI" value="blah"  /> No, I don't have any competing interests to declare.</label></li> 
     49                <li><label><input id="temp2" type="radio" name="yesCOI" value="blahblah"  /> Yes, I have competing interests to declare (enter below):</label></li> 
     50              </ul> 
     51              <textarea name="coi" id="temp" value="Enter your competing interests..." alt="Enter your competing interests...">Enter your competing interests...</textarea> 
     52            </fieldset> 
     53          </td> 
     54        </tr> 
     55        <tr> 
     56          <td colspan="3" class="buttons"> 
     57            <input type="button" value="Cancel" title="Click to close and cancel" id="btnCancelResponse"/> 
     58            <input name="post" value="Post" type="button" id="btnPostResponse" title="Click to Post Your Response" class="primary"/> 
     59          </td> 
     60        </tr> 
     61      </table> 
    4162                </fieldset> 
    4263        </form> 
  • head/ambra/webapp/src/main/webapp/widget/ratingDialog.ftl

    r6015 r7355  
    2121  <div class="dialog annotate"> 
    2222    <div class="tipu" id="dTipu"></div> 
    23     <div class="btn close" title="Click to close and cancel"><a id="btn_cancel_rating" title="Click to close and cancel">Cancel</a></div> 
    2423    <div class="comment"> 
    2524      <h5><span class="commentPublic">Rate This Article</span></h5> 
    26       <p>See also <a href="${freemarker_config.getContext()}/static/ratingGuidelines.action" class="instructions">guidelines for rating</a>.</p> 
    27       <div class="posting pane"><form name="ratingForm" id="ratingForm" method="post" action=""> 
    28         <input type="hidden" name="articleURI" value="${articleURI}" />   
    29         <input type="hidden" name="commentTitle" id="commentTitle" value="" /> 
    30         <input type="hidden" name="comment" id="commentArea" value="" /> 
    31         <fieldset> 
    32           <legend>Compose Your Annotation</legend> 
    33           <span id="submitRatingMsg" class="error"></span> 
    34 <#if isResearchArticle == true> 
    35           <label for="insight">Insight</label> 
    36           <ul class="star-rating rating edit" title="Rate insight" id="rateInsight"> 
    37             <li class="current-rating pct0"></li> 
    38             <li><a href="javascript:void(0);" title="Bland" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'insight', 1);">1</a></li> 
    39             <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 2);">2</a></li> 
    40             <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 3);">3</a></li> 
    41             <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 4);">4</a></li> 
    42             <li><a href="javascript:void(0);" title="Profound" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 5);">5</a></li> 
    43           </ul>     
    44           <input type="hidden" name="insight" title="insight" value="" /> 
    45           <label for="reliability">Reliability</label> 
    46           <ul class="star-rating rating edit" title="Rate reliability" id="rateReliability"> 
    47             <li class="current-rating pct0"></li> 
    48             <li><a href="javascript:void(0);" title="Tenuous" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'reliability', 1);">1</a></li> 
    49             <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 2);">2</a></li> 
    50             <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 3);">3</a></li> 
    51             <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 4);">4</a></li> 
    52             <li><a href="javascript:void(0);" title="Unassailable" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 5);">5</a></li> 
    53           </ul>     
    54           <input type="hidden" name="reliability" title="reliability" value="" /> 
    55           <label for="style">Style</label> 
    56           <ul class="star-rating rating edit" title="Rate style" id="rateStyle"> 
    57             <li class="current-rating pct0"></li> 
    58             <li><a href="javascript:void(0);" title="Crude" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'style', 1);">1</a></li> 
    59             <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 2);">2</a></li> 
    60             <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 3);">3</a></li> 
    61             <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 4);">4</a></li> 
    62             <li><a href="javascript:void(0);" title="Elegant" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 5);">5</a></li> 
    63           </ul>     
    64           <input type="hidden" name="style" title="style" value="" /> 
    65 <#else> 
    66           <label for="singleRating">Rating</label> 
    67           <ul class="star-rating rating edit" title="Rate single" id="rateSingleRating"> 
    68             <li class="current-rating pct0"></li> 
    69             <li><a href="javascript:void(0);" title="Bland" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 1);">1</a></li> 
    70             <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 2);">2</a></li> 
    71             <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 3);">3</a></li> 
    72             <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 4);">4</a></li> 
    73             <li><a href="javascript:void(0);" title="Profound" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 5);">5</a></li> 
    74           </ul>     
    75           <input type="hidden" name="singleRating" title="singleRating" value="" /> 
    76 </#if> 
    77           <label for="cTitle" class="commentPublic"><span class="none">Enter your comment title</span><!-- error message text <em>A title is required for all public annotations</em>--></label> 
    78           <input type="text" name="cTitle" id="cTitle" value="Enter your comment title..." class="title commentPublic" alt="Enter your comment title..." /> 
    79           <label for="cArea"><span class="none">Enter your comment</span><!-- error message text <em>Please enter your annotation</em>--></label> 
    80           <textarea name="cArea" id="cArea" value="Enter your comment..." alt="Enter your comment...">Enter your comment...</textarea> 
    81           <div class="btnwrap commentPublic"><input type="button" value="Post" class="commentPublic" title="Click to post your annotation publicly" id="btn_post_rating"/></div> 
    82         </fieldset> 
    83       </form></div> 
     25      <div class="instructions">Please follow our <a  href="/static/commentGuidelines.action">guidelines for commenting/rating</a> and review our <a href="#">competing interests policy</a>. Comments that do not conform to our guidelines will be promptly removed and the user account disabled. The following must be avoided: 
     26        <ol> 
     27          <li>Remarks that could be interpreted as allegations of misconduct</li> 
     28          <li>Unsupported assertions or statements</li> 
     29          <li>Inflammatory or insulting language</li> 
     30        </ol> 
     31      </div> 
     32      <div class="posting pane"> 
     33        <form name="ratingForm" id="ratingForm" method="post" action=""> 
     34          <input type="hidden" name="articleURI" value="${articleURI}" />   
     35          <input type="hidden" name="commentTitle" id="commentTitle" value="" /> 
     36          <input type="hidden" name="comment" id="commentArea" value="" /> 
     37          <fieldset> 
     38            <legend>Compose Your Annotation</legend> 
     39            <span id="submitRatingMsg" class="error"></span> 
     40            <table class="layout"> 
     41              <tr> 
     42                <td rowspan="2"> 
     43      <#if isResearchArticle == true> 
     44                  <label for="insight">Insight</label> 
     45                  <ul class="star-rating rating edit" title="Rate insight" id="rateInsight"> 
     46                    <li class="current-rating pct0"></li> 
     47                    <li><a href="javascript:void(0);" title="Bland" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'insight', 1);">1</a></li> 
     48                    <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 2);">2</a></li> 
     49                    <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 3);">3</a></li> 
     50                    <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 4);">4</a></li> 
     51                    <li><a href="javascript:void(0);" title="Profound" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 5);">5</a></li> 
     52                  </ul>     
     53                  <input type="hidden" name="insight" title="insight" value="" /> 
     54                  <label for="reliability">Reliability</label> 
     55                  <ul class="star-rating rating edit" title="Rate reliability" id="rateReliability"> 
     56                    <li class="current-rating pct0"></li> 
     57                    <li><a href="javascript:void(0);" title="Tenuous" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'reliability', 1);">1</a></li> 
     58                    <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 2);">2</a></li> 
     59                    <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 3);">3</a></li> 
     60                    <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 4);">4</a></li> 
     61                    <li><a href="javascript:void(0);" title="Unassailable" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 5);">5</a></li> 
     62                  </ul>     
     63                  <input type="hidden" name="reliability" title="reliability" value="" /> 
     64                  <label for="style">Style</label> 
     65                  <ul class="star-rating rating edit" title="Rate style" id="rateStyle"> 
     66                    <li class="current-rating pct0"></li> 
     67                    <li><a href="javascript:void(0);" title="Crude" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'style', 1);">1</a></li> 
     68                    <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 2);">2</a></li> 
     69                    <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 3);">3</a></li> 
     70                    <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 4);">4</a></li> 
     71                    <li><a href="javascript:void(0);" title="Elegant" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 5);">5</a></li> 
     72                  </ul>     
     73                  <input type="hidden" name="style" title="style" value="" /> 
     74      <#else> 
     75                  <label for="singleRating">Rating</label> 
     76                  <ul class="star-rating rating edit" title="Rate single" id="rateSingleRating"> 
     77                    <li class="current-rating pct0"></li> 
     78                    <li><a href="javascript:void(0);" title="Bland" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 1);">1</a></li> 
     79                    <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 2);">2</a></li> 
     80                    <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 3);">3</a></li> 
     81                    <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 4);">4</a></li> 
     82                    <li><a href="javascript:void(0);" title="Profound" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 5);">5</a></li> 
     83                  </ul>     
     84                  <input type="hidden" name="singleRating" title="singleRating" value="" /> 
     85      </#if> 
     86                  <label for="cTitle" class="commentPublic"><span class="none">Enter your comment title</span><!-- error message text <em>A title is required for all public annotations</em>--></label> 
     87                  <input type="text" name="cTitle" id="cTitle" value="Enter your comment title..." class="title commentPublic" alt="Enter your comment title..." /> 
     88                  <label for="cArea"><span class="none">Enter your comment</span><!-- error message text <em>Please enter your annotation</em>--></label> 
     89                  <textarea name="cArea" id="cArea" value="Enter your comment..." alt="Enter your comment...">Enter your comment...</textarea> 
     90                </td> 
     91                <td rowspan="2">&nbsp;</td> 
     92                <td class="coi"> 
     93                  <fieldset> 
     94                    <legend>Declare any competing interests.</legend> 
     95                    <ul> 
     96                      <li><label><input id="temp" type="radio" checked="checked" name="noCOI" value="blah"  /> No, I don't have any competing interests to declare.</label></li> 
     97                      <li><label><input id="temp2" type="radio" name="yesCOI" value="blahblah"  /> Yes, I have competing interests to declare (enter below):</label></li> 
     98                    </ul> 
     99                    <textarea name="coi" id="temp" value="Enter your competing interests..." alt="Enter your competing interests...">Enter your competing interests...</textarea> 
     100                  </fieldset> 
     101                </td> 
     102              </tr> 
     103              <tr> 
     104                <td class="buttons"> 
     105                  <input type="button" value="Cancel" title="Click to close and cancel" id="btn_cancel_rating"/> 
     106                  <input type="button" value="Submit" title="Click to post your annotation publicly" id="btn_post_rating" class="primary"/> 
     107                </td> 
     108              </tr> 
     109            </table> 
     110          </fieldset> 
     111        </form> 
     112      </div> 
    84113    </div> 
    85114  </div>