Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Use the VRA Core metadata standard in Omeka

Notifications You must be signed in to change notification settings

LIS462Omeka/plugin-VraCore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plugin-VraCore

Use the (VRA Core metadata standard in Omeka.

Installation

Usual Omeka installation procedure. A "VRA Core" Element Set will be installed, as well as tables for VRA Elements and Attributes data.

Usage

Simplest settings

If you only want to use the display values (equivalent to the <display> element of a VRA elementSet), check all the boxes in the configuration form. This will hide all VRA cataloging data from forms and display.

Medium settings

If you do not want to store or show attribute data, check the "Hide Attributes" configuration option.

VRA Core XML and Omeka data correspondences

This plugin negotiates the differences between Omeka's data model and the XML-based data model of VRA Core in the following ways.

The VRA Core Element Set provides the usual Omeka inputs for metadata, exactly parallel to Dublin Core. That "usual" input in Omeka corresponds to the <display> element of VRA Core within an <{element}Set>. All inputs should be considered child elements of a VRA <{element}Set>.

In keeping with Omeka's emphasis on public, online, display, the display elements are allowed to contain HTML (which is typically not allowed in a VRA Core XML document).

Non-display VRA elements are handled separately, and should not contain HTML. Inputs corresponding to those elements are provided below the display input.

For example, to represent something like

<titleSet>
  <display>Mona Lisa</display>
  <title type='common'>Mona Lisa</title> 
</titleSet>

the data entry would look like

VRA Title Example

The various layers of subelements appear as expandable sections. Appropriate attributes also appear under each entry form for a VRA element. @dataDate attribute values are added automatically when the data is saved.

This system applies to Omeka Items, Collections, and Files, which could be used to correspond to VRA Core Works, Collections, and Images.

Developer Gotchas

To display the VRA data, the plugin replaces Omeka's usual record-metadata.php template. If your theme overrides the default record-metadata.php template, you will want to adjust the file in your theme to include the added 'elements-show' hook:

    <div id="<?php echo text_to_id(html_escape("$setName $elementName")); ?>" class="element">
        <h3><?php echo html_escape(__($elementName)); ?></h3>
        <?php foreach ($elementInfo['texts'] as $text): ?>
            <div class="element-text"><?php echo $text; ?></div>
        <?php endforeach; ?>
        <?php fire_plugin_hook('elements_show',
                                array('view' => $this,
                                     'elementInfo' => $elementInfo,
                                     'record' => $record
                                     )
                               );
        ?>
    </div><!-- end element -->

If your theme does not contain a common/record-metadata.php file, there is no need to make changes.

Importing data via CSV

With the VRA Core plugin installed and activated, use the CSV Importer plugin to import display data from your CSV file. Non-display data cannot be imported, and data cannot be imported from VRA Core XML files.

About

Use the VRA Core metadata standard in Omeka

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 93.9%
  • JavaScript 4.2%
  • CSS 1.9%