Skip to content

Commit

Permalink
Example of including unqualified DC in the output. Basically adds a l…
Browse files Browse the repository at this point in the history
…oop for a specific item's metadata element. A similar approach can be used in other parts of the output that may require this.
  • Loading branch information
davelester committed Jul 23, 2012
1 parent ff8c2da commit a7194d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion views/shared/items/show.pbcore.php
Expand Up @@ -8,7 +8,11 @@

<PBCoreAssetDate dateType="Broadcast"><?php echo item('PBCore', 'Date Broadcast'); ?></PBCoreAssetDate>
<PBCoreIdentifier source="Internet Archive"><?php echo item('PBCore', 'Identifier'); ?></PBCoreIdentifier>
<PBCoreTitle><?php echo item('PBCore', 'Title'); ?></PBCoreTitle>

<?php foreach (item('PBCore', 'Title', array('all'=>true)) as $title) { ?>
<PBCoreTitle><?php echo $title; ?></PBCoreTitle>
<?php } ?>

<PBCoreTitle titleType="Episode"><?php echo item('PBCore', 'Episode Title'); ?></PBCoreTitle>
<PBCoreTitle titleType="Series"><?php echo item('PBCore', 'Series Title'); ?></PBCoreTitle>

Expand Down

0 comments on commit a7194d8

Please sign in to comment.