Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial work on #482. #487

Merged
merged 2 commits into from
Sep 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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