Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/app/panels/witness-panel/witness-panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export class WitnessPanelComponent implements OnInit {
const originalPages = this.structureParser.parsePages(source).pages;
const lacunaPairs = this.structureParser.groupedByWitLacunas.get(this.witnessItem.id);
const separator = AppConfig.evtSettings.edition.editionStructureSeparator;

const el = document.createElement('w');
el.innerText = ' ';
const emptyElement = this.genericParseService.parse(el);
Expand Down Expand Up @@ -79,8 +78,10 @@ export class WitnessPanelComponent implements OnInit {
}
}

for (const page of originalPages) {
removeElementsBetweenLacunas(page.parsedContent, () => page.isPartOfLacuna = true);
if (lacunaPairs) {
for (const page of originalPages) {
removeElementsBetweenLacunas(page.parsedContent, () => page.isPartOfLacuna = true);
}
}

const appsData: AppData[] = this.structureParser.allApps
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/xml-parsers/structure-xml-parser.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export class StructureXmlParserService {
const from = appFrom.valueWithoutRef;
const to = id; // the exponent will be the To element itself since is placed as next sibling of the current item
const exponent = ApparatusEntryExponent.create(id, from, to, getExponentLabel(), app);
items.splice(i + 1, 0, exponent); // insert as sibling because this component is not an anchor
item.content.push(exponent); // insert as sibling because this component is not an anchor
this.appExponents.set(exponent.id().valueWithoutRef, exponent);
app.exponent = exponent.label;
}
Expand All @@ -395,7 +395,7 @@ export class StructureXmlParserService {
const exponent = ApparatusEntryExponent.create(id, from, to, getExponentLabel(), app);
item.content.push(exponent);
this.appExponents.set(exponent.id().valueWithoutRef, exponent);
app.exponent = exponent.label;
app.exponent = exponent.label;
}
}
}
Expand Down