diff --git a/doi_display.module b/doi_display.module
index 9735649..23df4ae 100755
--- a/doi_display.module
+++ b/doi_display.module
@@ -193,17 +193,17 @@ function _doi_display_get_content() {
// If a DOI exists for this page, display it
if (isset($doi_node->field_doi_reference['und'][0]['target_id'])) {
- $citation = $doi_node->field_doi_full_citation['und'][0][value];
-
+ $citation = $doi_node->field_doi_full_citation['und'][0]['value'];
+dsm($doi_node->field_doi_identifier['und'][0]['value']);
// Output text from module to be displayed in the block
- $output = ("When referencing the " . $doi_node->field_doi_title['und'][0][value] . " in publications or proposals, please use the identifier " . $doi . " -- for example as a citation:
" . $citation . "Please be careful of linebreaks when cutting and pasting the above text, and feel free to reformat to fit your document. Additional citation styles are avilable at DataCite or CrossCite.
" . $citation . "Please be careful of linebreaks when cutting and pasting the above text, and feel free to reformat to fit your document. Additional citation styles are avilable at DataCite or CrossCite.
" . $fup_node->field_publication_full_citation['und'][0][value] . ""); + $output = ($output . $additional . "
" . $fup_node->field_publication_full_citation['und'][0]['value'] . ""); } } @@ -223,11 +223,11 @@ function _update_doi_node_contents($doi_node) { drupal_set_message('Unable to retrieve DOI metadata. Please check to make sure the DOI is formatted properly.', 'error'); } else { // Create variables for each of the metadata items - $doi_node->field_doi_identifier['und'][0][value] = $xmlobj->identifier; - $doi_node->field_doi_creator['und'][0][value] = $xmlobj->creators->creator->creatorName; - $doi_node->field_doi_title['und'][0][value] = $xmlobj->titles->title; - $doi_node->field_doi_publisher['und'][0][value] = $xmlobj->publisher; - $doi_node->field_doi_description['und'][0][value] = $xmlobj->descriptions->description; + $doi_node->field_doi_identifier['und'][0]['value'] = $xmlobj->identifier; + $doi_node->field_doi_creator['und'][0]['value'] = $xmlobj->creators->creator->creatorName; + $doi_node->field_doi_title['und'][0]['value'] = $xmlobj->titles->title; + $doi_node->field_doi_publisher['und'][0]['value'] = $xmlobj->publisher; + $doi_node->field_doi_description['und'][0]['value'] = $xmlobj->descriptions->description; // For loop to add all contributors to the contributors field $contributors_field = ''; @@ -236,12 +236,12 @@ function _update_doi_node_contents($doi_node) { $contributors_field = $contributors_field . $contributor->attributes() . ": " . $contributor->contributorName . "\r\n"; } - $doi_node->field_doi_contributors['und'][0][value] = $contributors_field; + $doi_node->field_doi_contributors['und'][0]['value'] = $contributors_field; - $doi_node->field_doi_dates['und'][0][value] = $xmlobj->dates->date; - $doi_node->field_doi_rights['und'][0][value] = $xmlobj->rightsList->rights; - $doi_node->field_doi_location['und'][0][value] = $xmlobj->geoLocations->geoLocation->geoLocationPlace; - $doi_node->field_doi_full_citation['und'][0][value] = _doi_display_get_full_citation_from_doi($doi_node->field_doi_identifier['und'][0][value]); + $doi_node->field_doi_dates['und'][0]['value'] = $xmlobj->dates->date; + $doi_node->field_doi_rights['und'][0]['value'] = $xmlobj->rightsList->rights; + $doi_node->field_doi_location['und'][0]['value'] = $xmlobj->geoLocations->geoLocation->geoLocationPlace; + $doi_node->field_doi_full_citation['und'][0]['value'] = _doi_display_get_full_citation_from_doi($doi_node->field_doi_identifier['und'][0]['value']); } return($doi_node);