}
+export class CatalogCnBrowseContext {
+ value: string;
+ // offset in pages from base browse term
+ // e.g. -2 means 2 pages back (alphabetically) from the original search.
+ offset: number;
+
+ reset() {
+ this.value = '';
+ this.offset = 0;
+ }
+
+ isSearchable() {
+ return this.value !== '';
+ }
+}
+
export class CatalogTermContext {
fieldClass: string[];
query: string[];
marcSearch: CatalogMarcContext;
identSearch: CatalogIdentContext;
browseSearch: CatalogBrowseContext;
+ cnBrowseSearch: CatalogCnBrowseContext;
// Result from most recent search.
result: CatalogSearchResults;
this.marcSearch = new CatalogMarcContext();
this.identSearch = new CatalogIdentContext();
this.browseSearch = new CatalogBrowseContext();
+ this.cnBrowseSearch = new CatalogCnBrowseContext();
this.reset();
}