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

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #46054  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 1877 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?
 #46072  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 ).
 #46115  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.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.