coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: diedhert on March 03, 2013, 10:26:38 PM

Title: IPTC title not shown
Post by: diedhert on March 03, 2013, 10:26:38 PM
Hello all
I noticed that when I am do a batch upload of files, Coppermine is not showing the IPTC title as the title below the thumbnails.
I think this changed after upgrading to version 1,5,22 last week.

The IPTC title is filled in in the file itself (so it is not empty), but coppermine seems not to read or extract it.

Does anyone know how to resolve this problem ?
Diederik
Title: Re: IPTC title not shown
Post by: diedhert on March 04, 2013, 08:26:59 AM
Found the solution myself.
For one or another reason in the latest version line 69 in  cpg1.5.x > include > picmgmt.inc.php file
is changed from

$title = (isset($iptc['Title'])) ? $iptc['Title'] : $title;

to

$title = (isset($iptc['Headline'])) ? $iptc['Headline'] : $title;

That makes much sense, because it seems that the code is wrond. I opened the file and replaced it to the first line, and everything works fine now.
Title: Re: IPTC title not shown
Post by: ΑndrĂ© on March 04, 2013, 05:07:39 PM
Please read this thread for more information why the code has been changed in that way: http://forum.coppermine-gallery.net/index.php/topic,61380.0.html