Changeset 7343
- Timestamp:
- 03/04/09 15:05:32 (17 months ago)
- Location:
- head/ambra/webapp/src/main/webapp
- Files:
-
- 3 modified
-
article/article_comments.ftl (modified) (1 diff)
-
article/article_related.ftl (modified) (1 diff)
-
javascript/init_related.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
head/ambra/webapp/src/main/webapp/article/article_comments.ftl
r7339 r7343 52 52 <ul> 53 53 <#if corrections == true> 54 <li><a href="${commentsURL}" title="View all corrections" class="discuss icon">View all Comments</a></li>54 <li><a href="${commentsURL}" title="View all Comments" class="discuss icon">View all Comments</a></li> 55 55 <#else> 56 <#if ((numFormalCorrections + numMinorCorrections) > 0)> 56 57 <li><a href="${correctionsURL}" title="View all corrections" class="corrections icon">View all corrections</a></li> 58 </#if> 57 59 </#if> 58 60 <li><a href="${startDiscussionUrl}" title="Click to make a new comment on this article" class="discuss icon">Make a new comment on this article</a></li> -
head/ambra/webapp/src/main/webapp/article/article_related.ftl
r7339 r7343 45 45 46 46 <h3>Related Articles on the web <img id="relatedArticlesSpinner" src="../../images/loading.gif" height="20" width="20" class="loading" /></h3> 47 <div id="pubMedRelatedErr" style="display:none;"></div> 47 48 <ul> 48 49 <li><a href="http://scholar.google.com/scholar?hl=en&lr=&q=related:${docURL?url}&btnG=Search">Google Scholar</a></li> -
head/ambra/webapp/src/main/webapp/javascript/init_related.js
r7318 r7343 22 22 dojo.addOnLoad(function() 23 23 { 24 //TODO: Move this server setting to a configuration file 24 25 var almService = new ambra.alm('alm-dev.plos.org'); 25 26 var doi = escape(dojo.byId('doi').value); … … 36 37 { 37 38 dojo.fadeOut({ node:'relatedArticlesSpinner', duration: 1000 }).play(); 38 39 39 40 if(response == null) 40 41 { 41 setError(' relatedArticlesSpinner');42 setError('pubMedRelatedErr'); 42 43 return; 43 44 } … … 54 55 function setCites(response, args) 55 56 { 57 dojo.byId('relatedCites').style.display = 'none'; 56 58 dojo.fadeOut({ node:'relatedCitesSpinner', duration: 1000 }).play(); 57 dojo.byId('relatedCites').style.display = 'none';58 59 59 60 if(response == null) 60 61 { 61 setError('relatedCites Spinner');62 setError('relatedCites'); 62 63 return; 63 64 } … … 84 85 var html = ""; 85 86 87 dojo.byId('relatedBlogPosts').style.display = 'none'; 86 88 dojo.fadeOut({ node:'relatedBlogSpinner', duration: 1000 }).play(); 87 dojo.byId('relatedBlogPosts').style.display = 'none';88 89 89 90 if(response == null) 90 91 { 91 setError('relatedBlog Spinner');92 setError('relatedBlogPosts'); 92 93 return; 93 94 } … … 110 111 } 111 112 112 function setError( id)113 function setError(textID) 113 114 { 114 dojo.byId( id).src = 'broken.jpg';115 dojo. byId(id).title = 'An error occured requesting the';115 dojo.byId(textID).innerHTML = '<span class="inlineError"><img src="../../images/icon_error.gif"/> Unable to retrieve this data at this time.</span>'; 116 dojo.fx.wipeIn({ node:textID, duration: 1000 }).play(); 116 117 }
