2 <ng-container *ngIf="!dataLoaded">
4 <div class="offset-lg-3 col-lg-6">
5 <eg-progress-inline></eg-progress-inline>
11 <ng-template #subfieldChunk let-field="field" let-subfield="subfield">
13 <!-- move these around depending on whether we are stacking subfields -->
15 <!-- SUBFIELD DECORATOR/DELIMITER -->
16 <eg-marc-editable-content fieldText="‡" i18n-fieldText
17 moreClasses="sf-delimiter border-right-0 bg-transparent p-1 pr-0">
18 </eg-marc-editable-content>
20 <!-- SUBFIELD CHARACTER -->
21 <eg-marc-editable-content
22 [context]="context" [field]="field" fieldType="sfc"
23 [subfield]="subfield" ariaLabel="Subfield Code" i18n-ariaLabel
24 moreClasses="sf-code border-left-0 p-1 pl-0">
25 </eg-marc-editable-content>
27 <!-- SUBFIELD VALUE -->
28 <eg-marc-editable-content
29 [context]="context" [field]="field" fieldType="sfv"
30 [subfield]="subfield" ariaLabel="Subfield Value" i18n-ariaLabel
31 moreClasses="p-1 pt-2">
32 </eg-marc-editable-content>
36 <ng-container *ngIf="dataLoaded">
37 <div class="mt-3 text-monospace"
38 (contextmenu)="$event.preventDefault()">
39 <div class="row pb-2 mb-2 border-bottom border-muted">
40 <div class="col-lg-9 fixed-fields-container">
41 <eg-fixed-fields-editor [context]="context"></eg-fixed-fields-editor>
43 <div class="col-lg-3">
44 <div><button class="btn btn-outline-dark"
45 (click)="showHelp = !showHelp" i18n>Help</button></div>
46 <div class="mt-2"><button class="btn btn-outline-dark"
48 (click)="validate()" i18n>Validate</button></div>
50 <button type="button" class="btn btn-outline-info"
51 [disabled]="undoCount() < 1" (click)="undo()">
52 Undo <span class="badge badge-info">{{undoCount()}}</span>
54 <button type="button" class="btn btn-outline-info ml-2"
55 [disabled]="redoCount() < 1" (click)="redo()">
56 Redo <span class="badge badge-info">{{redoCount()}}</span>
60 <div class="form-check">
61 <input class="form-check-input" type="checkbox"
62 (change)="stackSubfieldsChange()"
63 [(ngModel)]="stackSubfields" id="stack-subfields-{{randId}}">
64 <label class="form-check-label" for="stack-subfields-{{randId}}">
70 <div class="col-lg-1">
73 <div *ngIf="showHelp" class="row m-2">
74 <div class="col-lg-4">
78 <li>Add Row: CTRL+Enter</li>
79 <li>Insert Row: CTRL+Shift+Enter</li>
82 <div class="col-lg-4">
84 <li>Copy Current Row Above: CTRL+Up</li>
85 <li>Copy Current Row Below: CTRL+Down</li>
86 <li>Add Subfield: CTRL+D or CTRL+I</li>
87 <li>Remove Row: CTRL+Del</li>
90 <div class="col-lg-4">
92 <li>Remove Subfield: Shift+Del</li>
93 <li>Create/Replace 006: Shift+F6</li>
94 <li>Create/Replace 007: Shift+F7</li>
95 <li>Create/Replace 008: Shift+F8</li>
101 <div class="row pt-0 pb-0 pl-3">
102 <eg-marc-editable-content
103 [context]="context" fieldText="LDR" i18n-fieldText moreClasses="p-1">
104 </eg-marc-editable-content>
106 <eg-marc-editable-content
107 [context]="context" fieldType="ldr"
108 ariaLabel="Leader" i18n-ariaLabel moreClasses="p-1 pr-2">
109 </eg-marc-editable-content>
112 <!-- CONTROL FIELDS -->
113 <div class="row pt-0 pb-0 pl-3"
114 *ngFor="let field of controlFields()">
116 <eg-marc-editable-content
117 [context]="context" [field]="field" fieldType="tag"
118 ariaLabel="Control Field Tag" i18n-ariaLabel moreClasses="p-1">
119 </eg-marc-editable-content>
121 <eg-marc-editable-content
122 [context]="context" [field]="field" fieldType="cfld"
123 ariaLabel="Control Field Content" i18n-ariaLabel moreClasses="p-1">
124 </eg-marc-editable-content>
128 <ng-container *ngFor="let field of dataFields()">
130 <div class="row pt-0 pb-0 pl-3">
133 <eg-marc-editable-content
134 [context]="context" [field]="field" fieldType="tag"
135 ariaLabel="Data Field Tag" i18n-ariaLabel moreClasses="p-1">
136 </eg-marc-editable-content>
139 <eg-marc-editable-content
140 [context]="context" [field]="field" fieldType="ind1"
141 ariaLabel="Data Field Indicator 1" i18n-ariaLabel moreClasses="p-1">
142 </eg-marc-editable-content>
145 <eg-marc-editable-content
146 [context]="context" [field]="field" fieldType="ind2"
147 ariaLabel="Data Field Indicator 2" i18n-ariaLabel moreClasses="p-1">
148 </eg-marc-editable-content>
150 <!-- when not stacking subfields, render them inline -->
151 <ng-container *ngIf="!stackSubfields">
152 <ng-container *ngFor="let subfield of field.subfields">
154 *ngTemplateOutlet="subfieldChunk;context:{field:field,subfield:subfield}">
160 <!-- when stacking subfields, each subfield gets its own row
161 preceeded by a placeholder for the tag as a way to 'tab' right -->
162 <ng-container *ngIf="stackSubfields">
163 <div class="form-inline" *ngFor="let subfield of field.subfields">
164 <eg-marc-editable-content fieldText=" " moreClasses="p-1 invisible">
165 </eg-marc-editable-content>
167 *ngTemplateOutlet="subfieldChunk;context:{field:field,subfield:subfield}">