You are here

function biblio_fix_isi_links in Bibliography Module 6.2

Same name and namespace in other branches
  1. 6 biblio.module \biblio_fix_isi_links()
  2. 7 biblio.module \biblio_fix_isi_links()
  3. 7.2 biblio.module \biblio_fix_isi_links()
2 calls to biblio_fix_isi_links()
biblio_show_results in includes/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
Implements hook_view().
3 string references to 'biblio_fix_isi_links'
biblio_admin_settings in includes/biblio.admin.inc
Implements hook_settings().
biblio_show_results in includes/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
Implements hook_view().

File

./biblio.module, line 2505
Main file for Drupal module biblio.

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