I am trying to hide or change the heading 'Dublin Core' that appears
on /items/show.php. It appears to wrapped up in the following: <?php
echo custom_show_item_metadata(); ?>
It displays on a web page as <h2>Dublin Core</h2>.
Has anyone successfully achieved hiding/deleting this or other parts
of the item metadata?
Thanks for your help,
Merrin (University of Otago Library, Dunedin, New Zealand)
--
You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
To post to this group, send email to omek...@googlegroups.com.
To unsubscribe from this group, send email to omeka-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/omeka-dev?hl=en.
There is a template file, '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, adn all subsequent headings for element sets. (I wouldn't recomment directly editing application/views/scripts/item-metadata.php, since you would potentially lose those changes with any upgrades.)
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.
Best,
Jeremy
> To unsubscribe from this group, send email to omeka-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/omeka-dev/-/J8E4J31KxeEJ.
To post to this group, send email to omek...@googlegroups.com.
To unsubscribe from this group, send email to omeka-dev+...@googlegroups.com.
The answer is not quite so obvious, but pretty easy to implement.There is a template file, '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.
items?
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/),
What is the file that has the template file, 'item-metadata.php', in application/view/scripts/items?
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/),
I use theme seasons and in my directory I have two files
random-featured.php show.php
sorry for my questions
now I see the problem..
the file
record-metadata.php
that is in the directory
var/www/application/views/scripts/common#
In these file I must remove the line
<?php echo html_escape(__($setName)); ?></h2>
Thanks
Gus