-
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.
- Instead of codes with hyphens, full names of metadata values are in the generated email for the following fields: - `Discipline` - `DataCategory` - `Species` - "Name" removed from metadata keys as follows (matching column A): - `InstitutionName` → `Institution` - `LeadPIName` → `LeadPI` - `OrganName` → `Organ` - But: `ProtocolName`, `ProtcolAbbreviatedName`, and `CollectionName` remain untouched - LabCAS's weird capitalization enforced as follows (matching column A): - `InstitutionID` → `InstitutionId` - `LeadPIID` → `LeadPIId` - `OrganID` → `OrganId` - `ProtocolID` → `ProtocolId` - But: `PubMedID` remains as is - The following fields moved from being appended to the end of the email, to being "fields" in the metadata (column A): - `Instrument` - `Method Details` - These remain as appended to the end of the email (if filled in): comments, biomarkers researched, additional site, type of data being uploaded, other discipline - The field `DataDisclaimer` is always filled in; its text can be changed on Wagtail's "Snippets" control panel - All permissible values checked (column B) - "Cancers Research Group" dropped from collaborative group names - For `DataCategory`, the `y` stays on `Antibody Microarray` 😌
- Loading branch information
1 parent
3acbc14
commit 4ed8aa3
Showing
6 changed files
with
97 additions
and
35 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
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
34 changes: 34 additions & 0 deletions
34
src/edrnsite.content/src/edrnsite/content/management/commands/edrn_data_disclaimer.py
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,34 @@ | ||
# encoding: utf-8 | ||
|
||
'''😌 EDRN Site Content: add data disclaimer snippet.''' | ||
|
||
from django.core.management.base import BaseCommand | ||
from django.db.utils import IntegrityError | ||
from edrnsite.content.models import BoilerplateSnippet | ||
|
||
|
||
_default_data_disclaimer = '''Data and information released from the National Cancer Institute (NCI) are provided on | ||
an "AS IS" basis, without warranty of any kind, including without limitation the warranties of merchantability, fitness | ||
for a particular purpose and non-infringement. Availability of this data and information does not constitute scientific | ||
publication. Data and/or information may contain errors or be incomplete. NCI and its employees make no representation | ||
or warranty, express or implied, including without limitation any warranties of merchantability or fitness for a | ||
particular purpose or warranties as to the identity or ownership of data or information, the quality, accuracy or | ||
completeness of data or information, or that the use of such data or information will not infringe any patent, | ||
intellectual property or proprietary rights of any party. NCI shall not be liable for any claim for any loss, harm, | ||
illness or other damage or injury arising from access to or use of data or information, including without limitation | ||
any direct, indirect, incidental, exemplary, special or consequential damages, even if advised of the possibility of | ||
such damages. In accordance with scientific standards, appropriate acknowledgment of NCI should be made in any | ||
publications or other disclosures concerning data or information made available by NCI.''' | ||
|
||
|
||
class Command(BaseCommand): | ||
help = 'Add the data disclaimer snippet' | ||
|
||
def handle(self, *args, **options): | ||
try: | ||
self.stdout.write('Adding data disclaimer snippet') | ||
BoilerplateSnippet.objects.get_or_create( | ||
bp_code='data-disclaimer', text=_default_data_disclaimer | ||
) | ||
except IntegrityError: | ||
pass |
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