LP1834665 Angular catalog MARC flat text editor
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / catalog / record / record.component.html
1
2 <div id="staff-catalog-record-container">
3   <div class="row ml-0 mr-0">
4     <div id='staff-catalog-bib-navigation'>
5       <div *ngIf="searchContext.isSearchable()">
6         <eg-catalog-record-pagination [recordId]="recordId" [recordTab]="recordTab">
7         </eg-catalog-record-pagination>
8       </div>
9     </div>
10     <!-- push the actions component to the right -->
11     <div class="flex-1"></div>
12     <div id='staff-catalog-bib-navigation'>
13       <eg-catalog-record-actions [recordId]="recordId">
14       </eg-catalog-record-actions>
15     </div>
16   </div>
17   <div id='staff-catalog-bib-summary-container' class='mt-1'>
18     <eg-bib-summary [bibSummary]="summary">
19     </eg-bib-summary>
20   </div>
21   <div id='staff-catalog-bib-tabs-container' class='mt-3'>
22     <div class="row">
23       <div class="col-lg-12 text-right">
24         <button class="btn btn-secondary btn-sm"
25             [disabled]="recordTab == defaultTab"
26             (click)="setDefaultTab()" i18n>Set Default View</button>
27       </div>
28     </div>
29     <ngb-tabset #recordTabs [activeId]="recordTab" (tabChange)="onTabChange($event)">
30       <ngb-tab title="Item Table" i18n-title id="catalog">
31         <ng-template ngbTabContent>
32           <eg-catalog-copies [recordId]="recordId"></eg-catalog-copies>
33         </ng-template>
34       </ngb-tab>
35       <!-- NOTE some tabs send the user over to the AngJS app -->
36       <ngb-tab title="MARC Edit" i18n-title id="marc_edit">
37         <ng-template ngbTabContent>
38           <div class="mt-3">
39             <eg-marc-editor (recordSaved)="handleMarcRecordSaved()" 
40               [recordId]="recordId"></eg-marc-editor>
41           </div>
42         </ng-template>
43       </ngb-tab>
44       <ngb-tab title="MARC View" i18n-title id="marc_html">
45         <ng-template ngbTabContent>
46           <eg-marc-html [recordId]="recordId" recordType="bib"></eg-marc-html>
47         </ng-template>
48       </ngb-tab>
49       <ngb-tab title="View Holds" i18n-title id="holds">
50         <ng-template ngbTabContent>
51           <eg-holds-grid [recordId]="recordId"
52             preFetchSetting="catalog.record.holds.prefetch"
53             persistKey="cat.catalog.wide_holds"
54             [defaultSort]="[{name:'request_time',dir:'asc'}]"
55             [initialPickupLib]="currentSearchOrg()"></eg-holds-grid>
56         </ng-template>
57       </ngb-tab>
58       <ngb-tab title="Monograph Parts" i18n-title id="monoparts">
59         <ng-template ngbTabContent>
60           <eg-catalog-record-parts [recordId]="recordId">
61           </eg-catalog-record-parts>
62         </ng-template>
63       </ngb-tab>
64       <ngb-tab title="Holdings View" i18n-title id="holdings">
65         <ng-template ngbTabContent>
66           <eg-holdings-maintenance [recordId]="recordId">
67           </eg-holdings-maintenance>
68         </ng-template>
69       </ngb-tab>
70       <ngb-tab title="Conjoined Items" i18n-title id="conjoined">
71         <ng-template ngbTabContent>
72           <eg-catalog-record-conjoined [recordId]="recordId">
73           </eg-catalog-record-conjoined>
74         </ng-template>
75       </ngb-tab>
76     </ngb-tabset>
77   </div>
78 </div>
79
80