Support > cpg1.5 themes (visuals)

replace IPTC Title with IPTC Copyright

<< < (3/3)

clemphoto:
To the best of my knowledge, the IPTC data are in the database.  I have enabled IPTC data in config, and IPTC keywords are shown.  The string in the Title field (string in $title) appears to come from IPTC Object Name in my photos.  Caption information in cpg correctly comes from IPTC Caption in my jpg files.  Keywords data comes from IPTC Keywords.  This information can be seen at http://clemsonphotos.org/coppermine.

What I would like to see is for $title to contain IPTC Copyright.  And, yes, I would like for this to happen as early in the process as possible, because I would like for users to be able to include the photographer name (IPTC Copyright) in searches.  Further, I surmise that doing it this was would reduce the extent of modification.  Finally, if this is done at time of upload, it need only be done once, rather than changing text as each page is served.

Strictly speaking, Coppermine apparently maps IPTC Object Name to $title.  In addition to Coppermine, Adobe and XnView map the same way, so there is consensus, at least.  I do understand that while IPTC data is somewhat standard, its implementation in various software is less so.

I am trying to be more detailed in my questions and responses in general, not specifically in response to you, Andre.

Del

clemphoto:
Success.  Nibbler, your solution does indeed work.  I did not realize it at the time, but I had updated the fullsize files from the admin tools.  This stripped them of IPTC data.  When I tested to see if your change worked, I used these fullsize files to reload.  In reviewing my files and looking for changes, I just noticed that the file size of the uploaded files for batch upload were different than those on my system.  Testing on a single file showed that using the Update function from Admin Tools will strip the IPTC data and reduce file size for the fullsize files.  Updating thumbnails and intermediate files did not.  I suppose this is because updating thumbs and intermediates does not reload IPTC data or in other ways change the database tables.

With the change in code above, I now display the contents of the IPTC.Copyright field in thumbnails and intermediates, and contents of that field (now in $title) work in the Search page.  Thanks for your help, and sorry for my error in testing.

Del

Navigation

[0] Message Index

[*] Previous page

Go to full version