Forums » changing dublin core titles/subtitles

RSS feed for this topic

Info

  1. Hi,
    I am wondering if it is possible to NOT display the words "Dublin Core" for each item on our database. Also, if it is possible to change the titles of the fields themselves (e.g., re-title the "identifier" field as "call number"). I realize that Dublin Core is a standard, so this might not be possible. Otherwise, is there a way to not display ANY Dublin Core fields, just the Item Type Meta-Data fields?

    Thanks for you help!

    ~Val

  2. Someone recently asked about this on the dev list:
    http://groups.google.com/group/omeka-dev/browse_thread/thread/ada439144a24deb7

    You'll need to open the 'item-metadata.php', in application/view/scripts/items, that governs the display of item metadata.

    custom_show_item_metadata(), which uses show_item_metadata(), uses this template file for formatting.

    If you want to remove the 'Dublin Core' heading, you could just copy the 'item-metadata.php' file to your own theme (in theme-name/items/), and remove the line '<h2><?php echo html_escape(__($setName)); ?></h2>'. this will remove the Dublin Core heading, and all subsequent headings for element sets.

    If you only want to remove it for Dublin Core, you could just do a check on $setName, something like this:

    <?php if ($setName != 'Dublin Core'): ?>
    <h2><?php echo html_escape(__($setName)); ?></h2>
    <?php endif; ?>

    While you're at it, you can of course modify any of the other HTML for element sets, element names, and values as you'd like in this template file.

  3. Thanks Sheila!

  4. I have been struggling with getting rid of the "Dublin Core" text in the item display for the last two days. I've tried copying 'item-metadata.php' to the theme 'items' directory (in several themes) and deleting the line as suggested, editing 'item-metadata.php' itself (commenting the line out, deleting it AND using the 'check' suggestion), switching back and forth among themes, everything I can think of and nothing works.

    I can edit other files and have the changes show up, so I don't think it's a permission problem. However, I am new to Omeka. I must have missed something really obvious.

    Thanks for anything!

  5. My best guess is that it really is a permissions problem, that the server doesn't have permission to read the file. In that case, Omeka would go back to reading the original item-metadata.php. The fact that you can edit other files and have changes show up might still make sense if the server always had permission to those files. It might be that when copying the file over, the permissions were somehow changed.

    So, I'd say check to make sure that the file is readable by the web server.

    HTH

  6. Hi Patrick,
    Thanks for the advice.

    I deleted 'item-metadata.php' from the theme folder and re-uploaded the original 'item-metadata.php', to application/view/scripts/items to go back to the original state as installed. I then set all of the permissions for 'item-metadata.php' to read/write/execute for owner, group and public (numeric value 777) and took out the offending <h2> line. I can see that both the permissions and the file have changed on the server, but this damned label still shows!

    I checked up the directory hierarchy and none of the preceding directories' permissions "recurse into subdirectories."

    I am using Filezilla to move files, manage permissions, etc., logged in to the admin account I used to install Omeka. The site is fully hosted at Dreamhost.com.

    I'm really stumped. Any suggestions?

  7. I'd take a look at the custom_show_item_metadata function in application/views/scripts/functions.php.

    Sheila's advice is right for every element set heading except for Dublin Core. The Dublin Core heading gets printed right in that function, so you'd need to take it out of there if you want it to be gone.

    You could also change your theme to just use the "normal" show_item_metadata function, which does obey the item-metadata.php changes for all element sets. (You'd lose the ability to specify the Dublin Core fields you want to show if you do this, though.)

  8. THANK YOU!!!

    I commented out $html = '<h2>' . __('Dublin Core') . '</h2>'; in the custom_show_item_metadata function in application/views/scripts/functions.php and it worked! The "Dublin Core" label is gone and nothing else seems affected.

    Thanks again.

Reply

You must log in to post.