Advanced search  

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

Pages: [1]   Go Down

Author Topic: Implementation of IPTC keywords  (Read 6812 times)

0 Members and 1 Guest are viewing this topic.

Jeremy Cherfas

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Implementation of IPTC keywords
« on: May 04, 2004, 11:05:05 pm »

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
Logged

Bill_S

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 58
    • Spilman Photography
Re: Implementation of IPTC keywords
« Reply #1 on: May 05, 2004, 05:19:49 pm »

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
Logged
I just want it to work!

Jeremy Cherfas

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Implementation of IPTC keywords
« Reply #2 on: May 06, 2004, 09:29:44 am »

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
Logged

Bill_S

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 58
    • Spilman Photography
Re: Implementation of IPTC keywords
« Reply #3 on: May 06, 2004, 04:50:41 pm »

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
Logged
I just want it to work!

Jeremy Cherfas

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Implementation of IPTC keywords
« Reply #4 on: May 06, 2004, 07:36:45 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
Logged

Jeremy Cherfas

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Implementation of IPTC keywords
« Reply #5 on: May 06, 2004, 10:21:10 pm »

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

Quote
function 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
Logged

Bill_S

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 58
    • Spilman Photography
Re: Implementation of IPTC keywords
« Reply #6 on: May 06, 2004, 10:54:44 pm »

Possibly. My hack is for v1.2.1

Quote
CPG1.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!
Logged
I just want it to work!

Jeremy Cherfas

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Implementation of IPTC keywords
« Reply #7 on: May 06, 2004, 11:11:59 pm »

Quote
Could 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
Logged

Jeremy Cherfas

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Search extra fields
« Reply #8 on: May 07, 2004, 06:32:18 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Implementation of IPTC keywords
« Reply #9 on: May 07, 2004, 08:58:06 am »

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
Logged

Jeremy Cherfas

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Search additional fields
« Reply #10 on: May 07, 2004, 09:23:39 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.