From 18f99a68e67df86cdd1cece2d434f2a351b205b5 Mon Sep 17 00:00:00 2001 From: Stephanie Leary Date: Thu, 9 Mar 2023 16:08:40 +0000 Subject: [PATCH] LP2009865 Revised search result headings & source order Revises the hierarchy of headings in the search results. In combination with the H1 provided in in bug #1994711, the result is now: h1. Staff Catalog h2. Search Results (N) (repeat for each result:) h3. [Title] [Author] h2. Facets (repeat for each facet box:) h3. [Facet title] The source order of the results list and facet sidebar have been swapped. The facets still appear on the left visually, but now fall after the results in the document. Signed-off-by: Stephanie Leary Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- .../app/staff/catalog/result/facets.component.css | 11 +++++++++++ .../app/staff/catalog/result/facets.component.html | 14 +++----------- .../src/app/staff/catalog/result/facets.component.ts | 3 ++- .../app/staff/catalog/result/record.component.css | 15 +++++++++++++++ .../app/staff/catalog/result/record.component.html | 20 +++++++++----------- .../app/staff/catalog/result/results.component.css | 15 +++++++++++++++ .../app/staff/catalog/result/results.component.html | 10 +++++----- .../app/staff/catalog/result/results.component.ts | 3 ++- 8 files changed, 62 insertions(+), 29 deletions(-) create mode 100644 Open-ILS/src/eg2/src/app/staff/catalog/result/facets.component.css create mode 100644 Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.css diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/result/facets.component.css b/Open-ILS/src/eg2/src/app/staff/catalog/result/facets.component.css new file mode 100644 index 0000000000..bc382e4341 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/catalog/result/facets.component.css @@ -0,0 +1,11 @@ +.facet-selected { + background-color: #DDD; +} + +.card { + width: 100%; +} + +.list-group-item { + padding: .5rem .75rem .5rem .75rem +} \ No newline at end of file diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/result/facets.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/result/facets.component.html index 2c2cb14cdb..01f3192a81 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/result/facets.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/result/facets.component.html @@ -1,22 +1,14 @@ -
+

Facets

-

+

{{searchContext.result.facetData[facetConf.facetClass][name].cmfLabel}} -

+
  • - -
    diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.css b/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.css new file mode 100644 index 0000000000..7e74d8ac91 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.css @@ -0,0 +1,15 @@ +#staff-catalog-results-container h2 { + color: #212529; + font-size: 1.15rem; + font-weight: 500; +} + +/* put the facets first visually */ + +#eg-catalog-result-facets { + order: 1; +} + +#eg-catalog-result-records { + order: 2; +} \ No newline at end of file diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.html index 5f584a52da..4080ab62ec 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.html @@ -38,7 +38,7 @@
    -

    Search Results ({{searchContext.result.count}})

    +

    Search Results ({{searchContext.result.count}})

    @@ -65,10 +65,7 @@
    -
    - -
    -
    @@ -79,7 +76,10 @@
    +
    +
    +
    diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.ts index f4e42c1073..76711e1ebd 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.ts @@ -14,7 +14,8 @@ import {ServerStoreService} from '@eg/core/server-store.service'; @Component({ selector: 'eg-catalog-results', - templateUrl: 'results.component.html' + templateUrl: 'results.component.html', + styleUrls: ['results.component.css'] }) export class ResultsComponent implements OnInit, OnDestroy { -- 2.11.0