You are here

function _biblio_get_user_openurl_form in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 includes/biblio.admin.inc \_biblio_get_user_openurl_form()
  2. 7 includes/biblio.admin.inc \_biblio_get_user_openurl_form()
  3. 7.2 includes/biblio.admin.inc \_biblio_get_user_openurl_form()
1 call to _biblio_get_user_openurl_form()
biblio_user in ./biblio.module
Implementation of hook_user().

File

./biblio.admin.inc, line 1468

Code

function _biblio_get_user_openurl_form(&$form, $user) {
  $form['openurl'] = array(
    '#type' => 'fieldset',
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    '#title' => t('OpenURL'),
    '#description' => t('You can set an <a href="http://en.wikipedia.org/wiki/OpenURL">openurl</a> link here'),
  );
  $form['openurl']['biblio_baseopenurl'] = array(
    '#type' => 'textfield',
    '#title' => t('OpenURL Base URL'),
    '#size' => 95,
    '#default_value' => !empty($user->biblio_baseopenurl) ? $user->biblio_baseopenurl : '',
    '#description' => t('This sets your base <a href="http://en.wikipedia.org/wiki/OpenURL">OpenURL</a> gateway, which is used to generate OpenURL links. To implement a "Universal" OpenURL system, try using OCLC\'s <a href="http://www.oclc.org/productworks/urlresolver.htm">OpenURL Resolver Registry</a> gateway: <a href="http://worldcatlibraries.org/registry/gateway">http://worldcatlibraries.org/registry/gateway</a>'),
  );
  $sid = "Biblio:" . variable_get('site_name', 'Drupal');
  $form['openurl']['biblio_openurl_sid'] = array(
    '#type' => 'textfield',
    '#title' => t('OpenURL Site ID'),
    '#size' => 95,
    '#default_value' => !empty($user->biblio_openurl_sid) ? $user->biblio_openurl_sid : '',
    '#description' => t('This sets your site name, some link resolvers will require a specific Site ID in order to process your requests.'),
  );
  return $form;
}