{"action":"created","issue":{"url":"https://api.github.com/repos/mistic100/Piwigo/issues/62","labels_url":"https://api.github.com/repos/mistic100/Piwigo/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/mistic100/Piwigo/issues/62/comments","events_url":"https://api.github.com/repos/mistic100/Piwigo/issues/62/events","html_url":"https://github.com/mistic100/Piwigo/issues/62","id":97225487,"number":62,"title":"[metadata] Ajouter d'autres champs IPTC aux tags","user":{"login":"plegall","id":9326959,"avatar_url":"https://avatars.githubusercontent.com/u/9326959?v=3","gravatar_id":"","url":"https://api.github.com/users/plegall","html_url":"https://github.com/plegall","followers_url":"https://api.github.com/users/plegall/followers","following_url":"https://api.github.com/users/plegall/following{/other_user}","gists_url":"https://api.github.com/users/plegall/gists{/gist_id}","starred_url":"https://api.github.com/users/plegall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plegall/subscriptions","organizations_url":"https://api.github.com/users/plegall/orgs","repos_url":"https://api.github.com/users/plegall/repos","events_url":"https://api.github.com/users/plegall/events{/privacy}","received_events_url":"https://api.github.com/users/plegall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mistic100/Piwigo/labels/feature","name":"feature","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"plegall","id":9326959,"avatar_url":"https://avatars.githubusercontent.com/u/9326959?v=3","gravatar_id":"","url":"https://api.github.com/users/plegall","html_url":"https://github.com/plegall","followers_url":"https://api.github.com/users/plegall/followers","following_url":"https://api.github.com/users/plegall/following{/other_user}","gists_url":"https://api.github.com/users/plegall/gists{/gist_id}","starred_url":"https://api.github.com/users/plegall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plegall/subscriptions","organizations_url":"https://api.github.com/users/plegall/orgs","repos_url":"https://api.github.com/users/plegall/repos","events_url":"https://api.github.com/users/plegall/events{/privacy}","received_events_url":"https://api.github.com/users/plegall/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-07-25T13:06:38Z","updated_at":"2015-07-25T20:44:52Z","closed_at":null,"body":"**Reported by A_wikatchikaen on 17 Mar 2008 11:16**\n\n**Version:** 1.7.1\n\nApres une discussion dans le fourm (http://forum.phpwebgallery.net/viewtopic.php?pid=84846#p84846), j&#039;ai modifié le code pour pouvoir utiliser plusieurs champs IPTC aux tags de PWG.\r\n\r\n1 - Modifier le config.inc (les indices sont à vérifier)\r\n\r\n$conf[&#039;use_iptc_mapping&#039;] = array(\r\n  &#039;keywords&#039;        =&gt; &#039;2#025&#039;,\r\n  &#039;subject&#039;        =&gt; &#039;2#020&#039;,\r\n  &#039;place&#039;           =&gt; &#039;2#.....\r\n\r\n2 - Dans site_update.php, ligne 845 modifier \r\n\r\nforeach (array(&#039;keywords&#039;, &#039;tags&#039;) as $key){\r\npar\r\nforeach (array(&#039;place&#039;, &#039;subject&#039;, &#039;keywords&#039;, &#039;tags&#039;) as $key){\r\n\r\n3 - Toujours dans site_update.php, ligne 886, remplacer \r\n\r\narray(&#039;keywords&#039;, &#039;tags&#039;)\r\npar\r\narray(&#039;keywords&#039;, &#039;tags&#039;, &#039;subject&#039;, &#039;place&#039;)\r\n\n\n[Piwigo Bugtracker #813](http://piwigo.org/bugs/view.php?id=813)"},"comment":{"url":"https://api.github.com/repos/mistic100/Piwigo/issues/comments/124890614","html_url":"https://github.com/mistic100/Piwigo/issues/62#issuecomment-124890614","issue_url":"https://api.github.com/repos/mistic100/Piwigo/issues/62","id":124890614,"user":{"login":"plegall","id":9326959,"avatar_url":"https://avatars.githubusercontent.com/u/9326959?v=3","gravatar_id":"","url":"https://api.github.com/users/plegall","html_url":"https://github.com/plegall","followers_url":"https://api.github.com/users/plegall/followers","following_url":"https://api.github.com/users/plegall/following{/other_user}","gists_url":"https://api.github.com/users/plegall/gists{/gist_id}","starred_url":"https://api.github.com/users/plegall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plegall/subscriptions","organizations_url":"https://api.github.com/users/plegall/orgs","repos_url":"https://api.github.com/users/plegall/repos","events_url":"https://api.github.com/users/plegall/events{/privacy}","received_events_url":"https://api.github.com/users/plegall/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T20:44:51Z","updated_at":"2015-07-25T20:44:51Z","body":"**Comment posted by Eric B on 30 Jun 2009 21:17**\n\nmoi aussi cette feature m interesse. Je remonte donc la requète via le topic http://fr.piwigo.org/forum/viewtopic.php?id=13862\r\n\r\nMa solution actuelle est de retagger mes fichier sources, par ex:\r\nexiftool -overwrite_original &quot;-IPTC:Category+&gt;IPTC:Keywords&quot; *.jpg\r\nmais j aimerais éviter cette étape. \r\nPour l instant, si on utilise plusieurs fois keywords ds le use_iptc_mapping, seule le dernier est pris en compte. Je vais donc tenté le mod proposé par A_wikatchikaen.\r\n\r\nD&#039;une manière plus générale, la sync effectuée par site_update.php est un peu obscure. Il faut en effet déjà savoir que le use_xxx_mapping n accepte que certains champs bien précis (qui correspondent aux tags ou au champs de la table img), alors qu&#039;à 1ere lecture, on croit pouvoir ajouter tout et n importe quoi dedans. Je pense notamment à cette discussion: http://fr.piwigo.org/forum/viewtopic.php?id=15374."}}