diff options
author | hakan.sandell <hakan.sandell@mydata.se> | 2008-05-18 17:29:28 +0200 |
---|---|---|
committer | hakan.sandell <hakan.sandell@mydata.se> | 2008-05-18 17:29:28 +0200 |
commit | 49ac3837eb784dcadaadeae1fdce0820974b0f12 (patch) | |
tree | 1bebbcc5e066b975a7b14a91d0b0d3ef728a9923 | |
parent | 431c7fc8f28b67627da6367eb8c1e532b596d69a (diff) | |
download | rpg-49ac3837eb784dcadaadeae1fdce0820974b0f12.tar.gz rpg-49ac3837eb784dcadaadeae1fdce0820974b0f12.tar.bz2 |
show xmp metadata in default template
darcs-hash:20080518152928-9a5f4-a1594ec08a2006ee2b94f68e766abbf6ad32701c.gz
-rw-r--r-- | inc/media.php | 4 | ||||
-rw-r--r-- | lib/tpl/default/detail.php | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/inc/media.php b/inc/media.php index a65b94e26..aa29c0d7d 100644 --- a/inc/media.php +++ b/inc/media.php @@ -540,12 +540,12 @@ function media_printimgdetail($item){ echo '</div>'; // read EXIF/IPTC data - $t = $item['meta']->getField('IPTC.Headline'); + $t = $item['meta']->getField(array('IPTC.Headline','xmp.dc:title')); $d = $item['meta']->getField(array('IPTC.Caption','EXIF.UserComment', 'EXIF.TIFFImageDescription', 'EXIF.TIFFUserComment')); if(utf8_strlen($d) > 250) $d = utf8_substr($d,0,250).'...'; - $k = $item['meta']->getField(array('IPTC.Keywords','IPTC.Category')); + $k = $item['meta']->getField(array('IPTC.Keywords','IPTC.Category','xmp.dc:subject')); // print EXIF/IPTC data if($t || $d || $k ){ diff --git a/lib/tpl/default/detail.php b/lib/tpl/default/detail.php index d0e07ce1a..0e8ddc743 100644 --- a/lib/tpl/default/detail.php +++ b/lib/tpl/default/detail.php @@ -45,10 +45,7 @@ if (!defined('DOKU_INC')) die(); <div class="img_detail"> <p class="img_caption"> - <?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption', - 'EXIF.UserComment', - 'EXIF.TIFFImageDescription', - 'EXIF.TIFFUserComment')))); ?> + <?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?> </p> <p>← <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p> @@ -76,7 +73,7 @@ if (!defined('DOKU_INC')) die(); $t = tpl_img_getTag('Simple.Camera'); if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>'; - $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category')); + $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category','xmp.dc:subject')); if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>'; ?> |