Revision 61019
Added by Argiro Kokogiannaki almost 3 years ago
searchFields.ts | ||
---|---|---|
678 | 678 |
return "UNDEFINED"; |
679 | 679 |
} |
680 | 680 |
} |
681 |
|
|
681 |
public static getParameterOrder(fieldId: string, params): number { |
|
682 |
let fields = []; |
|
683 |
let searchFields = new SearchFields(); |
|
684 |
if (searchFields.RESULT_REFINE_FIELDS.indexOf(fieldId) !=-1) { |
|
685 |
fields = searchFields.RESULT_REFINE_FIELDS; |
|
686 |
} else if (searchFields.PROJECT_REFINE_FIELDS.indexOf(fieldId) !=-1) { |
|
687 |
fields = searchFields.PROJECT_REFINE_FIELDS |
|
688 |
} else if (searchFields.ORGANIZATION_REFINE_FIELDS.indexOf(fieldId) !=-1) { |
|
689 |
fields = searchFields.ORGANIZATION_REFINE_FIELDS; |
|
690 |
} else if (searchFields.DATASOURCE_REFINE_FIELDS.indexOf(fieldId) !=-1) { |
|
691 |
fields = searchFields.DATASOURCE_REFINE_FIELDS; |
|
692 |
} |
|
693 |
let index = fields.indexOf(fieldId); |
|
694 |
let paramIndex = 0; |
|
695 |
if(index != -1){ |
|
696 |
for(let keyValue of params){ |
|
697 |
if(fields.indexOf(keyValue[0])>index){ |
|
698 |
break; |
|
699 |
} |
|
700 |
paramIndex++ |
|
701 |
} |
|
702 |
} |
|
703 |
return paramIndex; |
|
704 |
} |
|
682 | 705 |
/* |
683 | 706 |
AND |
684 | 707 |
Funder: relfunder, relfundinglevel0_id, relfundinglevel1_id, relfundinglevel2_id |
Also available in: Unified diff
[Library|Trunk]
SEO changes:
- ignore quick filter in search pages. don't add qf=true, the filter is NOT applied by default.
- add page in the canonical url
- keep order of params to have the same url in canonical no matter the order of the filters
- add prev/ next links
TimeOut interceptor: set it 3000 for server and 6000 for client