From 7a8b502e11024ec407842cbd92c926529a1ee9dc Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 18 Aug 2005 17:59:00 +0000 Subject: - improvement : screen admin/picture_modify rewritten. Presentation copied from admin/cat_modify : fieldsets regroup fields. Ability to synchronize metadata for the displayed item. - bug 110 fixed : "return to element view from element edition fails depending on permissions". If a reachable (for the connected admin) category is available, a "jump to" link is displayed, by default, using the category given in URL. - bug fixed : in mass_updates function, the first item of $fields['update'] has not always 0 for id (as in any array). - modification : get_keywords function understands spaces as separator, allow less than 3 chars keywords, allow quotes. - new : ability to allow HTML in picture or category description (false by default) git-svn-id: http://piwigo.org/svn/trunk@825 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions_metadata.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'admin/include/functions_metadata.php') diff --git a/admin/include/functions_metadata.php b/admin/include/functions_metadata.php index ad45aca12..23b04833c 100644 --- a/admin/include/functions_metadata.php +++ b/admin/include/functions_metadata.php @@ -204,4 +204,28 @@ SELECT id, path return $files; } + +// used_metadata string is displayed to inform admin which metadata will be +// used from files for synchronization +function get_used_metadata_list() +{ + global $conf; + + $used_metadata = array('filesize', 'width', 'height'); + + if ($conf['use_exif']) + { + array_push($used_metadata, 'date_creation'); + } + + if ($conf['use_iptc']) + { + foreach (array_keys($conf['use_iptc_mapping']) as $key) + { + array_push($used_metadata, $key); + } + } + + return array_unique($used_metadata); +} ?> \ No newline at end of file -- cgit v1.2.3