Skip to content

Commit

Permalink
OA-340 add state protected
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrebs committed Aug 15, 2024
1 parent 7f8186d commit cda570b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/main/resources/classifications/state.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<mycoreclass xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MCRClassification.xsd" ID="state">
<label xml:lang="de" text="Objektstatus" />
<label xml:lang="en" text="Object state" />
<label xml:lang="x-uri" text="http://www.mycore.org/classifications/state" />
<categories>
<category ID="submitted">
<label xml:lang="de" text="eingereicht" />
<label xml:lang="en" text="submitted" />
</category>
<category ID="review">
<label xml:lang="de" text="wird bearbeitet" />
<label xml:lang="en" text="in review" />
</category>
<category ID="published">
<label xml:lang="de" text="veröffentlicht" />
<label xml:lang="en" text="published" />
</category>
<category ID="protected">
<label xml:lang="de" text="geschützt" />
<label xml:lang="en" text="protected" />
</category>
<category ID="blocked">
<label xml:lang="de" text="gesperrt" />
<label xml:lang="en" text="blocked" />
</category>
<category ID="deleted">
<label xml:lang="de" text="gelöscht" />
<label xml:lang="en" text="deleted" />
</category>
</categories>
</mycoreclass>
2 changes: 2 additions & 0 deletions src/main/resources/config/reposis_openagrar/mycore.properties
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
# allowed file name pattern
MCR.FileUpload.FileNamePattern=\\A[a-zA-Z0-9_\\-\\.]*\\z

# add state to access strategy
MIR.Access.Strategy.Classifications=mir_access,state

##############################################################################
# #
Expand Down

0 comments on commit cda570b

Please sign in to comment.