diff --git a/.changeset/dirty-buses-kick.md b/.changeset/dirty-buses-kick.md new file mode 100644 index 000000000..69a10e344 --- /dev/null +++ b/.changeset/dirty-buses-kick.md @@ -0,0 +1,5 @@ +--- +'frontend-gelinkt-notuleren': minor +--- + +Link locations to the surrounding article or decision on insertion diff --git a/app/controllers/regulatory-statements/edit.js b/app/controllers/regulatory-statements/edit.js index 51fae4dd5..d0813a1fa 100644 --- a/app/controllers/regulatory-statements/edit.js +++ b/app/controllers/regulatory-statements/edit.js @@ -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; @@ -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', diff --git a/app/services/editor/agendapoint.js b/app/services/editor/agendapoint.js index 3adf0062a..d6e4303ad 100644 --- a/app/services/editor/agendapoint.js +++ b/app/services/editor/agendapoint.js @@ -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', diff --git a/package-lock.json b/package-lock.json index 1487bd57b..e1a42122a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,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", @@ -7571,9 +7571,9 @@ } }, "node_modules/@lblod/ember-rdfa-editor-lblod-plugins": { - "version": "26.1.0", - "resolved": "https://registry.npmjs.org/@lblod/ember-rdfa-editor-lblod-plugins/-/ember-rdfa-editor-lblod-plugins-26.1.0.tgz", - "integrity": "sha512-XEWcQFsDrJ6AMj5Q6oW9D83gNZ00y/ADE432bme1C3ULGTfvar2g8VHv4m5wBi9SlBa8PC9cQLHMogPeDt8HFQ==", + "version": "26.1.0-dev.23bbb85064dc86744df1e40778809fbb82cbbdb7", + "resolved": "https://registry.npmjs.org/@lblod/ember-rdfa-editor-lblod-plugins/-/ember-rdfa-editor-lblod-plugins-26.1.0-dev.23bbb85064dc86744df1e40778809fbb82cbbdb7.tgz", + "integrity": "sha512-l/isOAUhWIdRP5l8PdEfJ+JAwldRWh1EaZydHiLwyJX57BmJEk+8YIs/HMTpHDt/t8/4LUi1SoFSeEGFR7f/fQ==", "dev": true, "dependencies": { "@codemirror/lang-html": "^6.4.9", diff --git a/package.json b/package.json index 077a23c40..cb5851072 100644 --- a/package.json +++ b/package.json @@ -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",