Skip to content

A library is many things

I use data and technology to tell stories that facilitate personal and communal transformation.

  • Home
    • About Me
    • About the Site
    • About the Title
  • Resume and Portfolio
    • Education
    • Professional Experience
    • Leadership and Volunteer Experience
    • Technical Skills
    • Selected Presentations and Publications
  • Blog
Posted on 2013-01-102014-11-16 by Andy Meyer

Tweaking how Omeka displays Item Metadata

It’s been a while, but I’ve been busy doing some scanning as well as working on other projects. Forgive me for neglecting this blog!

Just read a cool thing on the Omeka development blog. I know it’s a baby accomplishment, but it’s my own way of getting into the more technical conversations about websites and I’m proud of myself nonetheless. Here’s how I changed the heading “Dublin Core” to “Description” for the items. (And here is the source I used: https://groups.google.com/forum/?fromgroups#!topic/omeka-dev/raQ5FEok3rc)

  1. Find the “item-metadata.php” file. Hint: it’s in application/view/scripts/items.
  2. [Write a description of what this file does…]
  3. Copy that file to a new location – theme-name/items/
  4. As noted, moving this file to a new location helps preserve this change through future upgrades to Omeka. I’m sure if I changed the file in it’s original location, it would have worked – however, the change would have been lost in a future upgrade to Omeka itself.
  5. Here is the beginning of that php file:
    <div class="element-set">
    <h2><?php echo html_escape(__($setName)); ?></h2>
     <?php foreach ($elementsInSet as $info): 
     $elementName = $info['elementName'];
     $elementRecord = $info['element'];
     if ($info['isShowable']): ?>
    ...
  6. This line is what adds the heading to the item:
    <h2><?php echo html_escape(__($setName)); ?></h2>'
  7.  I’ve removed the variable $setName and used the literal value “Description” instead.

That’s that! I’m quite happy with this minor change and glad that I managed to even read that helpful comment by one of the developers. Things I’ve learned:

  • Apparently themes trump the built in displays. Somehow omeka must look at the files in theme ‘first’ and then revert to the standards provided in the application itself. Very interesting.
  • Learned where to look to change somethings. Very intriguing.

I’ve got a very long list of things yet to learn, but so far so good!

CategoriesInformation Organization Tagsmetadata, omeka, php, tweak

Post navigation

Previous PostPrevious Tweaking the Omeka Geolocation Plugin
Next PostNext Another semester of library social media

Categories

  • Assessment
  • Ethics/Values
  • Information Organization
  • Management
  • Miscellaneous
  • Outreach and Social Media
  • Personal
  • Policy
  • Reference and Instruction
  • Technology
Andy Meyer

Categories

  • Assessment
  • Ethics/Values
  • Information Organization
  • Management
  • Miscellaneous
  • Outreach and Social Media
  • Personal
  • Policy
  • Reference and Instruction
  • Technology
Proudly powered by WordPress