Skip to content

Commit

Permalink
use records files for base record cls
Browse files Browse the repository at this point in the history
  • Loading branch information
mirekys committed Aug 10, 2021
1 parent f2e29bf commit 46749a4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ include .editorconfig
prune docs/_build
recursive-include nr_datasets *.po *.pot *.mo
graft nr_datasets
include nr_datasets/datamodel.json5
Empty file.
10 changes: 10 additions & 0 deletions nr_datasets/datamodels/nr-datasets-v1.0.0.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"title": "NR DataSet record v1.0.0",
"type": "object",
"additionalProperties": false,
"oarepo:use": [
"nr-datasets-metadata-v1.0.0",
"communities-v1.0.0",
"fsm-record-v1.0.0"
]
}
2 changes: 1 addition & 1 deletion nr_datasets/record.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from flask import url_for
from invenio_records.api import Record
from invenio_records_files.api import Record
from oarepo_communities.converters import CommunityPIDValue
from oarepo_communities.proxies import current_oarepo_communities
from oarepo_communities.record import CommunityRecordMixin
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool]
[tool.poetry]
name = "techlib-nr-datasets"
version = "1.0.0a2"
version = "1.0.0a3"
description = "Czech National Repository datasets data model."
license = "MIT"
keywords = ["Czech", "Nation", "Repository", "Invenio", "datasets"]
Expand Down Expand Up @@ -53,3 +53,6 @@ techlib-nr-generic = "^1.0.0-alpha.1"

[tool.poetry.plugins."invenio_pidstore.fetchers"]
'nr_datasets' = 'nr_datasets.fetchers:nr_datasets_id_fetcher'

[tool.poetry.plugins.'oarepo_model_builder.datamodels']
'nr_datasets' = 'nr_datasets.datamodels'

0 comments on commit 46749a4

Please sign in to comment.