How to customize meta-data order in the item display. For example, we would like to put description after title rather than subjects.
How to customize meta-data order in the item display. For example, we would like to put description after title rather than subjects.
See this posting:
http://omeka.org/forums/topic/reordering-individual-metadata-fields
so, is there a file I can edit in the core? Or do I need to put functions in a separate file and if so, what files are required and included in html wrapper? I rather merely modify core so I do not have to re-invent wheel and write a new theme, etc.
Also, see this:
http://omeka.org/codex/Display_Specific_Metadata_for_an_Item
but again, feels non contextual.
Please hold my hand.
Thanks.
rom \theme\dark\items\show.php
removed:
<?php echo show_item_metadata(); ?>
and pasted in:
<?php echo item('Title'); ?>
<?php echo item('Description'); ?>
<?php echo item('Creator'); ?>
<?php echo item('Subject'); ?>
put data does not display.
Am I missing something?
Remember to add the element set, which is Dublin Core in this case:
<?php echo item('Dublin Core', 'Title'); ?>
<?php echo item('Dublin Core', 'Description'); ?>
<?php echo item('Dublin Core', 'Creator'); ?>
<?php echo item('Dublin Core', 'Subject'); ?>
Thank you. Could you oint me to the page on Omeka that lists all the DC fields?
in themes/../items/show.php removed:
<?php echo show_item_metadata(); ?>
added:
<?php echo item('Dublin Core', 'Title'); ?>
<?php echo item('Dublin Core', 'Description'); ?>
<?php echo item('Dublin Core', 'Creator'); ?>
<?php echo item('Dublin Core', 'Subject'); ?>
but Description, Creator, Subjects fields do not appear in item record:
http://library.gc.cuny.edu/34th_st/items
=>
http://library.gc.cuny.edu/34th_st/items/show/14
Actually it is there just was too small to notice.
Please point me to the list of DC (extended) fields.
Thank you.
http://dublincore.org/documents/dcmi-terms/#H2
Thanks, after ordering my fields by manually entering:
<div id="title" class="element"> <h2>Title</h2> <?php echo item('Dublin Core', 'Title'); ?></div>
etc.
None of the other fields|elements appear at the end of my DC fields.
Following this:
(it appears right below: <div id="provenance" class="element"><h3>Contributing Institution</h3> <?php echo item('Dublin Core', 'provenance'); ?></div> )
This code doe snot return anything:
<div id="itemfiles" class="element">
<h3>Files</h3>
<div class="element-text"><?php echo display_files_for_item(); ?></div>
</div>
<!-- If the item belongs to a collection, the following creates a link to that collection. -->
<?php if ( item_belongs_to_collection() ): ?>
<div id="collection" class="element">
<h3>Collection</h3>
<div class="element-text"><p><?php echo link_to_collection_for_item(); ?></p></div>
</div>
<?php endif; ?>
<!-- The following prints a list of all tags associated with the item -->
<?php if(item_has_tags()): ?>
<div id="item-tags" class="element">
<h3>Tags</h3>
<div class="element-text"><?php echo item_tags_as_string(); ?></div>
</div>
<?php endif;?>
<!-- The following prints a citation for this item. -->
<div id="item-citation" class="element">
<h3>Citation</h3>
<div class="element-text"><?php echo item_citation(); ?></div>
</div>
<ul class="item-pagination navigation">
<li id="previous-item" class="previous">
<?php echo link_to_previous_item('Previous Item'); ?>
<li id="next-item" class="next">
<?php echo link_to_next_item('Next Item'); ?>
<?php echo plugin_append_to_items_show(); ?>
</div><!-- end primary -->
<?php foot(); ?>
How do I create an array of Subjects?
Currently, I am using:
<div class="element-text">
<div id="item-tags" class="element">
<h4><b>Subjects:</b></h4>
<?php echo item('Dublin Core', 'Subject'); ?>
</div></div>
Which only returns one subject for a record.
If I use:
<div class="element-text">
<div id="item-tags" class="element">
<h4><b>Tags:</b></h4>
<?php echo item_tags_as_string(); ?></div> </div>
More than one subject (with tag checkbox) clicked but subjects contain commas and do not import correctly via CSV.
Can I echo the array of subjects in each record using:
<div class="element-text">
<div id="item-tags" class="element">
<h4><b>Subjects:</b></h4>
<?php echo item('Dublin Core', 'Subject'); ?>
</div></div>