Project

General

Profile

« Previous | Next » 

Revision 58497

[Trunk | Library]:
1. entitiesAutoComplete.component.ts: [Bug fix] Add missing encoding in autocomplete term (problem when query uses cache).
2. newSearchPage.component.ts:
a. [Bug fix] Add missing keyword encoding for simple search form (problem when query uses cache).
b. [Bug fix] In advanced search, when "all fields" (field id="q") is added more than once in form, add both values (params "+=" and not "=" in "getSearchAPIQueryForAdvancedSearhField()" method).
3. searchAll.component.ts: Decode keyword parameter from url (to show it properly in search form).
4. searchAll.component.ts:
a. [Bug fix] Add missing encoding in search term, used by datacite, crossref and orcid search services (problem when query uses cache).
b. In methods of crossref service pass properties, instead of url - url will be built in service.
5. searchCrossref.service.ts:
a. In all methods, pass properties, instead of url.
b. Use cache when available.
6. ISVocabularies.service.ts: [Bug fix]: Return "accessMode.json" vocabulary when: entity == "result" (case added in if statement).

View differences:

searchAll.component.ts
213 213
    this.sub = this.route.queryParams.subscribe(params => {
214 214
      this.parameters = Object.assign({}, params);
215 215
      this.keyword = (params['keyword']) ? params['keyword'] : (params["q"] ? params["q"] : (params["f0"] && params["f0"] == "q" && params["fv0"]?params["fv0"]:""));
216
      this.selectedFields[0].value = this.keyword;
216
      this.selectedFields[0].value = StringUtils.URIDecode(this.keyword);
217 217
      this.quickFilter.selected = ((params['qf']== undefined || params["qf"] == "true") == true);
218 218
      if (params["type"] && params["type"].length > 0) {
219 219
        this.resultTypes['publication'] = (params["type"].split(",").indexOf("publications") != -1);

Also available in: Unified diff