Skip to content

Commit

Permalink
Merge pull request #487 from MarcusBarnes/issue-482
Browse files Browse the repository at this point in the history
Initial work on #482.
  • Loading branch information
bondjimbond committed Sep 14, 2018
2 parents df1682c + 483ac3f commit 2201280
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/metadataparsers/mods/CdmToMods.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,24 @@ public function __construct($settings)
} else {
$this->metadatamanipulators = null;
}

if (isset($this->settings['METADATA_PARSER']['use_nicknames'])) {
$this->use_nicknames= $this->settings['METADATA_PARSER']['use_nicknames'];
} else {
$this->use_nicknames = false;
}
}

/**
* @param $objectInfo CONTENTdm get_item_info
*/
private function createCONTENTdmFieldValuesArray($objectInfo)
{
// Do not convert nicknames to field labels.
if ($this->use_nicknames) {
return $objectInfo;
}

// Create array with field values of proper name as $keys rather than 'nick' keys
$CONTENTdmFieldValuesArray = array();
foreach ($objectInfo as $key => $value) {
Expand Down

0 comments on commit 2201280

Please sign in to comment.