// These are served dynamically to handle cases where a tag or
// subfield is modified in place.
contextMenuEntries(): ContextMenuEntry[] {
- if (!this.field) { return; }
+ if (this.isLeader) { return; }
switch (this.fieldType) {
case 'tag':
);
if (!this.field.isCtrlField) {
+ // Only data field tags get these.
this.tagMenuEntries.push(
{label: this.insertAfterStr.text, value: '_insertAfter'},
{label: this.insertBeforeStr.text, value: '_insertBefore'}
// the record is successfully saved.
@Output() recordSaved: EventEmitter<MarcSavedEvent>;
- @ViewChild('sourceSelector', { static: true }) sourceSelector: ComboboxComponent;
- @ViewChild('confirmDelete', { static: true }) confirmDelete: ConfirmDialogComponent;
- @ViewChild('confirmUndelete', { static: true }) confirmUndelete: ConfirmDialogComponent;
- @ViewChild('cannotDelete', { static: true }) cannotDelete: ConfirmDialogComponent;
- @ViewChild('successMsg', { static: true }) successMsg: StringComponent;
- @ViewChild('failMsg', { static: true }) failMsg: StringComponent;
+ @ViewChild('sourceSelector', {static: false}) sourceSelector: ComboboxComponent;
+ @ViewChild('confirmDelete', {static: false}) confirmDelete: ConfirmDialogComponent;
+ @ViewChild('confirmUndelete', {static: false}) confirmUndelete: ConfirmDialogComponent;
+ @ViewChild('cannotDelete', {static: false}) cannotDelete: ConfirmDialogComponent;
+ @ViewChild('successMsg', {static: false}) successMsg: StringComponent;
+ @ViewChild('failMsg', {static: false}) failMsg: StringComponent;
constructor(
private evt: EventService,
<!-- LEADER -->
<div class="row pt-0 pb-0 pl-3">
<eg-marc-editable-content
- [context]="context" fieldType="tag"
- fieldText="LDR" i18n-fieldText moreClasses="p-1">
+ [context]="context" fieldText="LDR" i18n-fieldText moreClasses="p-1">
</eg-marc-editable-content>
<eg-marc-editable-content