Skip to content
Open
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
10 changes: 5 additions & 5 deletions scripts/demo/resticted_access.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tools/restricted_jsons/item_type_property/form.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
{
"condition": "model.parentkey[arrayIndex].accessrole == 'open_date'",
"format": "yyyy-MM-dd",
"key": "parentkey.accessdate",
"key": "parentkey.date[0].dateValue",
"templateUrl": "/static/templates/weko_deposit/datepicker.html",
"title": "公開日",
"type": "template"
Expand Down
2 changes: 1 addition & 1 deletion tools/restricted_jsons/item_type_property/forms.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
{
"condition": "model.parentkey[arrayIndex].accessrole == 'open_date'",
"format": "yyyy-MM-dd",
"key": "parentkey[].accessdate",
"key": "parentkey[].date[0].dateValue",
"templateUrl": "/static/templates/weko_deposit/datepicker.html",
"title": "公開日",
"title_i18n": {
Expand Down
33 changes: 26 additions & 7 deletions tools/restricted_jsons/item_type_property/schema.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
{
"format": "object",
"properties": {
"accessdate": {
"format": "datetime",
"title": "公開日",
"title_i18n": {
"en": "",
"ja": ""
"date": {
"format": "array",
"items": {
"format": "object",
"properties": {
"dateType": {
"enum": [
null,
"Available"
],
"format": "select",
"title": "タイプ",
"type": [
"null",
"string"
]
},
"dateValue": {
"format": "datetime",
"title": "公開日",
"type": "string"
}
},
"type": "object"
},
"type": "string"
"title": "公開日",
"type": "array"
},
"accessrole": {
"default": "open_restricted",
Expand Down
2 changes: 1 addition & 1 deletion tools/switch_restricted_access/disable/form.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
{
"condition": "model.parentkey[arrayIndex].accessrole == 'open_date'",
"format": "yyyy-MM-dd",
"key": "parentkey.accessdate",
"key": "parentkey.date[0].dateValue",
"templateUrl": "/static/templates/weko_deposit/datepicker.html",
"title": "公開日",
"type": "template"
Expand Down
2 changes: 1 addition & 1 deletion tools/switch_restricted_access/disable/forms.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
{
"condition": "model.parentkey[arrayIndex].accessrole == 'open_date'",
"format": "yyyy-MM-dd",
"key": "parentkey[].accessdate",
"key": "parentkey[].date[0].dateValue",
"templateUrl": "/static/templates/weko_deposit/datepicker.html",
"title": "公開日",
"title_i18n": {
Expand Down
33 changes: 26 additions & 7 deletions tools/switch_restricted_access/disable/schema.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
{
"format": "object",
"properties": {
"accessdate": {
"format": "datetime",
"title": "公開日",
"title_i18n": {
"en": "",
"ja": ""
"date": {
"format": "array",
"items": {
"format": "object",
"properties": {
"dateType": {
"enum": [
null,
"Available"
],
"format": "select",
"title": "タイプ",
"type": [
"null",
"string"
]
},
"dateValue": {
"format": "datetime",
"title": "公開日",
"type": "string"
}
},
"type": "object"
},
"type": "string"
"title": "公開日",
"type": "array"
},
"accessrole": {
"default": "open_no",
Expand Down
2 changes: 1 addition & 1 deletion tools/switch_restricted_access/enable/form.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
{
"condition": "model.parentkey[arrayIndex].accessrole == 'open_date'",
"format": "yyyy-MM-dd",
"key": "parentkey.accessdate",
"key": "parentkey.date[0].dateValue",
"templateUrl": "/static/templates/weko_deposit/datepicker.html",
"title": "公開日",
"type": "template"
Expand Down
2 changes: 1 addition & 1 deletion tools/switch_restricted_access/enable/forms.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
{
"condition": "model.parentkey[arrayIndex].accessrole == 'open_date'",
"format": "yyyy-MM-dd",
"key": "parentkey[].accessdate",
"key": "parentkey[].date[0].dateValue",
"templateUrl": "/static/templates/weko_deposit/datepicker.html",
"title": "公開日",
"title_i18n": {
Expand Down
33 changes: 26 additions & 7 deletions tools/switch_restricted_access/enable/schema.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
{
"format": "object",
"properties": {
"accessdate": {
"format": "datetime",
"title": "公開日",
"title_i18n": {
"en": "",
"ja": ""
"date": {
"format": "array",
"items": {
"format": "object",
"properties": {
"dateType": {
"enum": [
null,
"Available"
],
"format": "select",
"title": "タイプ",
"type": [
"null",
"string"
]
},
"dateValue": {
"format": "datetime",
"title": "公開日",
"type": "string"
}
},
"type": "object"
},
"type": "string"
"title": "公開日",
"type": "array"
},
"accessrole": {
"default": "open_restricted",
Expand Down