You are here

function biblio_fix_isi_links in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 biblio.module \biblio_fix_isi_links()
  2. 6 biblio.module \biblio_fix_isi_links()
  3. 7.2 biblio.module \biblio_fix_isi_links()
1 call to biblio_fix_isi_links()
biblio_load in ./biblio.module
Implements hook_load().
2 string references to 'biblio_fix_isi_links'
biblio_admin_settings in includes/biblio.admin.inc
Implementation of hook_settings().
biblio_load in ./biblio.module
Implements hook_load().

File

./biblio.module, line 2422
Bibliography Module for Drupal.

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']);
  }
}