function biblio_fix_isi_links in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 biblio.module \biblio_fix_isi_links()
- 6 biblio.module \biblio_fix_isi_links()
- 7 biblio.module \biblio_fix_isi_links()
@todo add relevant documentation
Parameters
object $node:
1 call to biblio_fix_isi_links()
- biblio_load_old in ./
biblio.module - Implementation of hook_load().
2 string references to 'biblio_fix_isi_links'
- biblio_admin_settings in includes/
biblio.admin.inc - Implementation of hook_settings().
- biblio_load_old in ./
biblio.module - Implementation of hook_load().
File
- ./
biblio.module, line 2396
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']);
}
}