From: Stephanie Leary Date: Thu, 9 Mar 2023 16:08:40 +0000 (+0000) Subject: LP2009865 Revised search result headings & source order X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=18f99a68e67df86cdd1cece2d434f2a351b205b5;p=Evergreen.git 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 --- 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 {