From 8d860829acc7ea0554b85d2ffffe2721050ede70 Mon Sep 17 00:00:00 2001 From: Bill Erickson <berickxx@gmail.com> Date: Mon, 21 Oct 2019 14:23:07 -0400 Subject: [PATCH] LP1849182 Angular catalog result/detail tab titles Add tab/page titles to the Angular staff catalog Search Results and Record Details pages. Search results offers 1 of 2 titles, depending on whether a search has be run: "Catalog Search" "Catalog Search - <count> Results" The record detail title shows the bib ID and bib title: "Bib <bib TCN> - <bib title>" Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu> --- Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html | 5 +++++ .../src/eg2/src/app/staff/catalog/result/results.component.html | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html index 98a270b6d2..29ac211bf7 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html @@ -1,4 +1,9 @@ +<ng-container *ngIf="summary"> + <eg-title i18n-prefix prefix="Bib {{summary.record.tcn_value()}} - {{summary.display.title}}"> + </eg-title> +</ng-container> + <div id="staff-catalog-record-container"> <div class="row ml-0 mr-0"> <div id='staff-catalog-bib-navigation'> 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 902e50baa4..41804cc62c 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 @@ -1,3 +1,9 @@ +<ng-container *ngIf="searchIsDone()"> + <eg-title i18n-prefix prefix="Catalog Search - {{searchContext.result.count}} Results"></eg-title> +</ng-container> +<ng-container *ngIf="!searchIsDone()"> + <eg-title i18n-prefix prefix="Catalog Search"></eg-title> +</ng-container> <!-- search results progress bar --> <div class="row" *ngIf="searchIsActive()"> -- 2.11.0