During upload, Coppermine automatically fills the title, caption and keywords of an image, if there's appropriate IPTC data:
if ($CONFIG['read_iptc_data']) {
// read IPTC data
$iptc = get_IPTC($image);
if (is_array($iptc) && !$title && !$caption && !$keywords) { //if any of those 3 are filled out we don't want to override them, they may be blank on purpose.
$title = (isset($iptc['Headline'])) ? $iptc['Headline'] : $title;
$caption = (isset($iptc['Caption'])) ? $iptc['Caption'] : $caption;
$keywords = (isset($iptc['Keywords'])) ? implode($CONFIG['keyword_separator'], $iptc['Keywords']) : $keywords;
}
}
Please post that solution, so we don't need to start from scratch.
There was nothing special involved, I just filled out a lot of IPTC-Tags on a test image and looked which one showed on the image details section. The copyright-tag shows, but nothing else of that section.
Apart form ticking the "read IPTC-data" I did no configuration and no code changes.
I'm not much of a programmer (actually never wrote any code myself in my live), but if the code section you posted above is the only code dealing with IPTC-tags, I'm really wondering why it's working at all...
You can see that it works and how it shows here:
http://coppermine.orientierungslauf.de/displayimage.php?album=3&pid=37#top_display_mediaif you use the account Presse/Presse
I can also mail you an image with more IPTC-tags filled, especially the one I'm looking for (photographer) if that's helping.
But no need to invest too much time in that, if you say there's no easy way to get it, my photographers just have to deal with putting their name in the Copyright-tag - not a real problem.
Also I'm not really sure if a tipp for possible code changes would help, cause that's not my server (I'm just the one responsible for the sub-project building a picture database for journalists who are writing over our quite unknown sport) and I'm not sure if the administrators would want to do changes for me - right now we're just running the out of the box coppermine that was provided by the web hoster already. Ressources are a bit thin in our webteam...
Meike