Skip to content
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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2026 Conduction B.V.
# SPDX-License-Identifier: AGPL-3.0-or-later
/vendor/
/node_modules/
/build/
/js/
.php-cs-fixer.cache
24 changes: 24 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);

/**
* SPDX-FileCopyrightText: 2026 Conduction B.V.
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

require_once './vendor/autoload.php';

use Nextcloud\CodingStandard\Config;

$config = new Config();
$config
->getFinder()
->ignoreVCSIgnored(true)
->notPath('build')
->notPath('l10n')
->notPath('node_modules')
->notPath('src')
->notPath('vendor')
->in(__DIR__);
return $config;
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!--
- SPDX-FileCopyrightText: 2026 Conduction B.V.
- SPDX-License-Identifier: AGPL-3.0-or-later
-->

# Changelog

All notable changes to this app are listed here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## 0.1.0 - 2026-11-16

### Added

- Read-only "Archive" tab in the Files sidebar with classificatie, bewaartermijn, zorgdrager and identificatie, each with source and read time.
- S3 source: Object Lock retention and legal hold, user metadata and tags (`mdto-*`), for primary object storage and external S3 mounts.
- Administrator source through `occ archiefmeta:set`, and a Nextcloud file ID fallback for identificatie.
- Storage as core file metadata with `EDIT_FORBIDDEN`, behind `IMetadataStore` for the planned schema API switch.
- Commands `archiefmeta:refresh`, `archiefmeta:show` and `archiefmeta:set`.
- Read-only OCS endpoint `GET /api/v1/files/{fileId}`.
- English and Dutch translations.
12 changes: 12 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SPDX-FileCopyrightText: 2026 Conduction B.V.
# SPDX-License-Identifier: AGPL-3.0-or-later
version = 1
SPDX-PackageName = "archiefmeta"
SPDX-PackageSupplier = "Conduction B.V. <info@conduction.nl>"
SPDX-PackageDownloadLocation = "https://github.com/ConductionNL/archiefmeta"

[[annotations]]
path = ["l10n/**", "composer.json", "composer.lock", "package.json", "package-lock.json", "docs/screenshots/**"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2026 Conduction B.V."
SPDX-License-Identifier = "AGPL-3.0-or-later"
44 changes: 44 additions & 0 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0"?>
<!--
- SPDX-FileCopyrightText: 2026 Conduction B.V.
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>archiefmeta</id>
<name>Archive metadata</name>
<summary>Read-only archival (MDTO) metadata from the storage layer in the Files sidebar</summary>
<description><![CDATA[Shows archival metadata of a file in a read-only "Archive" tab in the Files sidebar.

The values come from the storage layer: S3 Object Lock retention and legal hold, and S3 object metadata or tags. An administrator can also set values with an occ command. Every value states where it came from and when it was read.

Users cannot change the values. The app stores them as Nextcloud file metadata that core refuses to edit over WebDAV, and it offers no write endpoint.

Fields follow MDTO, the Dutch metadata standard for durable government information: classificatie, bewaartermijn, zorgdrager and identificatie.]]></description>
<version>0.1.0</version>
<licence>agpl</licence>
<author mail="info@conduction.nl" homepage="https://conduction.nl">Conduction B.V.</author>
<namespace>ArchiefMeta</namespace>
<category>files</category>
<category>security</category>
<website>https://github.com/ConductionNL/archiefmeta</website>
<bugs>https://github.com/ConductionNL/archiefmeta/issues</bugs>
<repository type="git">https://github.com/ConductionNL/archiefmeta.git</repository>
<dependencies>
<php min-version="8.2"/>
<nextcloud min-version="34" max-version="36"/>
</dependencies>
<repair-steps>
<install>
<step>OCA\ArchiefMeta\Repair\RegisterMetadataFields</step>
</install>
<post-migration>
<step>OCA\ArchiefMeta\Repair\RegisterMetadataFields</step>
</post-migration>
</repair-steps>
<commands>
<command>OCA\ArchiefMeta\Command\Refresh</command>
<command>OCA\ArchiefMeta\Command\SetValues</command>
<command>OCA\ArchiefMeta\Command\Show</command>
</commands>
</info>
55 changes: 55 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "conductionnl/archiefmeta",
"description": "Read-only archival (MDTO) metadata from the storage layer in the Nextcloud Files sidebar",
"type": "project",
"license": "AGPL-3.0-or-later",
"authors": [
{
"name": "Conduction B.V.",
"email": "info@conduction.nl",
"homepage": "https://conduction.nl"
}
],
"autoload": {
"psr-4": {
"OCA\\ArchiefMeta\\": "lib/"
}
},
"autoload-dev": {
"psr-4": {
"OCA\\ArchiefMeta\\Tests\\": "tests/"
}
},
"require": {
"php": "^8.2"
},
"require-dev": {
"aws/aws-sdk-php": "^3.376",
"doctrine/dbal": "^4.2",
"nextcloud/coding-standard": "^1.4",
"nextcloud/ocp": "dev-stable34",
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^11.5",
"symfony/console": "^6.4"
},
"scripts": {
"lint": "find lib tests -name '*.php' -print0 | xargs -0 -n1 php -l > /dev/null",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"phpstan": "phpstan analyse --no-progress --memory-limit=1G",
"test:unit": "phpunit -c tests/phpunit.xml --testsuite unit --no-coverage",
"check": [
"@lint",
"@cs:check",
"@phpstan",
"@test:unit"
]
},
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"platform": {
"php": "8.2"
}
}
}
Loading