-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests, refactor queries See merge request elds/plugins/cmem-plugin-irdi!1
- Loading branch information
Showing
22 changed files
with
939 additions
and
950 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Changes here will be overwritten by Copier | ||
_commit: v5.3.4 | ||
_commit: v6.0.1 | ||
_src_path: gh:eccenca/cmem-plugin-template | ||
author_mail: [email protected] | ||
author_name: TODO | ||
author_name: Robert Klose | ||
github_page: '' | ||
project_description: TODO | ||
project_description: Create unique IRDIs | ||
project_slug: irdi | ||
pypi: false | ||
|
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
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
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 @@ | ||
"""irdi - main package""" |
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,50 @@ | ||
"""PluginParameters and validation regex's for IRDI components""" | ||
from cmem_plugin_base.dataintegration.description import PluginParameter | ||
|
||
components = { | ||
"icd": { | ||
"parameter": PluginParameter( | ||
name="icd", label="International Code Designator (ICD): Numeric, 4 characters" | ||
), | ||
"regex": r"^\d{4}$", | ||
}, | ||
"oi": { | ||
"parameter": PluginParameter( | ||
name="oi", | ||
label="Organization Identifier (OI): Numeric, 4 characters", | ||
), | ||
"regex": r"^\d{4}$", | ||
}, | ||
"opi": { | ||
"parameter": PluginParameter( | ||
name="opi", | ||
label="Organization Part Identifier (OPI): Alphanumeric, up to 35 " | ||
"characters (base36)", | ||
default_value="", | ||
), | ||
"regex": r"^[a-zA-Z0-9]{0,35}$", | ||
}, | ||
"opis": { | ||
"parameter": PluginParameter( | ||
name="opis", | ||
label="OPI Source Indicator (OPIS): Numeric, 1 character", | ||
default_value="", | ||
), | ||
"regex": r"^\d$", | ||
}, | ||
"ai": { | ||
"parameter": PluginParameter( | ||
name="ai", | ||
label="Additional information (AI): Numeric, 4 characters", | ||
default_value="", | ||
), | ||
"regex": r"^\d{4}$", | ||
}, | ||
"csi": { | ||
"parameter": PluginParameter( | ||
name="csi", | ||
label="Code-space identifier (CSI): Alphanumeric, 2 character (base36)", | ||
), | ||
"regex": r"^[a-zA-Z0-9]{2}$", | ||
}, | ||
} |
Oops, something went wrong.