biocodellc / localcontexts_db

Local contexts back-end
Other
6 stars 2 forks source link

API: field and model changes to the Notice and Institution Notice models #576

Closed birbjam closed 2 years ago

birbjam commented 2 years ago

The output for a Project that has all three notices will be the following:

    "notice": [
        {
            "notice_type": "traditional_knowledge",
            "name": "TK (Traditional Knowledge) Notice",
            "img_url": "https://storage.googleapis.com/anth-ja77-local-contexts-8985.appspot.com/labels/notices/tk-notice.png",
            "svg_url": "https://storage.googleapis.com/anth-ja77-local-contexts-8985.appspot.com/labels/notices/tk-notice.svg",
            "default_text": "The TK (Traditional Knowledge) Notice is a visible notification that there are accompanying cultural rights and responsibilities that need further attention for any future sharing and use of this material. The TK Notice may indicate that TK Labels are in development and their implementation is being negotiated.",
            "created": "2021-10-15T21:59:09.563499Z",
            "updated": "2021-10-15T21:59:09.566868Z"
        },
        {
            "notice_type": "biocultural",
            "name": "BC (Biocultural) Notice",
            "img_url": "https://storage.googleapis.com/anth-ja77-local-contexts-8985.appspot.com/labels/notices/bc-notice.png",
            "svg_url": "https://storage.googleapis.com/anth-ja77-local-contexts-8985.appspot.com/labels/notices/bc-notice.svg",
            "default_text": "The BC (Biocultural) Notice is a visible notification that there are accompanying cultural rights and responsibilities that need further attention for any future sharing and use of this material or data. The BC Notice recognizes the rights of Indigenous peoples to permission the use of information, collections, data and digital sequence information (DSI) generated from the biodiversity or genetic resources associated with traditional lands, waters, and territories. The BC Notice may indicate that BC Labels are in development and their implementation is being negotiated.",
            "created": "2021-12-08T22:41:59.571083Z",
            "updated": "2021-12-08T22:41:59.576622Z"
        },
        {
            "notice_type": "attribution_incomplete",
            "name": "Attribution Incomplete Notice",
            "img_url": "https://storage.googleapis.com/anth-ja77-local-contexts-8985.appspot.com/labels/notices/ci-notice-attribution-incomplete.png",
            "svg_url": "https://storage.googleapis.com/anth-ja77-local-contexts-8985.appspot.com/labels/notices/ci-notice-attribution-incomplete.svg",
            "default_text": "Collections and items in our institution have incomplete, inaccurate, and/or missing attribution. We are using this notice to clearly identify this material so that it can be updated, or corrected by communities of origin. Our institution is committed to collaboration and partnerships to address this problem of incorrect or missing attribution.",
            "created": "2021-12-08T22:41:59.582505Z",
            "updated": "2021-12-08T22:41:59.587288Z"
        }

    ]
birbjam commented 2 years ago

Done, will need some testing