Hi all,
I'm using version 2.1.2 and have the COinS plugin enabled (I tried dis-and-re-enabling it just in case), but no COinS info appears to be added to items, either on the individual page, or on browse pages. It's not visible in the HTML code, and Zotero treats the items as regular web pages with an abstract, ignoring creator, date, etc. This is true both in both admin and public views. I've not changed a thing in the admin theme, but I am using a slightly customized version of Berlin for the public site.
I gave the old advice in this post a whirl http://omeka.org/forums/topic/how-to-build-a-publications-page-academic-website
but it unsurprisingly didn't help. I'm not sure what hook to call where to fix the problem. My custom show.php is below; I have not modified browse.php.
<br />
<?php echo head(array('title' => metadata('item', array('Dublin Core', 'Title')),'bodyclass' => 'items show')); ?><br />
<div><br />
<ul class="item-pagination navigation"><br />
<li id="previous-item" class="previous"><?php echo link_to_previous_item_show(); ?><br />
<li id="next-item" class="next"><?php echo link_to_next_item_show(); ?></p>
<p></div><br />
<div><h1><?php echo metadata('item', array('Dublin Core','Title')); ?></h1></div><br />
<div id="primary" style="float: left; width: 200px; margin-left:20px;"></p>
<p> <!-- Items File --><br />
<h3 style="margin-bottom:10px"><?php echo __('Files'); ?></h3><br />
<div id="item-images"><br />
<?php echo files_for_item(); ?><br />
</div></p>
<p> <!-- The following prints a citation for this item. --><br />
<div id="item-citation" class="element"><br />
<h3><?php echo __('Citation'); ?></h3><br />
<div class="element-text"><?php echo metadata('item','citation',array('no_escape'=>true)); ?></div><br />
</div></p>
<p> <!-- The following prints a list of all tags associated with the item --><br />
<?php if (metadata('item','has tags')): ?><br />
<div id="item-tags" class="element"><br />
<h3><?php echo __('Tags'); ?></h3><br />
<div class="element-text"><?php echo tag_string('item'); ?></div><br />
</div><br />
<?php endif;?></p>
<p></div> <!-- End of Primary. --></p>
<p><!-- Begin Dublin Core. --><br />
<div id="secondary" style="float: left; display: inline; margin-left: 10px; width: 460px; margin-right: 0px; padding-left: 10px;"><br />
<div id="item-metadata"><br />
<?php echo all_element_texts('item'); ?><br />
</div></p>
<p> <?php if(metadata('item','Collection Name')): ?><br />
<div id="collection" class="element"><br />
<h3><?php echo __('Collection'); ?></h3><br />
<div class="element-text"><?php echo link_to_collection_for_item(); ?></div><br />
</div><br />
<?php endif; ?></p>
<p> <?php fire_plugin_hook('public_items_show', array('view' => $this, 'item' => $item)); ?></p>
<p></div> <!-- End of Secondary. --><br />
<div><br />
<ul class="item-pagination navigation"><br />
<li id="previous-item" class="previous"><?php echo link_to_previous_item_show(); ?><br />
<li id="next-item" class="next"><?php echo link_to_next_item_show(); ?></p>
<p></div></p>
<p> <?php echo foot(); ?><br />
It would be really helpful if the plugin documentation included the code necessary to make themes COinS compatible, especially given the relatively sparse documentation for theming in 2.0 vs 1.x.
tl;dr: What code do I need to add to show.php and browse.php, and where do I need to add it?
Thanks!