From 731ce74057b803582247ee8cf4c35af02580ca6a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 10 Jul 2019 11:57:18 -0400 Subject: [PATCH] LP1834665 Bib summary formats and jacket Display the format icon and label along the top of the Angular bib record summary. Display the jacket image along the left of the bib summary when the summary is in expaded mode. Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg --- .../bib-summary/bib-summary.component.css | 11 ++ .../bib-summary/bib-summary.component.html | 122 +++++++++++------- .../bib-summary/bib-summary.component.ts | 10 +- 3 files changed, 92 insertions(+), 51 deletions(-) create mode 100644 Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.css diff --git a/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.css b/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.css new file mode 100644 index 0000000000..11e8804226 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.css @@ -0,0 +1,11 @@ + + +.eg-bib-summary .card-header { + padding: .25rem .5rem +} + +.jacket { + padding: 3px; + width: 100%; +} + diff --git a/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.html b/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.html index 530e1080e2..45345d2501 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.html @@ -3,6 +3,15 @@
Record Summary + + + + + {{iconFormatLabel(icon)}} + + +
@@ -18,53 +27,70 @@
-
-
    -
  • -
    -
    Title:
    -
    {{summary.display.title}}
    -
    Edition:
    -
    {{summary.display.edition}}
    -
    TCN:
    -
    {{summary.record.tcn_value()}}
    -
    Created By:
    - -
    -
  • -
  • -
    -
    Author:
    -
    {{summary.display.author}}
    -
    Pubdate:
    -
    {{summary.display.pubdate}}
    -
    Database ID:
    -
    {{summary.id}}
    -
    Last Edited By:
    - -
    -
  • -
  • -
    -
    Bib Call #:
    -
    {{summary.bibCallNumber}}
    -
    Record Owner:
    -
    {{orgName(summary.record.owner())}}
    -
    Created On:
    -
    {{summary.record.create_date() | date:'short'}}
    -
    Last Edited On:
    -
    {{summary.record.edit_date() | date:'short'}}
    -
    -
  • -
-
+
+ + + +
+ + Jacket Image + +
+
+ + +
+
+
    +
  • +
    +
    Title:
    +
    {{summary.display.title}}
    +
    Edition:
    +
    {{summary.display.edition}}
    +
    TCN:
    +
    {{summary.record.tcn_value()}}
    +
    Created By:
    + +
    +
  • +
  • +
    +
    Author:
    +
    {{summary.display.author}}
    +
    Pubdate:
    +
    {{summary.display.pubdate}}
    +
    Database ID:
    +
    {{summary.id}}
    +
    Last Edited By:
    + +
    +
  • +
  • +
    +
    Bib Call #:
    +
    {{summary.bibCallNumber}}
    +
    Record Owner:
    +
    {{orgName(summary.record.owner())}}
    +
    Created On:
    +
    {{summary.record.create_date() | date:'short'}}
    +
    Last Edited On:
    +
    {{summary.record.edit_date() | date:'short'}}
    +
    +
  • +
+
+
+
diff --git a/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.ts b/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.ts index 954cb8bfe3..39b8944d3a 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.ts @@ -3,11 +3,12 @@ import {OrgService} from '@eg/core/org.service'; import {BibRecordService, BibRecordSummary } from '@eg/share/catalog/bib-record.service'; import {ServerStoreService} from '@eg/core/server-store.service'; +import {CatalogService} from '@eg/share/catalog/catalog.service'; @Component({ selector: 'eg-bib-summary', templateUrl: 'bib-summary.component.html', - styles: ['.eg-bib-summary .card-header {padding: .25rem .5rem}'] + styleUrls: ['bib-summary.component.css'] }) export class BibSummaryComponent implements OnInit { @@ -38,7 +39,8 @@ export class BibSummaryComponent implements OnInit { constructor( private bib: BibRecordService, private org: OrgService, - private store: ServerStoreService + private store: ServerStoreService, + private cat: CatalogService ) {} ngOnInit() { @@ -66,7 +68,6 @@ export class BibSummaryComponent implements OnInit { summary.getBibCallNumber(); this.bib.fleshBibUsers([summary.record]); this.summary = summary; - console.log(this.summary.display); }); } @@ -76,6 +77,9 @@ export class BibSummaryComponent implements OnInit { } } + iconFormatLabel(code: string): string { + return this.cat.iconFormatLabel(code); + } } -- 2.43.2