I'm not new to coding, but I'm relatively new to PHP and Omeka. I'm currently in the process of customizing my site, and I'm having what I feel must be a problem that's easy to resolve.
I'm using Omeka version 1.5.3. This is what my item pages look like: http://victorianmiscellany.com/vm/items/show/3
The "Transcriber" section is actually the "Rights Holder" field from the Dublin Core Extended plugin, and the "Transcription" section is from the transcription I've entered via the Scripto plugin. I want the Transcriber section to appear after the Transcription section, but I can't figure out how to switch those two around.
At first, I tried an echo command, but that's impractical since not all pages will contain a transcription immediately (so pages without a transcription would randomly have "Transcriber" and "Transcription" headers preceding tags, collection, citation, etc.).
So, I think this coding in functions.php is what I need to edit to get Scripto and Dublin Core metadata switched around:
{
$field = trim($field);
if (element_exists('Dublin Core', $field)) {
if ($fieldValues = item('Dublin Core', $field, 'all')) {
$html .= '<h3>'.__($field).'</h3>';
foreach ($fieldValues as $key => $fieldValue) {
if (!item_field_uses_html('Dublin Core', $field, $key)) {
$fieldValue = nls2p($fieldValue);
}
$html .= $fieldValue;
}
}
}
}
$html .= show_item_metadata(array('show_element_sets' => $otherElementSets));
return $html;
} else {
return show_item_metadata($options, $item);
}
}
The only problem is I'm not sure what I need to do to this coding now. Can anyone help? I would greatly appreciate it. Thank you!