Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Using jquery and jquery-ui libraries we'll try to setup the autocomplete functionality on every textbox of advanced search page, we'll take advantage of Discovery Solr cores to add an additional search core for JSPUI. This tweaking has been done on a linux system using ln command, there's no grant that will work in Windows systems the same way.

Once finished our textboxes must work like this:

...

Wiki Markup
Administrators that use XMLUI interface will notice that Discovery functionality strongly increases searching and browsing by the use of layered navigation and textbox autocomplete among others. To achieve these goals an Apache Solr search server is deployed in \[dspace-source\]/dspace/solr to take care of all query-reponse handling. 
JSPUI interface use an Apache Lucene Directory (located on  \[dspace\]/search ) to search and browse by, but it leaks of previously mentioned functionalities. 

First steps: Preparing JSPUI

...

advanced search page

Wiki Markup
First of all we'll add jquery and jquery-ui libraries to advanced search .jsp page. We
can use 
 
 
 
 can add them on head section of advanced search page \[dspace-source\]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/search/advanced.jsp, or use a on/off switch approach to attach them as described on [Adding jQuery (or other script library) support on JSPUI|DSpaceKB:Adding jQuery (or other script library) support on JSPUI].

In this manual we'll attach them on head section. First we must download jquery-ui script libraries from jQuery UI webpage, we'll download full version so we can use more functionalities on future improvements. It's all bundled inside a .zip file and all necessary files are inside: