Exemplo n.º 1
0
				
				<td><div style="font-size: 1.1em;"><?php 
    echo link_to_item(item('Dublin Core', 'Title'), array('class' => 'permalink', 'title' => $shortdesc));
    ?>
</div></td>
				
				
				<td>
				<?php 
    if ($creator = item('Dublin Core', 'Creator', array('all' => 'true'))) {
        ?>
                    <?php 
        foreach ($creator as $inst) {
            ?>
                    	<div style="font-size: 1.1em;"><?php 
            echo metadata_browser_create_link(metadata_browser_get_element_id("Creator"), $inst);
            ?>
</div>
                    <?php 
        }
        ?>
                <?php 
    }
    ?>
				</td>
				<td>
                
				<?php 
    if (item_has_tags()) {
        ?>
    				<div><p style="font-size: .9em;">
Exemplo n.º 2
0
function metadata_browser_element_link($name, $value)
{
    /* takes element name and value to build link
          for use primarily on "item/show page of theme
       */
    $id = metadata_browser_get_element_id($name);
    $clean_value = trim($value);
    // remove whitespace at start or end of string
    $queryURL = uri("items/browse?search=&advanced[0][element_id]=" . $id . "&advanced[0][type]=contains&advanced[0][terms]=" . $clean_value . "&range=&collection=&type=&tags=&submit_search=Search");
    $resultsLink = '<a class="browse-link" href="' . $queryURL . '" title="Browse ' . $clean_value . '">' . $clean_value . "</a>";
    return $resultsLink;
}