LP1849182 Angular catalog result/detail tab titles
authorBill Erickson <berickxx@gmail.com>
Mon, 21 Oct 2019 18:23:07 +0000 (14:23 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Tue, 21 Jan 2020 23:36:44 +0000 (15:36 -0800)
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
Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.html

index 98a270b..29ac211 100644 (file)
@@ -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'>
index 902e50b..41804cc 100644 (file)
@@ -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()">