File tree 3 files changed +7
-3
lines changed
textzeugen/[sigla]/[thirties]/[verse]
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
export const api = `https://dhbern.github.io/parzival-static-api/api` ;
2
+
3
+ export const teipb = `https://tei-ub.dh.unibe.ch/exist/apps/parzival/api` ;
Original file line number Diff line number Diff line change 4
4
import VerseSelector from ' $lib/components/VerseSelector.svelte' ;
5
5
import { afterNavigate } from ' $app/navigation' ;
6
6
import { base } from ' $app/paths' ;
7
+ import { teipb } from ' $lib/constants' ;
7
8
8
9
/** @type {import('./$types').PageData} */
9
10
export let data;
20
21
loss = [];
21
22
sigla .codices .forEach ((element ) => {
22
23
publisherData[element .handle ] = fetch (
23
- ` https://tei-ub.dh.unibe.ch/exist/apps/parzival/api /parts/${ element .handle } .xml/json?odd=parzival.odd&view=single&xpath=//text/body/l[@xml:id=%27${ element .handle } _${ thirties} .${ verse} %27]`
24
+ ` ${ teipb } /parts/${ element .handle } .xml/json?odd=parzival.odd&view=single&xpath=//text/body/l[@xml:id=%27${ element .handle } _${ thirties} .${ verse} %27]`
24
25
).then ((r ) => r .json ());
25
26
});
26
27
});
31
32
$: sigla .hyparchetypes .forEach ((element ) => {
32
33
if (hyparchetypesSlider) {
33
34
publisherData[element .handle ] = fetch (
34
- ` https://tei-ub.dh.unibe.ch/exist/apps/parzival/api /parts/syn${ thirties} .xml/json?odd=parzival.odd&view=single&xpath=//text/body/div/div/l[@n=%27${ element .handle } %20${ thirties} .${ verse} %27]`
35
+ ` ${ teipb } /parts/syn${ thirties} .xml/json?odd=parzival.odd&view=single&xpath=//text/body/div/div/l[@n=%27${ element .handle } %20${ thirties} .${ verse} %27]`
35
36
).then ((r ) => r .json ());
36
37
} else {
37
38
delete publisherData[element .handle ];
Original file line number Diff line number Diff line change 1
1
<script >
2
2
import { onMount } from ' svelte' ;
3
3
import { assets } from ' $app/paths' ;
4
+ import { teipb } from ' $lib/constants' ;
4
5
5
6
/** @type {import('./$types').PageData} */
6
7
export let data;
104
105
data .sigla .forEach (async (element , i ) => {
105
106
console .log (' running for ' , element);
106
107
tpData[element] = fetch (
107
- ` https://tei-ub.dh.unibe.ch/exist/apps/parzival/api /parts/${ element} .xml/json?&view=page&id=${ data .page [i]} &odd=parzival.odd`
108
+ ` ${ teipb } /parts/${ element} .xml/json?&view=page&id=${ data .page [i]} &odd=parzival.odd`
108
109
).then ((r ) => r .json ());
109
110
tpData = { ... tpData };
110
111
});
You can’t perform that action at this time.
2 commit comments
flicksolutions commentedon Jun 3, 2024
Are we good to close #20 with this @pdaengeli ?
pdaengeli commentedon Jun 3, 2024
Closes #20