|
@@ -31,10 +31,10 @@ export class EditionDataService {
|
|
}
|
|
}
|
|
|
|
|
|
loadXIinclude(doc: HTMLElement, baseUrlPath: string) {
|
|
loadXIinclude(doc: HTMLElement, baseUrlPath: string) {
|
|
- console.log(document.location.href);
|
|
|
|
|
|
+ // console.log(document.location.href);
|
|
const parametro2 = document.location.href;
|
|
const parametro2 = document.location.href;
|
|
const parametro3 = parametro2.split("p=")[1].split("_")[0];
|
|
const parametro3 = parametro2.split("p=")[1].split("_")[0];
|
|
- console.log('parametroSigla : ' + parametro3);
|
|
|
|
|
|
+ // console.log('parametroSigla : ' + parametro3);
|
|
const parametro = '[href="lettere/' + parametro3 + '.xml"]';
|
|
const parametro = '[href="lettere/' + parametro3 + '.xml"]';
|
|
//const filesToInclude = Array.from(doc.getElementsByTagName('xi:include'));
|
|
//const filesToInclude = Array.from(doc.getElementsByTagName('xi:include'));
|
|
const filesToInclude = Array.from(doc.querySelectorAll(parametro));
|
|
const filesToInclude = Array.from(doc.querySelectorAll(parametro));
|