Merge branch '89-license' into 'master'

Create Creative License module

Closes #89

See merge request agaric/sites/agaric-com!15
This commit is contained in:
mlncn 2018-10-02 21:59:03 +00:00
commit ad66f4570a
11 changed files with 545 additions and 0 deletions

View file

@ -0,0 +1,19 @@
langcode: en
status: true
dependencies:
module:
- node
- taxonomy
id: node.field_license
field_name: field_license
entity_type: node
type: entity_reference
settings:
target_type: taxonomy_term
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View file

@ -0,0 +1,8 @@
langcode: en
status: true
dependencies: { }
name: License
vid: license
description: ''
hierarchy: 0
weight: 0

View file

@ -0,0 +1,72 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/taxonomy\/term\/22?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/taxonomy_term\/license"
}
},
"tid": [
{
"value": 22
}
],
"uuid": [
{
"value": "021d9e4a-3329-454c-8d40-62091477a5ce"
}
],
"langcode": [
{
"value": "en",
"lang": "en"
}
],
"vid": [
{
"target_id": "license"
}
],
"name": [
{
"value": "Attribution - NonCommercial - No Derivatives",
"lang": "en"
}
],
"description": [
{
"value": "<a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-nc-nd\/4.0\/88x31.png\" \/><\/a><br \/>This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/\">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License<\/a>.",
"format": "basic_html",
"processed": "<a href=\"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/\"><img alt=\"Image removed.\" src=\"\/core\/misc\/icons\/e32700\/error.svg\" title=\"This image has been removed. For security reasons, only images from the local domain are allowed.\" height=\"16\" width=\"16\" class=\"filter-image-invalid\" \/><\/a><br \/>This work is licensed under a <a href=\"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/\">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License<\/a>.",
"lang": "en"
}
],
"weight": [
{
"value": 0
}
],
"changed": [
{
"value": "2018-09-30T08:58:19+00:00",
"lang": "en",
"format": "Y-m-d\\TH:i:sP"
}
],
"default_langcode": [
{
"value": true,
"lang": "en"
}
],
"metatag": [
{
"value": {
"title": "Attribution - NonCommercial - No Derivatives | Drutopia",
"canonical_url": "http:\/\/default\/taxonomy\/term\/22",
"description": "This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License."
}
}
]
}

View file

@ -0,0 +1,72 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/taxonomy\/term\/21?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/taxonomy_term\/license"
}
},
"tid": [
{
"value": 21
}
],
"uuid": [
{
"value": "2975546c-cf24-43ad-abe6-ed1bcef9c102"
}
],
"langcode": [
{
"value": "en",
"lang": "en"
}
],
"vid": [
{
"target_id": "license"
}
],
"name": [
{
"value": "Attribution - NonCommercial - ShareAlike",
"lang": "en"
}
],
"description": [
{
"value": "<a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-nc-sa\/4.0\/88x31.png\" \/><\/a><br \/>This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License<\/a>.",
"format": "basic_html",
"processed": "<a href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><img alt=\"Image removed.\" src=\"\/core\/misc\/icons\/e32700\/error.svg\" title=\"This image has been removed. For security reasons, only images from the local domain are allowed.\" height=\"16\" width=\"16\" class=\"filter-image-invalid\" \/><\/a><br \/>This work is licensed under a <a href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License<\/a>.",
"lang": "en"
}
],
"weight": [
{
"value": 0
}
],
"changed": [
{
"value": "2018-09-30T08:57:33+00:00",
"lang": "en",
"format": "Y-m-d\\TH:i:sP"
}
],
"default_langcode": [
{
"value": true,
"lang": "en"
}
],
"metatag": [
{
"value": {
"title": "Attribution - NonCommercial - ShareAlike | Drutopia",
"canonical_url": "http:\/\/default\/taxonomy\/term\/21",
"description": "This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License."
}
}
]
}

View file

@ -0,0 +1,72 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/taxonomy\/term\/23?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/taxonomy_term\/license"
}
},
"tid": [
{
"value": 23
}
],
"uuid": [
{
"value": "5e26d946-6bec-4225-bcb9-0ac6f7671109"
}
],
"langcode": [
{
"value": "en",
"lang": "en"
}
],
"vid": [
{
"target_id": "license"
}
],
"name": [
{
"value": "Copyright",
"lang": "en"
}
],
"description": [
{
"value": "<p>\u00a9 This work is copyrighted. Contact the author if you would like to share or repurpose it.<\/p>\r\n",
"format": "basic_html",
"processed": "<p>\u00a9 This work is copyrighted. Contact the author if you would like to share or repurpose it.<\/p>",
"lang": "en"
}
],
"weight": [
{
"value": 0
}
],
"changed": [
{
"value": "2018-10-02T18:07:50+00:00",
"lang": "en",
"format": "Y-m-d\\TH:i:sP"
}
],
"default_langcode": [
{
"value": true,
"lang": "en"
}
],
"metatag": [
{
"value": {
"title": "Copyright | Drutopia",
"canonical_url": "http:\/\/default\/taxonomy\/term\/23",
"description": "\u00a9 This work is copyrighted. Contact the author if you would like to share or repurpose it."
}
}
]
}

View file

@ -0,0 +1,72 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/taxonomy\/term\/17?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/taxonomy_term\/license"
}
},
"tid": [
{
"value": 17
}
],
"uuid": [
{
"value": "61745acc-d11c-4e65-bd9e-518d223fedab"
}
],
"langcode": [
{
"value": "en",
"lang": "en"
}
],
"vid": [
{
"target_id": "license"
}
],
"name": [
{
"value": "Attribution",
"lang": "en"
}
],
"description": [
{
"value": "<a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by\/4.0\/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by\/4.0\/88x31.png\" \/><\/a><br \/>This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by\/4.0\/\">Creative Commons Attribution 4.0 International License<\/a>.\r\n",
"format": "basic_html",
"processed": "<a href=\"http:\/\/creativecommons.org\/licenses\/by\/4.0\/\"><img alt=\"Image removed.\" src=\"\/core\/misc\/icons\/e32700\/error.svg\" title=\"This image has been removed. For security reasons, only images from the local domain are allowed.\" height=\"16\" width=\"16\" class=\"filter-image-invalid\" \/><\/a><br \/>This work is licensed under a <a href=\"http:\/\/creativecommons.org\/licenses\/by\/4.0\/\">Creative Commons Attribution 4.0 International License<\/a>.",
"lang": "en"
}
],
"weight": [
{
"value": 0
}
],
"changed": [
{
"value": "2018-09-30T08:54:46+00:00",
"lang": "en",
"format": "Y-m-d\\TH:i:sP"
}
],
"default_langcode": [
{
"value": true,
"lang": "en"
}
],
"metatag": [
{
"value": {
"title": "Attribution | Drutopia",
"canonical_url": "http:\/\/default\/taxonomy\/term\/17",
"description": "This work is licensed under a Creative Commons Attribution 4.0 International License."
}
}
]
}

View file

@ -0,0 +1,72 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/taxonomy\/term\/19?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/taxonomy_term\/license"
}
},
"tid": [
{
"value": 19
}
],
"uuid": [
{
"value": "6d4d3c5b-a093-43c2-9e7e-505012ff2961"
}
],
"langcode": [
{
"value": "en",
"lang": "en"
}
],
"vid": [
{
"target_id": "license"
}
],
"name": [
{
"value": "Attribution - No Derivatives",
"lang": "en"
}
],
"description": [
{
"value": "<a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nd\/4.0\/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-nd\/4.0\/88x31.png\" \/><\/a><br \/>This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nd\/4.0\/\">Creative Commons Attribution-NoDerivatives 4.0 International License<\/a>.",
"format": "basic_html",
"processed": "<a href=\"http:\/\/creativecommons.org\/licenses\/by-nd\/4.0\/\"><img alt=\"Image removed.\" src=\"\/core\/misc\/icons\/e32700\/error.svg\" title=\"This image has been removed. For security reasons, only images from the local domain are allowed.\" height=\"16\" width=\"16\" class=\"filter-image-invalid\" \/><\/a><br \/>This work is licensed under a <a href=\"http:\/\/creativecommons.org\/licenses\/by-nd\/4.0\/\">Creative Commons Attribution-NoDerivatives 4.0 International License<\/a>.",
"lang": "en"
}
],
"weight": [
{
"value": 0
}
],
"changed": [
{
"value": "2018-09-30T08:56:18+00:00",
"lang": "en",
"format": "Y-m-d\\TH:i:sP"
}
],
"default_langcode": [
{
"value": true,
"lang": "en"
}
],
"metatag": [
{
"value": {
"title": "Attribution - No Derivatives | Drutopia",
"canonical_url": "http:\/\/default\/taxonomy\/term\/19",
"description": "This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License."
}
}
]
}

View file

@ -0,0 +1,72 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/taxonomy\/term\/18?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/taxonomy_term\/license"
}
},
"tid": [
{
"value": 18
}
],
"uuid": [
{
"value": "bc49ae93-6d24-499d-b7f9-0d08b7586f10"
}
],
"langcode": [
{
"value": "en",
"lang": "en"
}
],
"vid": [
{
"target_id": "license"
}
],
"name": [
{
"value": "Attribution-ShareAlike",
"lang": "en"
}
],
"description": [
{
"value": "<a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-sa\/4.0\/88x31.png\" \/><\/a><br \/>This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\">Creative Commons Attribution-ShareAlike 4.0 International License<\/a>.",
"format": "basic_html",
"processed": "<a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><img alt=\"Image removed.\" src=\"\/core\/misc\/icons\/e32700\/error.svg\" title=\"This image has been removed. For security reasons, only images from the local domain are allowed.\" height=\"16\" width=\"16\" class=\"filter-image-invalid\" \/><\/a><br \/>This work is licensed under a <a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\">Creative Commons Attribution-ShareAlike 4.0 International License<\/a>.",
"lang": "en"
}
],
"weight": [
{
"value": 0
}
],
"changed": [
{
"value": "2018-09-30T08:55:26+00:00",
"lang": "en",
"format": "Y-m-d\\TH:i:sP"
}
],
"default_langcode": [
{
"value": true,
"lang": "en"
}
],
"metatag": [
{
"value": {
"title": "Attribution-ShareAlike | Drutopia",
"canonical_url": "http:\/\/default\/taxonomy\/term\/18",
"description": "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License."
}
}
]
}

View file

@ -0,0 +1,72 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/taxonomy\/term\/20?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/taxonomy_term\/license"
}
},
"tid": [
{
"value": 20
}
],
"uuid": [
{
"value": "f1dee100-31b9-4993-a2a9-0ba10c9f6f2e"
}
],
"langcode": [
{
"value": "en",
"lang": "en"
}
],
"vid": [
{
"target_id": "license"
}
],
"name": [
{
"value": "Attribution - NonCommercial",
"lang": "en"
}
],
"description": [
{
"value": "<a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-nc\/4.0\/88x31.png\" \/><\/a><br \/>This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/\">Creative Commons Attribution-NonCommercial 4.0 International License<\/a>.",
"format": "basic_html",
"processed": "<a href=\"http:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/\"><img alt=\"Image removed.\" src=\"\/core\/misc\/icons\/e32700\/error.svg\" title=\"This image has been removed. For security reasons, only images from the local domain are allowed.\" height=\"16\" width=\"16\" class=\"filter-image-invalid\" \/><\/a><br \/>This work is licensed under a <a href=\"http:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/\">Creative Commons Attribution-NonCommercial 4.0 International License<\/a>.",
"lang": "en"
}
],
"weight": [
{
"value": 0
}
],
"changed": [
{
"value": "2018-09-30T08:56:53+00:00",
"lang": "en",
"format": "Y-m-d\\TH:i:sP"
}
],
"default_langcode": [
{
"value": true,
"lang": "en"
}
],
"metatag": [
{
"value": {
"title": "Attribution - NonCommercial | Drutopia",
"canonical_url": "http:\/\/default\/taxonomy\/term\/20",
"description": "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License."
}
}
]
}

View file

@ -0,0 +1,2 @@
bundle: drutopia
required: true

View file

@ -0,0 +1,12 @@
name: 'Creative License'
type: module
core: 8.x
package: Drutopia
dependencies:
- config_actions
- drutopia_core
- field
- field_group
- node
- taxonomy
version: 8.x-1.0-alpha1