Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GN-4544: Always get decision title from public decisions #311

Merged
merged 2 commits into from
Oct 2, 2023
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
5 changes: 5 additions & 0 deletions .changeset/great-cheetahs-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lblod/ember-rdfa-editor-lblod-plugins': patch
---

GN-4544: Decision title sometimes is not present from public decisions query
10 changes: 6 additions & 4 deletions addon/plugins/citation-plugin/utils/public-decisions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,16 @@ const getCountQuery = ({
?session besluit:behandelt ?agendaPoint.
?agendaPointTreatment dct:subject ?agendaPoint;
prov:generated ?decision.
?decision eli:title ?decisionTitle.
?decision eli:title ?decisionTitleViaAgenda.
}
OPTIONAL {
?session ext:uittreksel ?treatment.
?treatment mu:uuid ?treatmentUuid.
?treatment ext:uittrekselBvap ?agendaPointTreatment.
?agendaPointTreatment prov:generated ?decision.
?decision eli:title ?decisionTitle.
?decision eli:title ?decisionTitleViaTreatment.
}
BIND(COALESCE(?decisionTitleViaAgenda, ?decisionTitleViaTreatment) as ?decisionTitle)
${filterString}
}
`;
Expand Down Expand Up @@ -145,15 +146,16 @@ const getQuery = ({
?session besluit:behandelt ?agendaPoint.
?agendaPointTreatment dct:subject ?agendaPoint;
prov:generated ?decision.
?decision eli:title ?decisionTitle.
?decision eli:title ?decisionTitleViaAgenda.
}
OPTIONAL {
?session ext:uittreksel ?treatment.
?treatment mu:uuid ?treatmentUuid.
?treatment ext:uittrekselBvap ?agendaPointTreatment.
?agendaPointTreatment prov:generated ?decision.
?decision eli:title ?decisionTitle.
?decision eli:title ?decisionTitleViaTreatment.
}
BIND(COALESCE(?decisionTitleViaAgenda, ?decisionTitleViaTreatment) as ?decisionTitle)
${filterString}
}
ORDER BY DESC (?documentDate) (?decisionTitle) LIMIT ${pageSize} OFFSET ${
Expand Down