| 71 | | html = html + "<li><a href=\"\">" + response.article.sources[a].source + "(" + response.article.sources[a].count + ")</a></li>"; |
| | 74 | var url = ""; |
| | 75 | |
| | 76 | /** |
| | 77 | * TODO: We really want to have the ALM server set these sources |
| | 78 | * In the meantime we'll set them here. |
| | 79 | * |
| | 80 | * I figure we'll append a DOI to these urls with the right parameter name |
| | 81 | * Or perhaps append an ID given to us from the ALM server? |
| | 82 | * |
| | 83 | * Nulling out any of the following values should stop the |
| | 84 | * item from being displayed. |
| | 85 | */ |
| | 86 | switch (response.article.sources[a].source) { |
| | 87 | case "CrossRef": |
| | 88 | //Example of what it would like like to pass the doi to the website |
| | 89 | url = "http://www.crossref.org/?paramName=" + doi; //+ response.article.sources[a].source.someID |
| | 90 | //Example of what it would like if we got a response from the ALM server |
| | 91 | //url = "http://www.crossref.org/?paramName=" + response.article.sources[a].source.someID; |
| | 92 | //Example of null: |
| | 93 | //url = null; |
| | 94 | break; |
| | 95 | case "PubMed": |
| | 96 | url = "http://www.ncbi.nlm.nih.gov/pubmed/?paramName="; //+ doi (the article DOI) |
| | 97 | break; |
| | 98 | case "Scopus": |
| | 99 | url = "http://www.scopus.com/scopus/home.url?paramName="; |
| | 100 | break; |
| | 101 | case "Citeulike": |
| | 102 | url = "http://www.citeulike.org/?paramName="; |
| | 103 | break; |
| | 104 | } |
| | 105 | |
| | 106 | //Only list links that HAVE DEFINED URLS |
| | 107 | if (url) { |
| | 108 | html = html + "<li><a href=\"" + url + "\">" + response.article.sources[a].source + "(" + response.article.sources[a].count + ")</a></li>"; |
| | 109 | numCitesRendered++; |
| | 110 | } |
| 101 | | html = html + "<li><a href=\"\">" + response.article.sources[a].source + "(" + response.article.sources[a].count + ")</a></li>"; |
| | 145 | var url = ""; |
| | 146 | |
| | 147 | /** |
| | 148 | * TODO: We really want to have the ALM server set these sources |
| | 149 | * In the meantime we'll set them here. |
| | 150 | * |
| | 151 | * I figure we'll append a DOI to these urls with the right parameter name |
| | 152 | * Or perhaps append an ID given to us from the ALM server? |
| | 153 | * |
| | 154 | * Nulling out any of the following values should stop the |
| | 155 | * item from being displayed. |
| | 156 | */ |
| | 157 | switch(response.article.sources[a].source) { |
| | 158 | case "Bloglines": |
| | 159 | url = "http://www.crossref.org/?paramName=" + doi; |
| | 160 | //url = "http://www.crossref.org/?paramName=" + response.article.sources[a].source.someID; |
| | 161 | break; |
| | 162 | case "Nature": |
| | 163 | url = "http://www.nature.com/?paramName="; |
| | 164 | break; |
| | 165 | case "Postgenomic": |
| | 166 | url = "http://www.postgenomic.com/?paramName="; |
| | 167 | break; |
| | 168 | } |
| | 169 | |
| | 170 | //Only list links that HAVE DEFINED URLS |
| | 171 | if (url) { |
| | 172 | html = html + "<li><a href=\"" + url + "\">" + response.article.sources[a].source + "(" + response.article.sources[a].count + ")</a></li>"; |
| | 173 | numBlogsRendered++; |
| | 174 | } |