-
Notifications
You must be signed in to change notification settings - Fork 0
Create Export Functionality #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b6128f6
Complete most aspects of the transfer service.
11af592
Most changes completed minus final task to create article page and in…
5d4c773
Update minor typos.
0141c61
Rewrites to exclude the need for a journal to be handed over.
4a6a413
Updates to create a singleton class service to be utilized easily.
b4a4cff
Updates to fix build issues during plugin installation.
6479000
Cleanup code and add simple testing.
38968b6
Update tests and code cleanup
59c9654
Added the settings manager page for the plugin.
dce160e
Complete all pending work.
31681bb
Update tests to add more complexity.
7ecfa36
Update testing for automatic runs.
31c0aae
Update django.yml
RoseReatherford 408c874
Update django.yml
RoseReatherford f387555
Update django.yml
RoseReatherford 565aed5
Update django.yml
RoseReatherford 091571d
Update django.yml
RoseReatherford 8a3c5c5
Add init.
e7a2065
Update django.yml
RoseReatherford 8b58e73
Add src to python path. Add janeway settings module.
7f4eb39
Remove export.
2e80da1
Add working directory.
9dec926
Update environment variable.
a950b9c
Update shell.
938eb87
Add environment variable.
56a5978
Add Django Settings module to environment.
5c1e2a2
Use Django Test Runner
RoseReatherford 2d18404
Update based on feedback
19d603b
Update mock.
b38261e
Add the journal code to calls for finding the article.
96b1f6c
Update readme to include instructions regarding the `PYTHONPATH` for …
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 +1,4 @@ | ||
| /.venv/ | ||
| /editorial_manager_transfer_service.iml | ||
| /.idea/ | ||
| /.hypothesis/ |
This file contains hidden or 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 hidden or 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,48 @@ | ||
| import os | ||
|
|
||
| from django.conf import settings | ||
|
|
||
| # Plugin Settings | ||
| PLUGIN_NAME = 'Editorial Manager Transfer Service Plugin' | ||
| DISPLAY_NAME = 'Editorial Manager Transfer Service' | ||
| DESCRIPTION = 'A plugin to provide information for Aries\' Editorial Manager to enable automatic transfers.' | ||
| AUTHOR = 'PLOS' | ||
| VERSION = '0.1' | ||
| SHORT_NAME = 'editorial_manager_transfer_service' | ||
| MANAGER_URL = 'editorial_manager_transfer_service_manager' | ||
| JANEWAY_VERSION = "1.8.0" | ||
|
|
||
| # Setting Configuration | ||
| PLUGIN_SETTINGS_GROUP_NAME = "plugin:editorial_manager_transfer_service" | ||
| PLUGIN_SETTINGS_LICENSE_CODE = "license_code" | ||
| PLUGIN_SETTINGS_JOURNAL_CODE = "journal_code" | ||
| PLUGIN_SETTINGS_SUBMISSION_PARTNER_CODE = "submission_partner_code" | ||
|
|
||
| # Import and export filepaths | ||
| EXPORT_FILE_PATH = os.path.join(settings.BASE_DIR, 'files', 'plugins', 'editorial-manager-transfer-service', 'export') | ||
| IMPORT_FILE_PATH = os.path.join(settings.BASE_DIR, 'files', 'plugins', 'editorial-manager-transfer-service', 'import') | ||
|
|
||
| # XML File | ||
| GO_FILE_ELEMENT_TAG_GO = "GO" | ||
| GO_FILE_GO_ELEMENT_ATTRIBUTE_XMLNS_XSI_KEY = "xmlns:xsi" | ||
| GO_FILE_GO_ELEMENT_ATTRIBUTE_XMLNS_XSI_VALUE = "http://www.w3.org/2001/XMLSchema-instance" | ||
| GO_FILE_GO_ELEMENT_ATTRIBUTE_SCHEMA_LOCATION_KEY = "xsi:noNamespaceSchemaLocation" | ||
| GO_FILE_GO_ELEMENT_ATTRIBUTE_SCHEMA_LOCATION_VALUE = "app://Aries.EditorialManager/Resources/XmlDefineTransformFiles/aries_import_go_file.xsd" | ||
| GO_FILE_ELEMENT_TAG_HEADER = "header" | ||
| GO_FILE_ELEMENT_TAG_VERSION = "version" | ||
| GO_FILE_VERSION_ELEMENT_ATTRIBUTE_NUMBER_KEY = "number" | ||
| GO_FILE_VERSION_ELEMENT_ATTRIBUTE_NUMBER_VALUE = "1.0" | ||
| GO_FILE_ELEMENT_TAG_JOURNAL = "journal" | ||
| GO_FILE_JOURNAL_ELEMENT_ATTRIBUTE_CODE_KEY = "code" | ||
| GO_FILE_ELEMENT_TAG_IMPORT_TYPE = "import-type" | ||
| GO_FILE_IMPORT_TYPE_ELEMENT_ATTRIBUTE_ID_KEY = "id" | ||
| GO_FILE_IMPORT_TYPE_ELEMENT_ATTRIBUTE_ID_VALUE = "2" | ||
| GO_FILE_ELEMENT_TAG_PARAMETERS = "parameters" | ||
| GO_FILE_ELEMENT_TAG_PARAMETER = "parameter" | ||
| GO_FILE_ATTRIBUTE_ELEMENT_NAME_KEY = "name" | ||
| GO_FILE_PARAMETER_ELEMENT_NAME_VALUE = "license-code" | ||
| GO_FILE_PARAMETER_ELEMENT_VALUE_KEY = "value" | ||
| GO_FILE_ELEMENT_TAG_ARCHIVE_FILE = "archive-file" | ||
| GO_FILE_ELEMENT_TAG_FILEGROUP = "filegroup" | ||
| GO_FILE_ELEMENT_TAG_FILE = "file" | ||
| GO_FILE_ELEMENT_TAG_METADATA_FILE = "metadata-file" | ||
This file contains hidden or 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 +1,2 @@ | ||
| pytest | ||
| hypothesis==6.138.7 | ||
| pytest==8.4.1 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.