|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the metadata associated with this DOI.
|
|
|
|
*
|
|
|
|
* @param $form
|
|
|
|
* @param $form_state
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
function upei_roblib_ill_doi_callback($form, &$form_state) {
|
|
|
|
module_load_include('inc', 'upei_roblib_ill', 'includes/doi');
|
|
|
|
$form = upei_roblib_ill_doi_get_data($form, $form_state['values']['doi']);
|
|
|
|
return $form;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements hook_views_api().
|
|
|
|
*/
|
|
|
|
function upei_roblib_ill_views_api() {
|
|
|
|
return [
|
|
|
|
'api' => 3,
|
|
|
|
'path' => drupal_get_path('module', 'upei_roblib_ill') . '/views',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements hook_views_data().
|
|
|
|
*/
|
|
|
|
function upei_roblib_ill_views_data() {
|
|
|
|
$data['upei_roblib_ill_request']['table']['group'] = t('UPEI Roblib ILL');
|
|
|
|
$data['upei_roblib_ill_request']['table']['base'] = [
|
|
|
|
'field' => 'id',
|
|
|
|
'title' => t('UPEI Roblib ILL Request'),
|
|
|
|
'help' => t('Table for logging ILL Request'),
|
|
|
|
'weight' => -10,
|
|
|
|
];
|
|
|
|
|
|
|
|
$data['upei_roblib_ill_request']['patron_id'] = [
|
|
|
|
'title' => t('Patron or Campus ID'),
|
|
|
|
'help' => t('Patron or Campus ID.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'handler' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
|
|
|
|
$data['upei_roblib_ill_request']['id'] = [
|
|
|
|
'title' => t('Unique ID for an ILL request'),
|
|
|
|
'help' => t('Unique ID for an ILL request.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'numeric',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'numeric',
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
|
|
|
|
$data['upei_roblib_ill_request']['patron_email'] = [
|
|
|
|
'title' => t('Patron Email Address'),
|
|
|
|
'help' => t('Patron Email Address.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['patron_lastname'] = [
|
|
|
|
'title' => t('Patron Lastname'),
|
|
|
|
'help' => t('Patron Lastname.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
|
|
|
|
$data['upei_roblib_ill_request']['patron_firstname'] = [
|
|
|
|
'title' => t('Patron Firstame'),
|
|
|
|
'help' => t('Patron Firstname.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['patron_department'] = [
|
|
|
|
'title' => t('Patron Department'),
|
|
|
|
'help' => t('Patron Department.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['patron_type'] = [
|
|
|
|
'title' => t('Patron Type'),
|
|
|
|
'help' => t('Patron Type.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['author'] = [
|
|
|
|
'title' => t('Authors name'),
|
|
|
|
'help' => t('Authors Fullname.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['title'] = [
|
|
|
|
'title' => t('Book or Journal Title'),
|
|
|
|
'help' => t('Book or Patron Title.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['atitle'] = [
|
|
|
|
'title' => t('Article or Chapter Title'),
|
|
|
|
'help' => t('Article or Chapter Title.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['issn'] = [
|
|
|
|
'title' => t('ISSN'),
|
|
|
|
'help' => t('ISSN.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['isbn'] = [
|
|
|
|
'title' => t('ISBN'),
|
|
|
|
'help' => t('ISBN.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['article_author'] = [
|
|
|
|
'title' => t('Article or Chapter author'),
|
|
|
|
'help' => t('Article or Chapter author.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['citation_date'] = [
|
|
|
|
'title' => t('The date of the article'),
|
|
|
|
'help' => t('Article Date.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['pages_requested'] = [
|
|
|
|
'title' => t('The pages requested'),
|
|
|
|
'help' => t('The pages requested.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['volume'] = [
|
|
|
|
'title' => t('Volume'),
|
|
|
|
'help' => t('Volume.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['issue'] = [
|
|
|
|
'title' => t('Issue'),
|
|
|
|
'help' => t('Issue.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['genre'] = [
|
|
|
|
'title' => t('Genre'),
|
|
|
|
'help' => t('The type of item requested.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['doi'] = [
|
|
|
|
'title' => t('DOI'),
|
|
|
|
'help' => t('DOI.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'vstring',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['relais_request_id'] = [
|
|
|
|
'title' => t('The Relais request id'),
|
|
|
|
'help' => t('The Relais request id.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['relais_message'] = [
|
|
|
|
'title' => t('The reason a request failed.'),
|
|
|
|
'help' => t('The reason a request failed.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
$data['upei_roblib_ill_request']['notes'] = [
|
|
|
|
'title' => t('The notes related to this request'),
|
|
|
|
'help' => t('The notes related to this request.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'standard',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
'argument' => [
|
|
|
|
'id' => 'string',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
|
|
|
|
$data['upei_roblib_ill_request']['time_submitted'] = [
|
|
|
|
'title' => t('The Date and Time a request was submitted'),
|
|
|
|
'help' => t('The Date and Time a request was submitted.'),
|
|
|
|
'field' => [
|
|
|
|
'id' => 'date',
|
|
|
|
'click sortable' => TRUE,
|
|
|
|
],
|
|
|
|
'sort' => [
|
|
|
|
'id' => 'date',
|
|
|
|
],
|
|
|
|
'filter' => [
|
|
|
|
'id' => 'date',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
|
|
|
|
return $data;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|