@internetarchive/collection-browser
Advanced tools
Comparing version 0.0.1-alpha.18 to 0.0.1-alpha.19
@@ -624,18 +624,19 @@ import { __decorate } from "tslib"; | ||
fields: [ | ||
'addeddate', | ||
'avg_rating', | ||
'collections_raw', | ||
'creator', | ||
'date', | ||
'description', | ||
'downloads', | ||
'identifier', | ||
'title', | ||
'item_count', | ||
'mediatype', | ||
'downloads', | ||
'avg_rating', | ||
'num_favorites', | ||
'num_reviews', | ||
'item_count', | ||
'description', | ||
'date', | ||
'addeddate', | ||
'publicdate', | ||
'reviewdate', | ||
'creator', | ||
'collections_raw', | ||
'source', | ||
'subject', | ||
'title', | ||
], | ||
@@ -703,19 +704,19 @@ page: pageNumber, | ||
tiles.push({ | ||
averageRating: (_a = doc.avg_rating) === null || _a === void 0 ? void 0 : _a.value, | ||
collections: (_c = (_b = doc.collections_raw) === null || _b === void 0 ? void 0 : _b.values) !== null && _c !== void 0 ? _c : [], | ||
commentCount: (_e = (_d = doc.num_reviews) === null || _d === void 0 ? void 0 : _d.value) !== null && _e !== void 0 ? _e : 0, | ||
creator: (_f = doc.creator) === null || _f === void 0 ? void 0 : _f.value, | ||
dateAdded: (_g = doc.addeddate) === null || _g === void 0 ? void 0 : _g.value, | ||
dateArchived: (_h = doc.publicdate) === null || _h === void 0 ? void 0 : _h.value, | ||
datePublished: (_j = doc.date) === null || _j === void 0 ? void 0 : _j.value, | ||
dateReviewed: (_k = doc.reviewdate) === null || _k === void 0 ? void 0 : _k.value, | ||
description: (_l = doc.description) === null || _l === void 0 ? void 0 : _l.value, | ||
favCount: (_o = (_m = doc.num_favorites) === null || _m === void 0 ? void 0 : _m.value) !== null && _o !== void 0 ? _o : 0, | ||
identifier: doc.identifier, | ||
title: this.etreeTitle((_a = doc.title) === null || _a === void 0 ? void 0 : _a.value, (_b = doc.mediatype) === null || _b === void 0 ? void 0 : _b.value, (_c = doc.collection) === null || _c === void 0 ? void 0 : _c.values), | ||
mediatype: (_e = (_d = doc.mediatype) === null || _d === void 0 ? void 0 : _d.value) !== null && _e !== void 0 ? _e : 'data', | ||
viewCount: (_g = (_f = doc.downloads) === null || _f === void 0 ? void 0 : _f.value) !== null && _g !== void 0 ? _g : 0, | ||
favCount: (_j = (_h = doc.num_favorites) === null || _h === void 0 ? void 0 : _h.value) !== null && _j !== void 0 ? _j : 0, | ||
commentCount: (_l = (_k = doc.num_reviews) === null || _k === void 0 ? void 0 : _k.value) !== null && _l !== void 0 ? _l : 0, | ||
itemCount: (_o = (_m = doc.item_count) === null || _m === void 0 ? void 0 : _m.value) !== null && _o !== void 0 ? _o : 0, | ||
description: (_p = doc.description) === null || _p === void 0 ? void 0 : _p.value, | ||
dateAdded: (_q = doc.addeddate) === null || _q === void 0 ? void 0 : _q.value, | ||
dateArchived: (_r = doc.publicdate) === null || _r === void 0 ? void 0 : _r.value, | ||
dateReviewed: (_s = doc.reviewdate) === null || _s === void 0 ? void 0 : _s.value, | ||
datePublished: (_t = doc.date) === null || _t === void 0 ? void 0 : _t.value, | ||
creator: (_u = doc.creator) === null || _u === void 0 ? void 0 : _u.value, | ||
averageRating: (_v = doc.avg_rating) === null || _v === void 0 ? void 0 : _v.value, | ||
collections: (_x = (_w = doc.collections_raw) === null || _w === void 0 ? void 0 : _w.values) !== null && _x !== void 0 ? _x : [], | ||
subject: (_y = doc.subject) === null || _y === void 0 ? void 0 : _y.value, | ||
source: (_z = doc.source) === null || _z === void 0 ? void 0 : _z.value, | ||
itemCount: (_q = (_p = doc.item_count) === null || _p === void 0 ? void 0 : _p.value) !== null && _q !== void 0 ? _q : 0, | ||
mediatype: (_s = (_r = doc.mediatype) === null || _r === void 0 ? void 0 : _r.value) !== null && _s !== void 0 ? _s : 'data', | ||
source: (_t = doc.source) === null || _t === void 0 ? void 0 : _t.value, | ||
subjects: (_v = (_u = doc.subject) === null || _u === void 0 ? void 0 : _u.values) !== null && _v !== void 0 ? _v : [], | ||
title: (_x = (_w = doc.title) === null || _w === void 0 ? void 0 : _w.value) !== null && _x !== void 0 ? _x : '', | ||
viewCount: (_z = (_y = doc.downloads) === null || _y === void 0 ? void 0 : _y.value) !== null && _z !== void 0 ? _z : 0, | ||
}); | ||
@@ -722,0 +723,0 @@ }); |
import type { MediaType } from '@internetarchive/field-parsers'; | ||
export interface TileModel { | ||
identifier: string; | ||
title: string; | ||
averageRating?: number; | ||
collectionIdentifier?: string; | ||
collectionName?: string; | ||
collections: string[]; | ||
commentCount: number; | ||
creator?: string; | ||
dateAdded?: Date; | ||
dateArchived?: Date; | ||
datePublished?: Date; | ||
dateReviewed?: Date; | ||
datePublished?: Date; | ||
description?: string; | ||
favCount: number; | ||
identifier: string; | ||
itemCount: number; | ||
mediatype: MediaType; | ||
source?: string; | ||
subjects: string[]; | ||
title: string; | ||
viewCount: number; | ||
itemCount: number; | ||
favCount: number; | ||
commentCount: number; | ||
description?: string; | ||
collectionIdentifier?: string; | ||
collectionName?: string; | ||
creator?: string; | ||
subject?: string; | ||
source?: string; | ||
collections: string[]; | ||
} | ||
@@ -23,0 +23,0 @@ export declare type CollectionDisplayMode = 'grid' | 'list-compact' | 'list-detail' | 'list-header'; |
@@ -128,3 +128,3 @@ import { __decorate } from "tslib"; | ||
var _a, _b; | ||
if (!((_a = this.model) === null || _a === void 0 ? void 0 : _a.subject)) { | ||
if (!((_a = this.model) === null || _a === void 0 ? void 0 : _a.subjects[0])) { | ||
return nothing; | ||
@@ -135,3 +135,3 @@ } | ||
<span class="label">Topics: </span> | ||
${DOMPurify.sanitize((_b = this.model) === null || _b === void 0 ? void 0 : _b.subject)} | ||
${DOMPurify.sanitize((_b = this.model) === null || _b === void 0 ? void 0 : _b.subjects[0])} | ||
</div> | ||
@@ -138,0 +138,0 @@ `; |
@@ -6,3 +6,3 @@ { | ||
"author": "Internet Archive", | ||
"version": "0.0.1-alpha.18", | ||
"version": "0.0.1-alpha.19", | ||
"main": "dist/index.js", | ||
@@ -25,4 +25,4 @@ "module": "dist/index.js", | ||
"@internetarchive/histogram-date-range": "^0.1.6", | ||
"@internetarchive/infinite-scroller": "0.0.1-alpha.19", | ||
"@internetarchive/search-service": "0.3.0-alpha.4", | ||
"@internetarchive/infinite-scroller": "0.0.1-alpha.20", | ||
"@internetarchive/search-service": "0.3.0-alpha.6", | ||
"@internetarchive/shared-resize-observer": "^0.2.0", | ||
@@ -29,0 +29,0 @@ "@lit/localize": "^0.11.2", |
@@ -797,18 +797,19 @@ /* eslint-disable import/no-duplicates */ | ||
fields: [ | ||
'addeddate', | ||
'avg_rating', | ||
'collections_raw', | ||
'creator', | ||
'date', | ||
'description', | ||
'downloads', | ||
'identifier', | ||
'title', | ||
'item_count', | ||
'mediatype', | ||
'downloads', | ||
'avg_rating', | ||
'num_favorites', | ||
'num_reviews', | ||
'item_count', | ||
'description', | ||
'date', | ||
'addeddate', | ||
'publicdate', | ||
'reviewdate', | ||
'creator', | ||
'collections_raw', | ||
'source', | ||
'subject', | ||
'title', | ||
], | ||
@@ -879,23 +880,19 @@ page: pageNumber, | ||
tiles.push({ | ||
identifier: doc.identifier, | ||
title: this.etreeTitle( | ||
doc.title?.value, | ||
doc.mediatype?.value, | ||
doc.collection?.values | ||
), | ||
mediatype: doc.mediatype?.value ?? 'data', | ||
viewCount: doc.downloads?.value ?? 0, | ||
favCount: doc.num_favorites?.value ?? 0, | ||
averageRating: doc.avg_rating?.value, | ||
collections: doc.collections_raw?.values ?? [], | ||
commentCount: doc.num_reviews?.value ?? 0, | ||
itemCount: doc.item_count?.value ?? 0, | ||
description: doc.description?.value, | ||
creator: doc.creator?.value, | ||
dateAdded: doc.addeddate?.value, | ||
dateArchived: doc.publicdate?.value, | ||
datePublished: doc.date?.value, | ||
dateReviewed: doc.reviewdate?.value, | ||
datePublished: doc.date?.value, | ||
creator: doc.creator?.value, | ||
averageRating: doc.avg_rating?.value, | ||
collections: doc.collections_raw?.values ?? [], | ||
subject: doc.subject?.value, | ||
description: doc.description?.value, | ||
favCount: doc.num_favorites?.value ?? 0, | ||
identifier: doc.identifier, | ||
itemCount: doc.item_count?.value ?? 0, | ||
mediatype: doc.mediatype?.value ?? 'data', | ||
source: doc.source?.value, | ||
subjects: doc.subject?.values ?? [], | ||
title: doc.title?.value ?? '', | ||
viewCount: doc.downloads?.value ?? 0, | ||
}); | ||
@@ -902,0 +899,0 @@ }); |
import type { MediaType } from '@internetarchive/field-parsers'; | ||
export interface TileModel { | ||
identifier: string; | ||
title: string; | ||
averageRating?: number; | ||
collectionIdentifier?: string; | ||
collectionName?: string; | ||
collections: string[]; | ||
commentCount: number; | ||
creator?: string; | ||
dateAdded?: Date; // Date added to public search (software-defined) [from: addeddate] | ||
dateArchived?: Date; // Date archived (software-defined) item created on archive.org [from: publicdate] | ||
datePublished?: Date; // Date work published in the world (user-defined) [from: date] | ||
dateReviewed?: Date; // Date reviewed (user-created) most recent review [from: reviewdate] | ||
datePublished?: Date; // Date work published in the world (user-defined) [from: date] | ||
description?: string; | ||
favCount: number; | ||
identifier: string; | ||
itemCount: number; | ||
mediatype: MediaType; | ||
source?: string; | ||
subjects: string[]; | ||
title: string; | ||
viewCount: number; | ||
itemCount: number; | ||
favCount: number; | ||
commentCount: number; | ||
description?: string; | ||
collectionIdentifier?: string; | ||
collectionName?: string; | ||
creator?: string; | ||
subject?: string; | ||
source?: string; | ||
collections: string[]; | ||
} | ||
@@ -24,0 +24,0 @@ |
@@ -144,3 +144,3 @@ /* eslint-disable lit/no-invalid-html */ | ||
private get topicsTemplate() { | ||
if (!this.model?.subject) { | ||
if (!this.model?.subjects[0]) { | ||
return nothing; | ||
@@ -151,3 +151,3 @@ } | ||
<span class="label">Topics: </span> | ||
${DOMPurify.sanitize(this.model?.subject)} | ||
${DOMPurify.sanitize(this.model?.subjects[0])} | ||
</div> | ||
@@ -154,0 +154,0 @@ `; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
701277
10281
+ Added@internetarchive/infinite-scroller@0.0.1-alpha.20(transitive)
+ Added@internetarchive/search-service@0.3.0-alpha.6(transitive)
- Removed@internetarchive/infinite-scroller@0.0.1-alpha.19(transitive)
- Removed@internetarchive/search-service@0.3.0-alpha.4(transitive)