LP1908619 Adjustments to Staff Search Preferences Page
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 5 Jan 2021 19:09:36 +0000 (14:09 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Wed, 2 Jun 2021 14:59:12 +0000 (10:59 -0400)
Change 'Catalog Preferences' to 'Search Preferences' and
add a Return button at the bottom to make it more obvious how
to get out of the interface.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jennifer Bruch <jbruch@sparkpa.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/eg2/src/app/staff/catalog/basket-actions.component.html
Open-ILS/src/eg2/src/app/staff/catalog/prefs.component.html
Open-ILS/src/eg2/src/app/staff/catalog/prefs.component.ts

index 7014944..baf2814 100644 (file)
@@ -42,7 +42,7 @@
     <!-- Note this Prefernces links is not specific to Basket handling,
         but it's here since it allowed for consistent formatting -->
     <a routerLink="/staff/catalog/prefs" queryParamsHandling="merge">
-      <button class="btn btn-light" i18n>Catalog Preferences</button>
+      <button class="btn btn-light" i18n>Search Preferences</button>
     </a>
   </div>
 </div>
index a3a595a..abe932c 100644 (file)
@@ -1,6 +1,6 @@
 <eg-catalog-search-form #searchForm></eg-catalog-search-form>
 
-<eg-staff-banner bannerText="Catalog Preferences"></eg-staff-banner>
+<eg-staff-banner bannerText="Search Preferences"></eg-staff-banner>
 
 <eg-string #successMsg i18n-text text="Setting Update Succeeded"></eg-string>
 <eg-string #failMsg i18n-text text="Setting Update Failed"></eg-string>
     Add the 'Exclude Electronic Resources' checkbox to the main search form.
   </div>
 </div>
+<div class="row">
+  <div class="col-lg-1">
+  <button class="btn btn-info label-with-material-icon" (click)="goBack()" [disabled]="hasNoHistory()">
+      <span class="material-icons">keyboard_backspace</span>
+      <span i18n>Return</span>
+  </button>
+  </div>
+</div>
\ No newline at end of file
index a186fc8..a76955e 100644 (file)
@@ -79,5 +79,13 @@ export class PreferencesComponent implements OnInit {
             .then(_ => this.toast.success(this.successMsg.text))
             .then(_ => value);
     }
+
+    hasNoHistory(): boolean {
+        return history.length === 0;
+    }
+
+    goBack() {
+        history.back();
+    }
 }