public function testOutputFormatListWithNewDelimiter() { $delimiter = ', '; $this->dispatch('/items/browse'); $html = '<p id="output-format-list">'; $html .= '<a href="/items/browse?output=atom">atom</a>'; $html .= $delimiter; $html .= '<a href="/items/browse?output=dcmes-xml">dcmes-xml</a>'; $html .= $delimiter; $html .= '<a href="/items/browse?output=json">json</a>'; $html .= $delimiter; $html .= '<a href="/items/browse?output=omeka-json">omeka-json</a>'; $html .= $delimiter; $html .= '<a href="/items/browse?output=omeka-xml">omeka-xml</a>'; $html .= $delimiter; $html .= '<a href="/items/browse?output=rss2">rss2</a>'; $html .= '</p>'; $this->assertEquals($html, output_format_list(false, $delimiter)); }
<?php fire_plugin_hook('public_items_browse_each', array('view' => $this, 'item' => $item)); ?> </div><!-- end class="item-meta" --> </div><!-- end class="item hentry" --> <?php } ?> <?php echo pagination_links(); ?> <div id="outputs"> <span class="outputs-label"><?php echo __('Output Formats'); ?> </span> <?php echo output_format_list(false); ?> </div> <?php fire_plugin_hook('public_items_browse', array('items' => $items, 'view' => $this)); ?> <?php echo foot();
echo __('Citation'); ?> </h3> <div class="element-text"><?php echo metadata('item', 'citation', array('no_escape' => true)); ?> </div> </div> <div id="item-output-formats" class="element"> <h3><?php echo __('Output Formats'); ?> </h3> <div class="element-text"><?php echo output_format_list(); ?> </div> </div> </div> </div> </div> <?php fire_plugin_hook('public_items_show', array('view' => $this, 'item' => $item)); ?> <ul class="pager"> <li class="previous"><?php echo link_to_previous_item_show(); ?> </li>
$title = metadata('collection', array('Dublin Core', 'Title')); $subject = metadata('collection', array('Dublin Core', 'Subject')); $description = metadata('collection', array('Dublin Core', 'Description')); $creators = metadata('collection', array('Dublin Core', 'Creator')); $source = metadata('collection', array('Dublin Core', 'Source')); $publisher = metadata('collection', array('Dublin Core', 'Publisher')); $date = metadata('collection', array('Dublin Core', 'Date')); $contributors = metadata('collection', array('Dublin Core', 'Contributor')); $rights = metadata('collection', array('Dublin Core', 'Rights')); $relation = metadata('collection', array('Dublin Core', 'Relation')); $format = metadata('collection', array('Dublin Core', 'Format')); $language = metadata('collection', array('Dublin Core', 'Language')); $type = metadata('collection', array('Dublin Core', 'Type')); $identifier = metadata('collection', array('Dublin Core', 'Identifier')); $coverage = metadata('collection', array('Dublin Core', 'Coverage')); $outputFormat = output_format_list(false, ''); $id = metadata('collection', 'id'); function showCollectionDescriptionTag($tagName, $tagVal) { echo __('<div class="collection-description-tag">'); echo __(' <h1>' . $tagName . '</h1>'); if ($tagName == 'TITLE') { echo __(' <b>' . $tagVal . '</b>'); } else { echo __(' <p>' . $tagVal . '</p>'); } echo __('</div>'); } ?> <?php
<hr> <?php echo get_specific_plugin_hook_output('Corrections', 'public_items_show', array('view' => $this, 'item' => $item)); ?> <hr> </div> </div> <?php echo get_specific_plugin_hook_output('Geolocation', 'public_items_show', array('view' => $this, 'item' => $item)); ?> <hr> <h6>Item data</h6> <p>Metadata for this item is available in the following formats: <?php echo output_format_list(false, ' | '); ?> </p> <hr> <?php $url = current_url(); $pos = strpos($url, 'exhibits'); if (!$pos) { ?> <nav> <ul class="pager"> <li id="previous-item" class="previous"><?php echo link_to_previous_item_show('← Previous'); ?> </li> <li id="next-item" class="next"><?php