From 8155f7009c16f031aff72afa5d42d4d2379c9836 Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Wed, 21 Jun 2017 10:02:26 -0300 Subject: [PATCH] added isbn to doi parsing also we should now get the correct author for book chapters when parsing dois --- includes/doi.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/doi.inc b/includes/doi.inc index bbbf2b0..fc3f2ab 100644 --- a/includes/doi.inc +++ b/includes/doi.inc @@ -95,11 +95,12 @@ function upei_roblib_ill_populate_form_doi($crossref_xml, $form) { upei_roblib_ill_get_xml_node($crossref_xml, 'last_page'); $form['Volume']['#value'] = upei_roblib_ill_get_xml_node($crossref_xml, 'volume'); $form['Issue']['#value'] = upei_roblib_ill_get_xml_node($crossref_xml, 'issue'); + $form['ISBN']['#value'] = upei_roblib_ill_get_xml_node($crossref_xml, 'isbn'); foreach ($crossref_xml->getElementsbyTagName('person_name') as $person) { if ($person->getAttribute('contributor_role') == 'author' && $person->getAttribute('sequence') == 'first' ) { - $author = upei_roblib_ill_get_xml_node($crossref_xml, 'surname') . ',' . upei_roblib_ill_get_xml_node($crossref_xml, 'given_name'); + $author = upei_roblib_ill_get_xml_node($person, 'surname') . ',' . upei_roblib_ill_get_xml_node($person, 'given_name'); } } $form['ArticleAuthor']['#value'] = $author;