From bc9a05258c8865474510498779fe4b0a59f921f9 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 10 Oct 2022 20:14:00 +0200 Subject: [PATCH] eval more tags in iptc data --- views/bootstrap/class.ViewDocument.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index c648be8b6..25ee91fca 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -201,6 +201,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style { '2#020'=>'Subcategories', '2#040'=>'SpecialInstructions', '2#055'=>'CreationDate', + '2#060'=>'CreationTime', '2#080'=>'AuthorByline', '2#085'=>'AuthorTitle', '2#090'=>'City', @@ -214,12 +215,17 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style { '2#120'=>'Caption', '2#122'=>'CaptionWriter' ); - $retStr = ''; + $retStr = '
'; if(is_array($arr)) { foreach ($arr as $key=>$val) { if(isset($iptcHeaderArray[$key])) $retStr .= ''; - else + elseif($key == '1#090') { + $retStr .= ''; + } elseif($key == '2#000') { + $retStr .= ''; + + } else $retStr .= ''; } }
' . $iptcHeaderArray[$key] . '' . htmlspecialchars(implode('; ', $val)) . '
Encoding' . (($val[0] == "\x1B%G") ? 'UTF-8' : '') . '
RecordVersion' . ord($val[0]) . '
' . $key . '' . htmlspecialchars(implode('; ', $val)) . '