diff --git a/app/i18n/locales/en.json b/app/i18n/locales/en.json index 4e21a8a..9409049 100644 --- a/app/i18n/locales/en.json +++ b/app/i18n/locales/en.json @@ -16,7 +16,9 @@ "people_header": "People", "series_header": "Series", "books_header": "Books", - "see_details": "See Details", + "see_interaction_details": "See All Interactions", + "see_book_details": "See Book Details", + "see_inventaire_details": "See Details", "see_details_tooltip": "Opens Inventaire in a new tab/window" }, "interaction": { diff --git a/app/views/search/index.js b/app/views/search/index.js index a7355fc..20a9dcc 100644 --- a/app/views/search/index.js +++ b/app/views/search/index.js @@ -30,11 +30,11 @@ export const searchView = (state, emit) => { html`

${i18n.__('search.books_header')}

`, controller.results.works.map(result => { return html`
-
+

${result.name}

${result.description ? html`

${result.description}

` : null}
-
+
${resultDetails(controller, result)}
`; @@ -47,14 +47,14 @@ export const searchView = (state, emit) => { html`

${i18n.__('search.series_header')}

`, controller.results.series.map(result => { return html`
-
+

${result.name}

${result.description ? html`

${result.description}

` : null}
-
+ @@ -68,17 +68,17 @@ export const searchView = (state, emit) => { html`

${i18n.__('search.people_header')}

`, controller.results.humans.map(result => { return html`
-
+
${result.image ? html`` : null}
-
+

${result.name}

${result.description ? html`

${result.description}

` : null}
-
+ diff --git a/app/views/search/resultDetails.js b/app/views/search/resultDetails.js index da9ce8d..d067a88 100644 --- a/app/views/search/resultDetails.js +++ b/app/views/search/resultDetails.js @@ -17,15 +17,79 @@ export const resultDetails = (searchController, result) => { `; - const modalContent = html`
- - - ${i18n.__('search.see_details')} - - + const modalContent = html`
+
+

Covers

+ +
+
+

${i18n.__('interaction.average_rating')}

+ ${starRating(result.rating)} + + +
+
+ {{USERNAME}} ${starRating(Math.ceil(result.rating))} +
+
+
+

+ The only thing worse than yellow snow is green snow. Let's put a touch more of the magic here. + With practice comes confidence. You have to allow the paint to break to make it beautiful. +

+

+ Let all these little things happen. Don't fight them. Learn to use them. Imagination is the key + to painting. You can't make a mistake. Anything that happens you can learn to use - and make + something beautiful out of it. This is a fantastic little painting. In painting, you have unlimited + power. You have the ability to move mountains. We don't have anything but happy trees here. +

+

+ If what you're doing doesn't make you happy - you're doing the wrong thing. A fan brush can be + your best friend. Mountains are so simple, they're hard. +

+
+ + + + + ${result.reviewCount} + +
+
+
+
`; return modal(modalId, searchController, modalContent, { + styles: "width:90%;", buttonHTML, // This should be replaced with buttonHTML containing the ratings and number of reviews etc. headerText: result.name, });