From: Bill Erickson Date: Thu, 29 Jul 2021 20:02:44 +0000 (-0400) Subject: LP1910452 Remove staff catalog read-only OPAC Patron View X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c20936e7af42d0fa0250685585faa18a64387b20;p=Evergreen.git LP1910452 Remove staff catalog read-only OPAC Patron View This is superseded by a new Patron View button. Also removes the underlying component, since it's not longer used anywhere. Signed-off-by: Bill Erickson Signed-off-by: Michele Morgan Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/catalog.module.ts b/Open-ILS/src/eg2/src/app/staff/catalog/catalog.module.ts index 4df2ffd2ad..89eb2b06ae 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/catalog.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/catalog.module.ts @@ -11,7 +11,6 @@ import {SearchFormComponent} from './search-form.component'; import {ResultsComponent} from './result/results.component'; import {RecordComponent} from './record/record.component'; import {CopiesComponent} from './record/copies.component'; -import {OpacViewComponent} from './record/opac.component'; import {ResultPaginationComponent} from './result/pagination.component'; import {ResultFacetsComponent} from './result/facets.component'; import {ResultRecordComponent} from './result/record.component'; @@ -57,7 +56,6 @@ import {BrowsePagerComponent} from './result/browse-pager.component'; HoldingsMaintenanceComponent, SearchTemplatesComponent, CnBrowseComponent, - OpacViewComponent, PreferencesComponent, CnBrowseResultsComponent, BrowsePagerComponent diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.html deleted file mode 100644 index adbaeec39e..0000000000 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.html +++ /dev/null @@ -1,10 +0,0 @@ - -
-
-
- - - - - diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.ts deleted file mode 100644 index 98eadf38da..0000000000 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.ts +++ /dev/null @@ -1,47 +0,0 @@ -import {Component, Input, Renderer2} from '@angular/core'; -import {DomSanitizer} from '@angular/platform-browser'; - -const OPAC_BASE_URL = '/eg/opac/record'; - -@Component({ - selector: 'eg-opac-record-detail', - templateUrl: 'opac.component.html' -}) -export class OpacViewComponent { - - url; // SafeResourceUrlImpl - loaded: boolean; - - _recordId: number; - @Input() set recordId(id: number) { - - // Verify record ID is numeric only - if (id && (id + '').match(/^\d+$/)) { - this._recordId = id; - this.url = this.sanitizer.bypassSecurityTrustResourceUrl( - `${OPAC_BASE_URL}/${id}?readonly=1`); - } else { - this._recordId = null; - this.url = null; - } - } - - get recordId(): number { - return this._recordId; - } - - constructor( - private sanitizer: DomSanitizer, - private renderer: Renderer2) {} - - handleLoad() { - const iframe = this.renderer.selectRootElement('#opac-iframe'); - - // 50 extra px adds enough space to avoid the scrollbar altogether - const height = 50 + iframe.contentWindow.document.body.offsetHeight; - - iframe.style.height = `${height}px`; - this.loaded = true; - } -} - 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 0630d3b6d8..693c288396 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 @@ -94,12 +94,6 @@ - - - - - -