{"id":20718630,"url":"https://github.com/os2web/os2web_borgerdk","last_synced_at":"2025-10-06T11:59:46.686Z","repository":{"id":57033301,"uuid":"238650694","full_name":"OS2web/os2web_borgerdk","owner":"OS2web","description":"OS2Web Borger.dk integration Drupal 8 module","archived":false,"fork":false,"pushed_at":"2025-08-27T11:31:20.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"develop","last_synced_at":"2025-09-19T16:21:02.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OS2web.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-06T09:22:53.000Z","updated_at":"2021-06-09T19:26:19.000Z","dependencies_parsed_at":"2024-04-29T09:31:39.919Z","dependency_job_id":"fffd9653-96c8-4855-9041-9cfead7807f0","html_url":"https://github.com/OS2web/os2web_borgerdk","commit_stats":{"total_commits":46,"total_committers":2,"mean_commits":23.0,"dds":0.06521739130434778,"last_synced_commit":"ad7bb1847fbc4c6f2712078297099fc06e897911"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OS2web/os2web_borgerdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_borgerdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_borgerdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_borgerdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_borgerdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OS2web","download_url":"https://codeload.github.com/OS2web/os2web_borgerdk/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_borgerdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278606356,"owners_count":26014616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T03:14:18.283Z","updated_at":"2025-10-06T11:59:46.659Z","avatar_url":"https://github.com/OS2web.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OS2Web Borger.dk Drupal module\n\n## Module purpose\n\nThe aim of this module is to provide integration with Borger.dk Content (https://www.borger.dk), and expose this content to be used in Drupal.\n\n## How does it work\n\nBorger.dk content is being imported from Borger.dk SOAP webservice using an unofficial PHP Borger.dk library (https://github.com/ffwagency/borgerdk-php).\n\nSince the library is not compatible with Drupal 8 and also misses important functionality (like importing the English language articles), it is substituted with a fork (https://github.com/bellcom/borgerdk-php) during install process.\n\nSynchronization is handled via Migrate API, which is part of the Drupal 8 core functionality.\n\nAfter the content is being imported, it can be references from any fieldable entity by using field of type **os2web_borgerdk_article_reference**, which is provided by this module.\n\nThe Migrate API will also take care of updating the changed Borger.dk content, as well as deleting the obsolete Borger.dk content (the content that is present in the installation but is no longer present in Borger.dk).\nBefore deleting the obsolete content, a notify email will be sent to the email provided in the Borger.dk settings page ```admin/config/content/os2web-borgerdk```.\n\n## Additional settings\nSettings are available under ```admin/config/content/os2web-borgerdk```\n* **Fetch content for selected municipality** - Specify a municipality if the imported content needs to be municipality specific. That will be an option passed to Borger.dk SOAP webservice.\n* **Send notification about obsolete Borger.dk articles** - Enable the obsolete articles notify email.\n* **Recipient(s) of the email** - CSV list of the recipient of the notification email.\n* **Email subject** - Subject of the email.\n* **Email body** - Body of the email.\n\n## Install\n\nModule is available to download via composer.\n```\ncomposer require os2web/os2web_borgerdk\ndrush en os2web_borgerdk\n```\n## Update\nUpdating process for OS2Web Borger.dk module is similar to usual Drupal 8 module.\nUse Composer's built-in command for listing packages that have updates available:\n\n```\ncomposer outdated os2web/os2web_borgerdk\n```\n\n## Import process\n\nThe import process can be done in two ways:\n* Via Drush (recommended)\n    * Use the following Drush command to start the migration:\n        ```\n        drush migrate:import os2web_borgerdk_articles_import\n        ```\n        Read more about the Drush commands for Migrate API on [Migrate tools](https://www.drupal.org/project/migrate_tool).\n    * It is highly recommended to set up a cronjob on your server to do the run this command often\n\n* Via Admin UI\n    * Go to ```admin/structure/migrate/manage/os2web_borgerdk/migrations``` on your installation\n    * Click ```Execute```\n    * Click ```Execute``` on the next page as well (doing that will use default options).\n\n## Module translation\nModule's main language is English but Danish language is fully supported.\n\nWhen extending this module add your translations to the corresponding **\\*.po** files located ```modules/contrib/os2web_borgerdk/translations/``` and run the following to update translations:\n```\ndrush locale-check\ndrush locale-update \u0026\u0026 drush cr\n```\n\n## Automated testing and code quality\nSee [OS2Web testing and CI information](https://github.com/OS2Web/docs#testing-and-ci)\n\n## Contribution\n\nProject is opened for new features and os course bugfixes.\nIf you have any suggestion or you found a bug in project, you are very welcome\nto create an issue in github repository issue tracker.\nFor issue description there is expected that you will provide clear and\nsufficient information about your feature request or bug report.\n\n### Code review policy\nSee [OS2Web code review policy](https://github.com/OS2Web/docs#code-review)\n\n### Git name convention\nSee [OS2Web git name convention](https://github.com/OS2Web/docs#git-guideline)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fos2web%2Fos2web_borgerdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fos2web%2Fos2web_borgerdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fos2web%2Fos2web_borgerdk/lists"}