Provide full list of available metadata fields to select from for
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 5 Aug 2009 20:23:14 +0000 (16:23 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 5 Aug 2009 20:23:14 +0000 (16:23 -0400)
auto-tagging from.

Still need to implement a mapping preference for things like
automatically filling in image title, watermarking (from Artist or
Usage fields) etc...

ansel/config/prefs.php.dist

index 4901d60..307063b 100644 (file)
@@ -257,11 +257,12 @@ $_prefs['group_permissions'] = array(
 );
 
 $_prefs['exif_tags'] = array(
-    'value' => 'a:0{}',
+    'value' => 'a:0:{}',
     'locked' => false,
     'shared' => false,
     'type' => 'multienum',
-    'desc' => _("Which EXIF fields should we automatically add as photo tags during upload?"),
-    'enum' => array('DateTimeOriginal' => _("Date Photo Taken"),
-                    'ExposureTime' => _("Exposure Time"))
+    'desc' => _("Which EXIF fields should we automatically add as image tags during upload?"),
+    'enum' => Horde_Image_Exif::getFields(array($GLOBALS['conf']['exif']['driver'],
+                                                !empty($GLOBALS['conf']['exif']['params']) ? $GLOBALS['conf']['exif']['params'] : array()),
+                                          true)
 );