[Clipart] clipart Digest, Vol 47, Issue 16

John Olsen johnny_automatic at mac.com
Tue Feb 12 14:21:31 PST 2008


I think it's simpler than that.  I found the section in the admin area  
for TAGS and all one needs to do is use the alias function to make all  
instances of birds into bird by the scheme birds=>bird.  ccHost then  
let's you run a tag update through the database and it apparently  
fixes them all.  We just have to periodically run it.  I just tried  
it.  Takes few minutes to run but appears to work fine.

John Olsen


On Feb 12, 2008, at 1:43 PM, Greg Bulmash wrote:

> If it's agreed that all instances where "birds" occurs should be
> "bird", then the most efficient method is to do an SQL query to remove
> "birds" from any image where the author submitted both "bird" and
> "birds" (this may require a script depending on how things are laid
> out), then another to change all instances of "birds" to "bird".
>
> But this doesn't stop users from entering birds on future uploads.
> There needs to be a remap function in the tag registration module that
> compares each new tag to a list and "adjusts" it if it's a mapped
> term.
>
> For example...
>
> $tag = "birds";
> $newtag = remaptags($tag);
> // insert $newtag into database
>
> .....
>
> function remaptags($tag){
>
>  $mapped = array( "birds" => "bird",
>                             "clowns"=> "clown"
>                             "Father Christmas" => "Santa Claus");
>
> if(isset($mapped["$tag"])) $tag = $mapped["$tag"];
> return $tag;
> }
>
> If you want to update the mapping, just add to or change that array.
> This way an editor doesn't have to go through and run the remapping
> processes every so often to combat tag drift.  You could also use a
> similar function to broaden tags.  For example you might want to make
> sure that every image that gets tagged "Father Christmas" also gets
> tagged "Santa Claus" and vice versa.
>
> - Greg
>
> On Feb 12, 2008 12:38 PM, John Olsen <johnny_automatic at mac.com> wrote:
>>>
>>
>> I like the idea of shortening that tags list.  Maybe we can add a
>> quick line of instruction over the right hand sidebar with the subset
>> names (+) for those who don't get it.  I try to tag things into
>> classes and subclasses like animal,mammal,feline,tiger but a lot of
>> people are very bad about their tagging.  So it is an area we
>> librarians can help in.
>>
>> I wondered about an automated way to clean up tags.  I've done some  
>> of
>> it where a tag has been generated by a typo, but it would be good to
>> merge larger groups - how does it work Jon?
>>
>> Seems an obvious place to start is merging single and plural version
>> of a tag together like bird and birds.  I think the singular is  
>> better
>> and all encompassing.  Do we agree?
>>
>>
>> John Olsen
>>
>>> Message: 2
>>> Date: Tue, 12 Feb 2008 19:49:08 +0800
>>> From: Jon Phillips <jon at rejon.org>
>>> Subject: Re: [Clipart] Minimum number of tags
>>> To: momo at lumenstudio.net
>>> Cc: clipart at lists.freedesktop.org
>>> Message-ID: <1202816948.6436.105.camel at localhost>
>>> Content-Type: text/plain
>>>
>>> Actually, Joanna, I think great to set the threshold now...the  
>>> search
>>> function is fixed in upcoming release and that tags page is a  
>>> massive
>>> overload on our webserver at present...could you try to set the min
>>> visible at like 100 and then we can test that out...
>>>
>>> Also, there is a way to automatically clean up tags as an admin as
>>> well,
>>> which might be a nice thing to do...it takes a while, but there are
>>> several tags which are similar and should be corrected....
>>>
>>> Would you like to look into this more?
>>>
>>> Cheers!
>>>
>>> Jon
>>
>>
>>
>>
>> _______________________________________________
>> clipart mailing list
>> clipart at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/clipart
>>

This is one of 10 parts of a mystery picture.  Assemble all the parts  
and return to the assembled picture to me and I'll have a prize for you.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1stmystery06.gif
Type: image/gif
Size: 2226 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/clipart/attachments/20080212/ae85af56/attachment.gif>
-------------- next part --------------




More information about the clipart mailing list