Lines Matching refs:refs

100   function _span($refs, $class, $id) {  argument
102 if (empty($refs[$id]))
105 if (is_array($refs[$id]))
106 return "<span class=\"$class\">".hsc(implode(", ",$refs[$id]))."</span>";
108 return "<span class=\"$class\">".hsc($refs[$id])."</span>";
111 function _a($refs, $class, $href, $id, $text) { argument
113 if (empty($refs[$id]))
126 function replaceTokens($outputString, $refs) { argument
128 if (count($refs) < 2) { // PMID is always included
129 return sprintf($this->getLang('pubmed_not_found'), $refs["pmid"]);
139 "authors" => $this->_span($refs, "authors", "authors"),
140 "authorsLimit3" => $this->_span($refs, "authors", "authorsLimit3"),
141 "first_author" => $this->_span($refs, "authors", "first_author"),
142 "authorsVancouver" => $this->_span($refs, "vancouver authors", "authorsVancouver"),
143 "collectif" => $this->_span($refs, "authors", "collectif"),
144 "corporate_author"=> $this->_span($refs, "authors", "corporate_author"),
149 "npg_iso" => $this->_span($refs, "iso", "npg_iso"),
150 "npg_full" => $this->_span($refs, "npg", "npg_full"),
152 "gpnv_full" => $this->_span($refs, "gpnv_authors", "gpnv_full_authors").
153 $this->_span($refs, "gpnv_title", "gpnv_full_title").
154 $this->_span($refs, "gpnv_journal", "gpnv_full_journal").
155 $this->_span($refs, "gpnv_iso", "gpnv_full_iso")
159 "pmid_url" => $this->_a($refs, "pmid", $refs["url"],
160 "url", "PMID: ".$refs["pmid"]),
161 "pmcid_url" => $this->_a($refs, "pmcid", $refs["pmcurl"],
162 "pmcid", "PMCID: ".$refs["pmcid"]),
163 "pmc_url" => $this->_a($refs, "pmcid", $refs["pmcurl"],
164 "pmcid", "PMCID: ".$refs["pmcid"]),
165 "doi_url" => $this->_a($refs, "pmcid", $this->doiUrl.$refs["doi"],
166 "doi", "DOI: ".$refs["doi"]),
167 "journal_url" => $this->_a($refs, "pmid", $this->doiUrl.$refs["doi"],
168 "pmid", $refs["iso"]),
170 "tweet_current" => "<a href='".$this->_createTwitterUrl($refs, true).
173 "tweet_pmid" => "<a href='".$this->_createTwitterUrl($refs).
179 "booktitle" => $this->_span($refs, "title", "booktitle"),
181 "translated_title" => $this->_span($refs, "title", "translated_title"),
182 "translated_title_low" => $this->_span($refs, "title", "translated_title_low"),
183 "title_tt" => $this->_span($refs, "title", "translated_title"),
198 "abstract" => '<br/><span class="abstract">'.$refs["abstract_html"].'</span>',
199 "abstract_wiki" => $refs["abstract_wiki"],
200 "abstract_html" => $refs["abstract_html"],
212 $localPdf = $this->pubmedCache->GetLocalPdfPath($refs["pmid"], $refs["doi"]);
214 $r["localpdf"] = $this->_span($refs, "nopdf", "No PDF");
216 $r["localpdf"] = $this->_a($refs, "localPdf", $localPdf, "pmid", "PDF");
222 $v = $this->_span($refs, $key, $key);
230 $refs["abstractFr"] = $this->pubmedCache->GetTranslatedAbstract($refs["pmid"]);
231 if (empty($refs["abstractFr"])) {
232 …e("%abstractFr%", '<div class="abstractFr"><a class="abstractFr" href="'.$refs["googletranslate_ab…
236 …$outputString = str_replace("%abstractFr%", '<span class="abstract">'.$refs["abstractFr"].'</span>…
241 if (empty($refs["translated_title"])) {
245 $lg .= "<strong>".$refs["title"]."</strong></li>";
250 $lg .= "<strong>".$refs["translated_title"]."</strong></li>";
254 $lg .= $refs["title"]."</li>";
260 $lg .= implode(', ',$refs["authors"]);
265 …$lg .= " <span class='pubmed'><span class='journal'><span class='journal_title'>".$refs["journal…
269 …$lg .= "<span class='pubmed'><span class='date'>".$refs["year"]." ".$refs["month"]."</span></li>…
273 $lg .= "<span class='pubmed'><span class='iso'>".$refs["iso"]."</span></li>";
278 if (!empty($refs["mesh"])) {
279 $lg .= "<span class='mesh'>".implode(', ',$refs["mesh"])."</span> ";
280 } else if (!empty($refs["keywords"])) {
281 $lg .= "<span class='keywords'>".implode(', ',$refs["keywords"])."</span>";
288 if (!empty($refs["hashtags"])) {
291 $lg .= "<span class='pubmed'><span class='hashtags'>".$refs["hashtags"]."</span></li>";
300 …$lg .= " <a href='".$refs["googletranslate_abstract"]."' class='list-group-item pubmed' rel='noop…
304 …tp://dx.doi.org/".$refs["doi"]."' class='list-group-item pubmed' rel='noopener' target='_blank' ti…
307 … " <a href='".$refs["url"]."' class='list-group-item pubmed' rel='noopener' target='_blank' title=…
309 if (!empty($refs["similarurl"])) {
312 …$lg .= " <a href='".$refs["similarurl"]."' class='list-group-item pubmed' rel='noopener' target='…
315 if (!empty($refs["citedbyurl"])) {
318 …$lg .= " <a href='".$refs["citedbyurl"]."' class='list-group-item pubmed' rel='noopener' target='…
321 if (!empty($refs["referencesurl"])) {
324 …$lg .= " <a href='".$refs["referencesurl"]."' class='list-group-item pubmed' rel='noopener' targe…
327 if (!empty($refs["pmcid"])) {
330 …$lg .= " <a href='".$refs["pmcurl"]."' class='list-group-item pubmed' rel='noopener' target='_bla…
339 …$lg .= " <a href='".$this->_createTwitterUrl($refs)."' class='list-group-item pubmed' rel='noopen…
342 …$lg .= " <a href='".$this->_createTwitterUrl($refs, true)."' class='list-group-item pubmed' rel='…
606 $refs = $this->pubmed2020->readMedlineContent($raw, $this);
630 $output .= $this->replaceTokens($this->outputTpl[$cmd], $refs);
644 function _createTwitterUrl($refs, $currentUrl = false) { argument
649 if (!empty($refs["hashtags"])) {
650 $list = explode(",", $refs["hashtags"]);
662 if (!empty($refs["translated_title"])) {
663 $txt = $refs["translated_title"]."\n\n";
665 $txt = $refs["title"]."\n\n";
667 $txt .= $refs["journal_iso"]." ".$refs["year"]."\n";
679 && !empty($refs["pmid"])) {
681 $url = str_replace("%PMID%", $refs["pmid"], $url);
683 && !empty($refs["pmid"])) {
685 $url = str_replace("%PMCID%", $refs["pmcid"], $url);
691 $url = $refs["url"];