Revision 61303
Added by Argiro Kokogiannaki almost 3 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/searchPages/searchUtils/newSearchPage.component.html | ||
---|---|---|
1 | 1 |
<ng-template #selected_filters_pills> |
2 |
<div class="uk-grid uk-grid-small uk-text-small" uk-grid>
|
|
2 |
<h1 class="uk-grid uk-grid-small uk-text-small" uk-grid>
|
|
3 | 3 |
<ng-container *ngIf="customFilter && ((customFilterEnabled && |
4 | 4 |
refineFields.indexOf(customFilter.queryFieldName) == |
5 | 5 |
-1) ||customFilter.isHiddenFilter)"> |
6 | 6 |
<span class=""> |
7 | 7 |
<span class="selectedFilterLabel customFilterLabel"> |
8 |
<span class="">{{customFilter.valueName}}</span> |
|
8 |
<span class="">{{' '+customFilter.valueName}}</span>
|
|
9 | 9 |
</span> |
10 | 10 |
</span> |
11 | 11 |
</ng-container> |
... | ... | |
23 | 23 |
fill="none" stroke="#000" stroke-width="1.6" d="M16,4 L4,16"></path></svg> |
24 | 24 |
</span> |
25 | 25 |
</span> |
26 |
<span class="uk-margin-small-left">{{type.name}}</span> |
|
26 |
<span class="uk-margin-small-left">{{' '+type.name}}</span>
|
|
27 | 27 |
</a> |
28 | 28 |
</span> |
29 | 29 |
</span> |
... | ... | |
47 | 47 |
d="M16,4 L4,16"></path></svg> |
48 | 48 |
</span> |
49 | 49 |
</span> |
50 |
<span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span> |
|
50 |
<span class="uk-margin-small-left">{{' '+filter.selectedFromAndToValues}}</span>
|
|
51 | 51 |
</a> |
52 | 52 |
</span> |
53 | 53 |
</span> |
... | ... | |
75 | 75 |
</span> |
76 | 76 |
</span> |
77 | 77 |
<span class="uk-margin-small-left" |
78 |
[innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span> |
|
78 |
[innerHtml]="' ' + |
|
79 |
((value.name.length > 34)?value.name.substring(0,34)+'...':value.name)"></span> |
|
79 | 80 |
</a> |
80 | 81 |
</span> |
81 | 82 |
</span> |
82 | 83 |
</ng-container> |
83 | 84 |
</ng-container> |
84 | 85 |
</ng-container> |
85 |
</div>
|
|
86 |
</h1>
|
|
86 | 87 |
</ng-template> |
87 | 88 |
<ng-template #filters_column> |
88 | 89 |
<div [class.filterLoading]="(disableForms || disableRefineForms)"> |
modules/uoa-services-library/trunk/ng-openaire-library/src/app/searchPages/searchUtils/newSearchPage.component.ts | ||
---|---|---|
238 | 238 |
} |
239 | 239 |
} |
240 | 240 |
} |
241 |
let nonCanonicalizedPage = (filterArray.length > 0 && filterArray.length<3);
|
|
241 |
let nonCanonicalizedPage = filterArray.length > 0;
|
|
242 | 242 |
this.metaDescription= (nonCanonicalizedPage?( (this.basicMetaDescription[0] + " filtered by: " + filterArray.join(" and ") + ". ") + (this.basicMetaDescription.length > 1 ?this.basicMetaDescription[1]:"")) |
243 | 243 |
:((this.basicMetaDescription.length > 2 ?this.basicMetaDescription[1] + this.basicMetaDescription[2]:this.basicMetaDescription[0]))); |
244 | 244 |
this._meta.updateTag({content: this.metaDescription}, "name='description'"); |
modules/uoa-services-library/trunk/ng-openaire-library/src/app/landingPages/result/resultLanding.component.ts | ||
---|---|---|
661 | 661 |
); |
662 | 662 |
// console.log("rich content " + allow) |
663 | 663 |
//spam words to exclude |
664 |
let title_authors_words = ["movie","hd","film","kimetsu", "1080p","4k","call of duty", "mobile hack", "TUBYDI"]; |
|
664 |
let title_authors_words = ["movie","hd","film","kimetsu", "1080p","4k","call of duty", "mobile hack", "TUBYDI", "电影","電影"];
|
|
665 | 665 |
let abstract_words = ["operacao-feliz-natal.blogspot.com", "moviedouban.site", "hack-expert-solution.link"]; |
666 | 666 |
allow = allow && !( |
667 | 667 |
(this.hasKeyword(this.resultLandingInfo.title,title_authors_words) || (this.resultLandingInfo.authors && this.hasKeyword(this.resultLandingInfo.authors.map(o => o.fullName).join(" "),title_authors_words)) |
Also available in: Unified diff
[Library | Trunk]
SEO changes
- set meta description & titles with filters no matter the level of the filter. not canonicalize to the default page
- The selected filter are H1
- update list with spam words