Constraints - Einschränkungen
Allgemeine Informationen
Einschränkungen (constraints) spezifizieren die Zugangs- und Nutzungsbeschränkungen der Nutzungsarten (action).
Die Einschränkungen gelten ausdrücklich nur für die action, der sie zugewiesen sind. Einschränkungen, die für mehrere Nutzungsarten gelten, müssen jeder action zugewiesen werden.
Einschränkungen können durch Attributes (Eigenschaften) weiter spezifiziert werden.
<action type="ACTION-NAME" permission="true">
<restriction type="CONSTRAINT-NAME" ATTRIBUT-NAME="WERT"/>
</action>
"actions": [{
"type": "ACTION-NAME",
"permission": true,
"restrictions": [{
"type": "CONSTRAINT-NAME",
"ATTRIBUT-NAME": "WERT"
}]
}]
Liste
In LibRML stehen folgende Einschränkungen zur Verfügung.
| Constraint-Name | Übersetzung | Beschreibung | Beispiel |
|---|---|---|---|
| age | Alter | Einschränkung auf Nutzer eines bestimmten Alters. | → Age |
| agreement | Einwilligung | Einschränkung hinsichtlich eines Vertrags oder Zustimmung zu Nutzungsbedingungen. | → Agreement |
| concurrent | gleichzeitig | Einschränkung auf eine bestimmte Anzahl an gleichzeitigen Ausführungen, Benutzungen, o. Ä. | → Concurrent |
| count | Anzahl | Einschränkung auf eine bestimmte Anzahl an Ausführungen, Benutzungen, o. Ä. | → Count |
| date | Zeitpunkt | Einschränkung ab oder bis zu einem bestimmten Zeitpunkt (Embargo). | → Date |
| duration | Dauer | Einschränkung auf eine bestimmte Zeitdauer. | → Duration |
| group | Gruppe | Einschränkung auf bestimmte Personen oder Personengruppen. | → Group |
| location | Ort | Einschränkung auf ein bestimmtes Gebiet (z. B. Deutschland)oder auf eine bestimmte Einrichtung (z. B. SLUB). |
→ Location |
| parts | Teile | Einschränkung auf bestimmte Teile des digitalen Objekts. | → Parts |
| quality | Qualität | Einschränkung auf eine maximale Qualität. | → Quality |
| watermark | Wasserzeichen | Einschränkung auf eine Kennzeichnung des digitalen Objekts mit einem Wasserzeichen oder einer anderen Markierung. | → Watermark |
Beispiele
Parts
<action type="download" permission="true">
<restriction type="parts" parts="1" />
</action>
"type": "download",
"permission": true,
"restrictions": [
{
"type": "parts",
"parts": "1"
},
Group
<action type="print" permission="true">
<restriction type="group" groups="registered employee" />
</action>
"type": "print",
"permission": true,
"restrictions": [
{
"type": "group",
"groups": [
"registered",
"employee",
]
},
Age
<action type="read" permission="true">
<restriction type="age" suminagebnet="18" />
</action>
"type": "read",
"permission": true,
"restrictions": [
{
"type": "age",
"minage": "18"
},
Location
<action type="download" permission="true">
<restriction type="location" inside="library" />
</action>
"type": "download",
"permission": true,
"restrictions": [
{
"type": "location",
"inside": "library"
},
Date
<action type="distribute" permission="true">
<restriction type="date" fromdate="2035-01-01" />
</action>
"type": "distribute",
"permission": true,
"restrictions": [
{
"type": "date",
"fromdate": "2035-01-01"
},
Duration
<action type="run" permission="true">
<restriction type="duration" duration="86400" />
</action>
"type": "run",
"permission": true,
"restrictions": [
{
"type": "duration",
"duration": 86400
},
Count
<action type="print" permission="true">
<restriction type="count" count="10" />
</action>
"type": "print",
"permission": true,
"restrictions": [
{
"type": "count",
"count": 10
},
Concurrent
<action type="lend" permission="true">
<restriction type="concurrent" sessions="4" />
</action>
"type": "lend",
"permission": true,
"restrictions": [
{
"type": "concurrent",
"sessions": 4
},
Watermark
<action type="distribute" permission="true">
<restriction type="watermark" watermarkvalue="https://domain/watermark.png" />
</action>
"type": "distribute",
"permission": true,
"restrictions": [
{
"type": "watermark",
"watermarkvalue": "https://domain/watermark.png"
},
Quality
<action type="print" permission="true">
<restriction type="quality" maxresolution="300" />
</action>
"type": "print",
"permission": true,
"restrictions": [
{
"type": "quality",
"maxresolution": 300
},
Agreement
<action type="read" permission="true">
<restriction type="agreement" required="true" />
</action>
"type": "read",
"permission": true,
"restrictions": [
{
"type": "agreement",
"required": true
},