Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-5470

new search form fulltext fields are not aligned on webui behavior

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.16.0
    • Fix Version/s: None
    • Component/s: Designer

      Description

      All the default search views in webui implement a behavior to prevent the search result to be refreshed every time a character is entered by the use. This is to ensure that search scales with large repositories.

      View designer does not implement this behavior. Developer must then look at the webui source.

      VD generates only the following code

          <nuxeo-input role="widget" value="{{params.system_fulltext}}" label="System Fulltext" type="text"></nuxeo-input>
      

      The default search form in webui contains javascript functions

      <nuxeo-input role="widget"
                       id="searchInput"
                       type="search"
                       label="[[i18n('defaultSearch.fullText')]]"
                       value="{{searchTerm}}"
                       placeholder="[[i18n('defaultSearch.fullText.placeholder')]]"
                       autofocus
                       on-keydown="_checkForEnter">
      </nuxeo-input>
      ...
      clear: function() {
              this.searchTerm = '';
              this._search();
            },
            _search: function() {
              if (this.searchTerm) {
                this.set('params.ecm_fulltext', this.formatFulltext(this.searchTerm));
                this.set('params.highlight',
                  'dc:title.fulltext,ecm:binarytext,dc:description.fulltext,ecm:tag,note:note.fulltext,file:content.name');
              } else if (this.params.ecm_fulltext) {
                this.set('params.ecm_fulltext', '');
                delete this.params.ecm_fulltext;
                delete this.params.highlight;
              }
            },
            _checkForEnter: function(e) {
              if (e.keyCode === 13) {
                this._search();
              }
            }
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.