Project

General

Profile

« Previous | Next » 

Revision 57485

[Trunk | Library]: Deposit Pages:
1. utils/properties/searchFields.ts: in 'DEPOSIT_DATASOURCE_KEYWORD_FIELDS' use field 'datasourcetypeuiname' instead of 'datasourcetypename' and use field 'datasourcesubject' with 'all' operator.
2. services/searchDataproviders.service.ts: [Bug fix]: Add subject only when there is some content.
3. searchPages/searchUtils/searchPage.component.ts: Add quotes in keyword for query (could cause problems with special keywords e.g. 'and and').
4. deposit/depositFirstPage.component.ts & deposit/searchDataprovidersToDeposit.component.ts: Use same placeholder in search form and add search by 'type'.
5. deposit/searchResultsInDeposit.component.html: Change 'NOT OPENAIRE COMPATIBLE' label with 'Not yet registered' and change tooltip from 'Compatibility' to 'OpenAIRE compatibility'.

View differences:

searchDataproviders.service.ts
343 343
      let length = Array.isArray(resData['subjects']) ? resData['subjects'].length : 1;
344 344
      for(let i=0; i<length; i++) {
345 345
          let subject = Array.isArray(resData['subjects']) ? resData['subjects'][i] :resData['subjects'];
346
          subjects.push(subject.content);
346
          if(subject.content) {
347
            subjects.push(subject.content);
348
          }
347 349
      }
348 350
      return subjects;
349 351
    }

Also available in: Unified diff