Skip to content

Commit

Permalink
Move query
Browse files Browse the repository at this point in the history
  • Loading branch information
MPParsley committed May 21, 2024
1 parent 14afe7c commit 5b0a475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webcomponents/besluiten-lijst/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class BesluitenLijst extends HTMLElement {
let filterparams = "";
if (statussen) {
const statussenArray = statussen.split(",");
filterparams += "FILTER(?status IN (" + statussenArray.map(status => `"${status.trim()}"@nl`).join(" ") + "))";
filterparams += "VALUES ?status { " + statussenArray.map(status => `"${status.trim()}"@nl`).join(" ") + " }"
}
if (bestuurseenheden) {
const bestuurseenhedenArray = bestuurseenheden.split(" ");
Expand Down Expand Up @@ -109,11 +109,11 @@ class BesluitenLijst extends HTMLElement {
eli:title_short ?title ;
prov:wasDerivedFrom ?url ;
prov:wasGeneratedBy/besluit:heeftStemming/besluit:gevolg ?status ;
${queryBestuursorgaan}
${queryBestuurseenheid}
?bestuursorgaanURI skos:prefLabel ?orgaanLabel .
BIND(CONCAT(UCASE(SUBSTR(?orgaanLabel, 1, 1)), SUBSTR(?orgaanLabel, 2)) AS ?orgaan)
${filterparams}
${queryBestuursorgaan}
} ORDER BY DESC(?zitting_datum) LIMIT ${amount}
`;
}
Expand Down

0 comments on commit 5b0a475

Please sign in to comment.