Skip to content

Commit

Permalink
Link locations to the surrounding document on insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
piemonkey committed Dec 10, 2024
1 parent 3ad947f commit fb88c76
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-buses-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'frontend-gelinkt-notuleren': minor
---

Link locations to the surrounding article or decision on insertion
7 changes: 7 additions & 0 deletions app/controllers/regulatory-statements/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ import {

import SnippetInsertRdfaComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/snippet-plugin/snippet-insert-rdfa';
import { variableAutofillerPlugin } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/plugins/autofiller';
import { SAY } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';

export default class RegulatoryStatementsRoute extends Controller {
@service documentService;
Expand Down Expand Up @@ -287,6 +288,12 @@ export default class RegulatoryStatementsRoute extends Controller {
'https://publicatie.gelinkt-notuleren.vlaanderen.be/id/plaats/',
defaultAddressUriRoot:
'https://publicatie.gelinkt-notuleren.vlaanderen.be/id/adres/',
subjectTypesToLinkTo: [
SAY('Article'),
SAY('Subsection'),
SAY('Section'),
SAY('Chapter'),
],
},
lmb: {
endpoint: '/raw-sparql',
Expand Down
1 change: 1 addition & 0 deletions app/services/editor/agendapoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export default class AgendapointEditorService extends Service {
'https://publicatie.gelinkt-notuleren.vlaanderen.be/id/plaats/',
defaultAddressUriRoot:
'https://publicatie.gelinkt-notuleren.vlaanderen.be/id/adres/',
subjectTypesToLinkTo: [BESLUIT('Artikel'), BESLUIT('Besluit')],
},
lpdc: {
endpoint: '/lpdc-service',
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@lblod/ember-environment-banner": "^0.5.0",
"@lblod/ember-mock-login": "^0.10.0",
"@lblod/ember-rdfa-editor": "10.9.0",
"@lblod/ember-rdfa-editor-lblod-plugins": "26.1.0",
"@lblod/ember-rdfa-editor-lblod-plugins": "26.1.0-dev.23bbb85064dc86744df1e40778809fbb82cbbdb7",
"@lblod/template-uuid-instantiator": "^1.0.3",
"@release-it-plugins/lerna-changelog": "^6.0.0",
"@tsconfig/ember": "^3.0.8",
Expand Down

0 comments on commit fb88c76

Please sign in to comment.