Implementation of IPTC keywords Implementation of IPTC keywords
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Implementation of IPTC keywords

Started by Jeremy Cherfas, May 04, 2004, 11:05:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jeremy Cherfas

I'm sorry if this is not the right place, but I need answers to two questions and although I have searched the boards I cannot find them

1 Does Coppermine support the IPTC keywords tags by allowing spaces within keywords? That is, the IPTC standards permit a "keyword" that contains spaces, such as "My dog". At least one other Gallery script I have tried does not implement this standard but uses space as a separator.

2 Is it possilble to search the IPTC keywords and captions? I assume this requires some sort of hack or mod, as it is not visible immediately from the Search link, but I could not find any information.

If somebody is using this on a site powered by Coppermine could they post the URL? I would really like to see it in action.

Many thanks

Jeremy Cherfas

Bill_S

Jeremy,

Check the IPTC information in this thread: http://forum.coppermine-gallery.net/index.php?topic=692.0

What I do is load the CPG Keyword variable with the IPTC Keyword contents when I upload images. Then the
search function will scan the keywords. You can see the picmgmt.inc.php code in the thread.

I hope this helps.

Bill
I just want it to work!

Jeremy Cherfas

Dear Bill

Thanks; very helpful. I will study the thread in detail.

I went and took a look at your site (great photos) and noticed that many of your keywords use a hyphen where I would expect a space. Lauderdale-by-the-sea, for example. Does that mean that your keyword mod does not, in fact, permit spaces in the keyword?

I confess that with another Gallery program I sort of got around this by appending the IPTC keywords, as I had written them, to the bottom of the IPTC caption and then loading that into the database's caption field. The program would search the caption field fine, and thereby find the keywords. But that is an ugly kludge, I think.

Jeremy

Bill_S

Hi Jeremy,

The result of the mod is a string of words seperated by spaces that appear in the keywords field.
Any hyphens are part of the original word (e.g. Lauderdale-by-the-sea is an actual hyphenated
city name http://www.lbts.com/).

CPG treats each word as a keyword (used in the search function). There are pluses and
minuses to this approach, but that's the way it is (v1.2.1 anyway).

Glad that you liked the photos ;D

Bill
I just want it to work!

Jeremy Cherfas

Quote from: Bill_S on May 06, 2004, 04:50:41 PM
(e.g. Lauderdale-by-the-sea is an actual hyphenated
city name http://www.lbts.com/).

Trust me to pick a bad example!  ;D

I have keywords like "on farm conservation," which IPTC specs permit, and I don't really want them to end up as "on" "farm" and "conservation". But like you say, that's how it is, and it may be OK.

Jeremy

Jeremy Cherfas

I tried the modified picmgmnt.inc.php and got "parse error in line 18". That line is

Quotefunction add_picture($aid, $filepath, $filename, $title = '', $caption = '', $keywords = '', $user1 = '', $user2 = '', $user3 = '', $user4 = '', $category = 0, $raw_ip = '', $hdr_ip = '')

The line is identical in the original file, and gives no error.

Could this be because I am using 1.3 beta?

Jeremy

Bill_S

Possibly. My hack is for v1.2.1

QuoteCPG1.3.0 public beta released
Test the new Coppermine version, but be aware: there's no support yet for it - only recommended for experienced users!
I just want it to work!

Jeremy Cherfas

QuoteCould this be because I am using 1.3 beta?

Actually, that's not it. CPG is so easy to install I just downloaded 1.2.1 to try, and got the same error!

Not sure what to try now. I guess it just works for you.

Anyone?

Jeremy

Jeremy Cherfas

I am impressed with the way that CPG reads and displays the IPTC Copyright and IPTC Keywords fields. I have two questions.

1) Is it possible also to read and display the IPTC Caption field?

2) Is it possible to make these extra fields searchable?

I have looked on the board but could not find any obvious answers. The mod by Bill S to read IPTC data gives me an error that I cannot understand.

Thanks

Jeremy

Joachim Müller

merged your posting, don't double-post in the future >:(
Replying with "Bill's suggestion doesn't work for me, does anybody else have another suggestion" would have been enough...

GauGau

Jeremy Cherfas

Apologies. I regarded it as a separate question. Bill's posting does not work for me to get the IPTC tags in. Beyond that, though, how do I set up CPG to search additional fields?

Jeremy