function biblio_fix_isi_links in Bibliography Module 6
Same name and namespace in other branches
- 6.2 biblio.module \biblio_fix_isi_links()
- 7 biblio.module \biblio_fix_isi_links()
- 7.2 biblio.module \biblio_fix_isi_links()
2 calls to biblio_fix_isi_links()
- biblio_show_results in ./
biblio.pages.inc - biblio_show_results takes the query results from biblio_db_search and adds some controls to the page then loops through the results applying the selected style to each entry
- biblio_view in ./
biblio.module - Implementation of hook_view().
3 string references to 'biblio_fix_isi_links'
- biblio_admin_settings in ./
biblio.admin.inc - Implementation of hook_settings().
- biblio_show_results in ./
biblio.pages.inc - biblio_show_results takes the query results from biblio_db_search and adds some controls to the page then loops through the results applying the selected style to each entry
- biblio_view in ./
biblio.module - Implementation of hook_view().
File
- ./
biblio.module, line 2408
Code
function biblio_fix_isi_links(&$node) {
$isi = check_plain(variable_get('biblio_isi_url', 'http://apps.isiknowledge.com/InboundService.do?Func=Frame&product=WOS&action=retrieve&SrcApp=EndNote&Init=Yes&SrcAuth=ResearchSoft&mode=FullRecord&UT='));
if (isset($node->biblio_url) && preg_match('/Go\\s*to\\s*ISI/', $node->biblio_url)) {
$node->biblio_url = str_replace('<Go to ISI>://', $isi, $node->biblio_url);
}
if (isset($node->biblio_accession_number) && preg_match('/^ISI:/', $node->biblio_accession_number)) {
$node->biblio_accession_number = str_replace("ISI:", $isi, $node->biblio_accession_number);
}
}