New field type - "Dynamic Keywords List"

669 views
Skip to first unread message

Dan Huby

unread,
Jul 5, 2011, 7:30:28 AM7/5/11
to ResourceSpace

Revision 2822 in Subversion adds a new field type called "Dynamic
Keywords List".

This works like the checkbox list type in that keywords are selected
from a predefined list. The keyword is typed into a search text box
and the system will automatically suggest matching keywords. Clicking
a keyword adds it to the list of selected keywords for this resource,
displayed below the search box. It's similar to the "user selection"
function we have in other parts of the system.

If the keyword is not found in the existing options list, the user has
the option of adding the entered text as a new option for that field.
As such this can build over time.

I've switched the default 'country' field to use this by default (this
will take effect on new installs only) - as sometimes I have heard it
mentioned that a particular country is not in the options list - this
will make it much easier to add to the list.

I think there are several potential uses for this new field type. It
is probably worth reviewing existing checkbox list / category tree /
dropdown types on your system to see if you would benefit from a
switch to this new type.

Thanks to the Arnold Schönberg Center in Vienna for funding
development of this feature.

Dan

Agustin Goya

unread,
Jul 5, 2011, 11:12:17 AM7/5/11
to resour...@googlegroups.com
Great! Thanks

Sent from my Nokia phone

Dan

--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To post to this group, send email to resour...@googlegroups.com.
To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.


Vasik Greif

unread,
Jul 7, 2011, 5:24:59 AM7/7/11
to ResourceSpace
Hi, thanks for the addition, I tested it now, and have two problems:

1) The charset seems not to work correctly - maybe this can be on my
side, as I messed up with various charset combinations to make
everything work for me, but now I use utf8 database, in config.php I
have $mysql_charset="utf8"; and when I try to add some special
characters like ěščřžýáí, it inserts %u011B%u0161%u010D%u0159%u017E.

2) I wanted to display the added options in simple search, but it
didn't display the options, just the field title.

3) Would it be possible to add an option to select dropdown list type
for the dynamic list? I made a "plugin" few days ago, that displays on
the upload page a form to add a keyword to a specified dropdown field,
so I'm able to add the keyword to the specified field easily AND
display the options as dropdown list in the search, so the users can
just select a keyword (in my case order number) and search for it...

Thanks
Vasik

Dan Huby

unread,
Jul 7, 2011, 11:21:10 AM7/7/11
to ResourceSpace

r2824 addresses the following:

- UTF8 issue fixed (was a Javascript problem)

- Added searching via Advanced Search. Simple search is going to be
an issue for this type as it needs a bit of space. For simple search I
wondered about just showing a dropdown box, but it could get rather
large. Probably best to avoid simple search for this field type as
selecting using it isn't that quick?

Dan

Vasik Greif

unread,
Jul 8, 2011, 6:36:32 AM7/8/11
to ResourceSpace
Hi,
thanks, the encoding is fixed. It would be GREAT to be able to display
the field as dropdown, as the user could see the keywords that are
already inserted. In my case, I would use this field to add order
numbers, which can be easily mistyped, so seeing the numbers that are
already in would be great help - that's actually how I had it setup
before - I had a dropdown field set and than displayed via my "plugin"
another field to add options to it. The dropdown is great in simple
search too, as I can select really quickly what I'm looking for...

Thanks
Vasik

Vasik Greif

unread,
Jul 25, 2011, 5:05:07 AM7/25/11
to ResourceSpace
Hi, I started using the dynamic keyword list and found a bug - I
translated the field "Add new entry for keyword" into Czech, in my
case it is "Přidat zakázku č.", and when I save the keyword - in my
case number, ie 555, I get keyword "Přidat zakázku č. 555", instead of
just "555". Could this be fixed? Thanks

On 8 čnc, 12:36, Vasik Greif <vaclav.gr...@gmail.com> wrote:
> Hi,
> thanks, the encoding is fixed. It would be GREAT to be able to display
> the field as dropdown, as the user could see thekeywordsthat are

Vasik Greif

unread,
Jul 25, 2011, 5:05:35 AM7/25/11
to ResourceSpace
Hi, I started using the dynamic keyword list and found a bug - I
translated the field "Add new entry for keyword" into Czech, in my
case it is "Přidat zakázku č.", and when I save the keyword - in my
case number, ie 555, I get keyword "Přidat zakázku č. 555", instead of
just "555". Could this be fixed? Thanks

On 8 čnc, 12:36, Vasik Greif <vaclav.gr...@gmail.com> wrote:
> Hi,
> thanks, the encoding is fixed. It would be GREAT to be able to display
> the field as dropdown, as the user could see thekeywordsthat are

Vasik Greif

unread,
Sep 22, 2011, 5:41:41 AM9/22/11
to ResourceSpace
Hi, would it be possible to add the possibility to do basic search
with this field type? I really would need this to make things easy for
my customers.

Thanks
Vasik

On 25 čnc, 11:05, Vasik Greif <vaclav.gr...@gmail.com> wrote:
> Hi, I started using the dynamic keyword list and found a bug - I
> translated thefield"Addnewentry for keyword" into Czech, in my
> case it is "Přidat zakázku č.", and when I save the keyword - in my
> case number, ie 555, I get keyword "Přidat zakázku č. 555", instead of
> just "555". Could this be fixed? Thanks
>
> On 8 čnc, 12:36, Vasik Greif <vaclav.gr...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
> > thanks, the encoding is fixed. It would be GREAT to be able to display
> > thefieldas dropdown, as the user could see thekeywordsthat are
> > already inserted. In my case, I would use thisfieldto add order
> > numbers, which can be easily mistyped, so seeing the numbers that are
> > already in would be great help - that's actually how I had it setup
> > before - I had a dropdownfieldset and than displayed via my "plugin"
> > anotherfieldto add options to it. The dropdown is great in simple
> > search too, as I can select really quickly what I'm looking for...
>
> > Thanks
> > Vasik
>
> > On Jul 7, 5:21 pm, Dan Huby <d...@montala.com> wrote:
>
> > > r2824 addresses the following:
>
> > >  - UTF8 issue fixed (was a Javascript problem)
>
> > >  - Added searching via Advanced Search. Simple search is going to be
> > > an issue for this type as it needs a bit of space. For simple search I
> > > wondered about just showing a dropdown box, but it could get rather
> > > large. Probably best to avoid simple search for thisfieldtype as

Sebastian

unread,
May 6, 2020, 11:53:33 AM5/6/20
to ResourceSpace
> Hi, would it be possible to add the
> possibility to do basic search
> with this field type? I really would
> need this to make things easy for
> my customers.

Hello,

any news on that? i really need a dynamic keyword field in my basic search. But only on advanced search that field appears. Is there any setting to use that on basic search too?

thank you and Best Regards
Sebastian

Reply all
Reply to author
Forward
0 new messages