-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metadata: fix dojeson for virtua records
* Fixes dojson transformation errors. * Adds data path parameter to setup script. * Adds all languages to documents json schema and form. * Adds marc21tojson utils cli for parallel dojson transformation. Co-Authored-by: Peter Weber <peter.weber@rero.ch>
Showing
15 changed files
with
6,837 additions
and
1,679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
228 changes: 145 additions & 83 deletions
228
rero_ils/modules/documents/dojson/contrib/marc21tojson/model.py
Large diffs are not rendered by default.
Oops, something went wrong.
990 changes: 982 additions & 8 deletions
990
rero_ils/modules/documents/jsonschemas/documents/document-minimal-v0.0.1.json
Large diffs are not rendered by default.
Oops, something went wrong.
522 changes: 502 additions & 20 deletions
522
rero_ils/modules/documents/jsonschemas/documents/document-minimal-v0.0.1_src.json
Large diffs are not rendered by default.
Oops, something went wrong.
990 changes: 982 additions & 8 deletions
990
rero_ils/modules/documents/jsonschemas/documents/document-v0.0.1.json
Large diffs are not rendered by default.
Oops, something went wrong.
522 changes: 502 additions & 20 deletions
522
rero_ils/modules/documents/jsonschemas/documents/document-v0.0.1_src.json
Large diffs are not rendered by default.
Oops, something went wrong.
1,934 changes: 1,907 additions & 27 deletions
1,934
rero_ils/modules/documents/jsonschemas/form_documents/document-v0.0.1.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
# | ||
# RERO ILS | ||
# Copyright (C) 2019 RERO | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published by | ||
# the Free Software Foundation, version 3 of the License. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
NC='\033[0m' # Default color | ||
COLORED='\033[1;97;44m' # Bold + white + blue background | ||
|
||
set -e | ||
|
||
msg() { | ||
echo -e "${COLORED}${EMPHASIS}[INFO]${NC}${COLORED}: ${1}${NC}" 1>&2 | ||
} | ||
|
||
msg Dojson ${1} | ||
pipenv run dojson -i ${1} -l marcxml -d pjson do marc21tojson >${1%.*}.json 2>${1%.*}.log | ||
|
||
msg Validate: ${1%.*}.json | ||
pipenv run invenio utils validate ${1%.*}.json documents document-v0.0.1.json -e ${1%.*}_error.json -o ${1%.*}_ok.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters