Page 1 of 1

Advanced search metadata textarea "enter" button does not trigger search

PostPosted:Thu Jun 07, 2018 3:29 am
by jorseng
Hi Jllort,

In the metadata textarea, when "enter" key is pressed, it does not trigger the search button even if it is enabled.
It only works in basic tab.
metadata textarea.PNG
metadata textarea.PNG (9.43 KiB) Viewed 2272 times

It would be really great to have that, as i intend to configure the metadata advanced search as the main search method.
Is there anyway i could modify in the code to make this work?

Re: Advanced search metadata textarea "enter" button does not trigger search

PostPosted:Sat Jun 09, 2018 10:41 am
by jllort
The feature you described is not implemented because is not trivial get it running ( it's a more complex logic that you are imagine ).
The source code is available here https://github.com/openkm/document-management-system I suggest download our developement environment based on Virtual Machine what comes with everything ready to be used in the OpenKM website download section you will find the download link and video https://www.openkm.com/en/download.html

If you are interested in going ahead you should consider view these two classes:
SearchControl.java - methods evaluateSearchButtonVisible,
SearchIn.java -> line 84 to 90 ( where is registered the key up handler )
FormManager -> you should understanding that this is a complex class used for drawing metadata fields ( static text values and forms to apply metadata changes into the desktop metadata tab ) and forms in the search view ( what it use a boolean isSearchView variable ).

Re: Advanced search metadata textarea "enter" button does not trigger search

PostPosted:Tue Jun 12, 2018 7:48 am
by jorseng
I have the development environment setup, I will give it a try.
If i make progress I will post it here.

Thanks!

Re: Advanced search metadata textarea "enter" button does not trigger search

PostPosted:Thu Jun 14, 2018 6:56 pm
by jllort
Another option might be to fork the repository https://github.com/openkm/document-management-system , then checkout and work with your repository, and at the end if you success on it, ask for a MR from your cloned repository towards ours. We will review the code and if everything seems fine we will include in our master branch.