- npm updates

- datcite ListRecords request to json
- xslt tansfomation in the browser
This commit is contained in:
Arno Kaimbacher 2022-06-07 17:26:35 +02:00
parent f1de1c30e7
commit 27c4563628
3 changed files with 2117 additions and 2550 deletions

View file

@ -183,6 +183,19 @@ class DatasetService {
const oaiDatasets = api.get<string>(apiUrl).pipe(
map(
(response: string) => {
// const parser = new DOMParser();
// const xmlDoc: XMLDocument = parser.parseFromString(response, "application/xml");
// const xslDoc = parser.parseFromString(this.xsl, "application/xml");
// const xsltProcessor = new XSLTProcessor();
// xsltProcessor.importStylesheet(xslDoc);
// console.log(xmlDoc);
// const xmlDom = xsltProcessor.transformToDocument(xmlDoc);
// const serializer = new XMLSerializer();
// const html = serializer.serializeToString(xmlDom.documentElement);
// console.log(html);
// const arrOai = new Array<OaiDataset>();
// return arrOai;
const arrOai = this.parseXML(response);