forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: PatCPG on July 18, 2014, 07:19:25 am

Title: Delegate Keyword Modifiers
Post by: PatCPG on July 18, 2014, 07:19:25 am
I have a gallery of sports photography.  There are dozens of events per year, and each event adds 100+ photos.  To make it easier for my audience to find photos of their participants, I would like to delegate certain members to add keywords to photos.  They will not be owners of the photos, simply able to add keywords in as simple of an interface as possible.

Anyone know if this is possible in the base Coppermine package?  If not, can you provide hints for me on making a plugin, or would someone be willing to build it?

Many thanks for your help!
Title: Re: Delegate Keyword Modifiers
Post by: Αndré on July 18, 2014, 10:19:40 am
Unfortunately that's not possible out of the box. As an alternative to the built-in keywords feature, you could use the annotate plugin (http://forum.coppermine-gallery.net/index.php/topic,60622.0.html). You can set on the plugin config page several permissions for each group.

The plugin currently has no search form, but it's quite easy to create it:
Currently there is no real search. But there is a meta album 'shownotes', which can be accessed from every annotation.

I created a custom search form, which fits the needs of my personal gallery. It contains a list of all different annotations and you can search for pictures where you tagged person 1 AND person 2. I'm not sure if it's possible to extend the built-in in that way. Alternatively the custom search form could be added to this plugin if desired.
Title: Re: Delegate Keyword Modifiers
Post by: PatCPG on July 22, 2014, 04:38:48 am
Thank you André!  The annotate plugin will work great! 
Could you tell me more about "meta albums"?  Please forgive my ignorance, but many google searches didn't quite explain how to set them up.
Title: Re: Delegate Keyword Modifiers
Post by: Αndré on July 22, 2014, 02:20:56 pm
In Coppermine, meta albums are used for different views of your pictures. You probably already know them, but just don't know that they are called (or at least the Coppermine dev team calls them) "meta albums".

Some of the built-in meta albums are:
- http://coppermine-gallery.net/demo/cpg15x/thumbnails.php?album=lastup
- http://coppermine-gallery.net/demo/cpg15x/thumbnails.php?album=lastcom
- http://coppermine-gallery.net/demo/cpg15x/thumbnails.php?album=topn
- http://coppermine-gallery.net/demo/cpg15x/thumbnails.php?album=toprated

There's also a plugin which adds more meta albums to your gallery: http://forum.coppermine-gallery.net/index.php/topic,63706.0.html

Regarding the annotate plugin, it also contains new meta albums. All we need is a simple search form where your users can enter the search terms.
Title: Re: Delegate Keyword Modifiers
Post by: PatCPG on July 22, 2014, 07:47:30 pm
Thanks!
I can see the annotated images by going here:  "<my site>/coppermine/thumbnails.php?album=lastnotes"
However, I'm uncertain how to use the "shownotes" meta album.  "<my site>/coppermine/thumbnails.php?album=shownotes" results in an empty results box.  Where in the URL do I place the search terms?
Title: Re: Delegate Keyword Modifiers
Post by: Αndré on July 23, 2014, 09:30:02 am
Unfortunately you haven't posted a link to your gallery, so I can just demonstrate it on another gallery (it's not my gallery!).

Have a look at this image: http://granbycameraclub.com/gallery/displayimage.php?pid=650
You'll see several annotations. If you click on e.g. the note "waterfall", you'll be redirected to http://granbycameraclub.com/gallery/thumbnails.php?album=shownotes&note=waterfall - which shows all "waterfall" pictures (in this example just that one image).

Title: Re: Delegate Keyword Modifiers
Post by: PatCPG on July 24, 2014, 01:11:12 am
Thanks again!
I was looking for: /thumbnails.php?album=shownotes&note=searchterm
I'd also like to add that if the note has a space in it, the following works:  /thumbnails.php?album=shownotes&note=search%20term

If you don't mind, I will add this to the annotate plugin's announcement page.
Title: Re: Delegate Keyword Modifiers
Post by: Αndré on July 25, 2014, 10:46:25 am
Feel free to add it.