diff --git a/modules/custom/az_demo/az_demo.info.yml b/modules/custom/az_demo/az_demo.info.yml index 7a29d7477d..9d1a782977 100644 --- a/modules/custom/az_demo/az_demo.info.yml +++ b/modules/custom/az_demo/az_demo.info.yml @@ -16,6 +16,7 @@ dependencies: - az_paragraphs_text_media - az_paragraphs_splitscreen - az_person + - az_publication - az_media - az_finder - migrate:migrate diff --git a/modules/custom/az_demo/config/optional/block.block.az_barrio_views_block__az_publications_az_author_person.yml b/modules/custom/az_demo/config/optional/block.block.az_barrio_views_block__az_publications_az_author_person.yml new file mode 100644 index 0000000000..2d0ae0ede2 --- /dev/null +++ b/modules/custom/az_demo/config/optional/block.block.az_barrio_views_block__az_publications_az_author_person.yml @@ -0,0 +1,28 @@ +langcode: en +status: true +dependencies: + config: + - views.view.az_publications + module: + - views + theme: + - az_barrio +id: az_barrio_views_block__az_publications_az_author_person +theme: az_barrio +region: content +weight: 10 +provider: null +plugin: 'views_block:az_publications-az_author_person' +settings: + id: 'views_block:az_publications-az_author_person' + label: '' + label_display: visible + provider: views + context_mapping: { } + views_label: '' + items_per_page: none +visibility: + request_path: + id: request_path + negate: false + pages: /person/* diff --git a/modules/custom/az_demo/data/az_demo_az_author_author.json b/modules/custom/az_demo/data/az_demo_az_author_author.json new file mode 100644 index 0000000000..96ab48b0e3 --- /dev/null +++ b/modules/custom/az_demo/data/az_demo_az_author_author.json @@ -0,0 +1,169 @@ +{ + "authors": [ + { + "id":1, + "drop_particle": "", + "fname": "Wilbur", + "link": "", + "literal": "", + "lname": "Wildcat", + "nondrop_particle": "", + "suffix": "", + "person": "Wilbur Wildcat" + }, + { + "id":2, + "drop_particle": "", + "fname": "Wilma", + "link": "", + "literal": "", + "lname": "Wildcat", + "nondrop_particle": "", + "suffix": "Ph.D.", + "person": "Wilma Wildcat" + }, + { + "id":3, + "drop_particle": "", + "fname": "Anders", + "link": "http://www.example.edu", + "literal": "", + "lname": "And", + "nondrop_particle": "", + "suffix": "M.A.", + "person": "Anders And" + }, + { + "id":4, + "drop_particle": "", + "fname": "Donald", + "link": "", + "literal": "", + "lname": "Giovanni", + "nondrop_particle": "", + "suffix": "Ph.D.", + "person": "Donald Giovanni" + }, + { + "id":5, + "drop_particle": "", + "fname": "Urania", + "link": "", + "literal": "", + "lname": "Muse", + "nondrop_particle": "", + "suffix": "Ph.D.", + "person": "Urania Muse" + }, + { + "id":6, + "drop_particle": "", + "fname": "Barbara", + "link": "", + "literal": "", + "lname": "Strozzi", + "nondrop_particle": "", + "suffix": "M.M.", + "person": "Barbara Strozzi" + }, + { + "id":7, + "drop_particle": "de", + "fname": "Antonio", + "link": "", + "literal": "", + "lname": "Espinosa", + "nondrop_particle": "", + "suffix": "M.S.", + "person": "Antonio de Espinosa" + }, + { + "id":8, + "drop_particle": "", + "fname": "Janet", + "link": "", + "literal": "", + "lname": "Horne", + "nondrop_particle": "", + "suffix": "III", + "person": "Janet Horne" + }, + { + "id":9, + "drop_particle": "", + "fname": "", + "link": "", + "literal": "Sir Thomas Urquhart", + "lname": "", + "nondrop_particle": "", + "suffix": "Ph.D.", + "person": "Thomas Urquhart" + }, + { + "id":10, + "drop_particle": "", + "fname": "Alcofribas", + "link": "", + "literal": "", + "lname": "Nasier", + "nondrop_particle": "", + "suffix": "Ph.D.", + "person": "Alcofribas Nasier" + }, + { + "id":11, + "drop_particle": "", + "fname": "José", + "link": "", + "literal": "", + "lname": "An'ersen", + "nondrop_particle": "", + "suffix": "M.A., Ph.D.", + "person": "José An'ersen" + }, + { + "id":12, + "drop_particle": "", + "fname": "Grimme", + "link": "", + "literal": "", + "lname": "Ælling", + "nondrop_particle": "", + "suffix": "Jr", + "person": "Grimme Ælling" + }, + { + "id":13, + "drop_particle": "", + "fname": "Hans", + "link": "", + "literal": "", + "lname": "Christian Andersen", + "nondrop_particle": "", + "suffix": "", + "person": "" + }, + { + "id":14, + "drop_particle": "van", + "fname": "Ludwig", + "link": "", + "literal": "", + "lname": "Beethoven", + "nondrop_particle": "", + "suffix": "", + "person": "" + }, + { + "id":15, + "drop_particle": "", + "fname": "Vincent", + "link": "", + "literal": "", + "lname": "Gogh", + "nondrop_particle": "van", + "suffix": "", + "person": "" + } + ] +} diff --git a/modules/custom/az_demo/data/az_demo_menu_links.json b/modules/custom/az_demo/data/az_demo_menu_links.json index 4d78ba6019..5195290203 100644 --- a/modules/custom/az_demo/data/az_demo_menu_links.json +++ b/modules/custom/az_demo/data/az_demo_menu_links.json @@ -439,6 +439,17 @@ "expanded": false, "enabled": true, "weight": "22" + }, + { + "link_id": "41", + "parent_link_id": "0", + "menu": "main", + "title": "Publications", + "urlpath": "/publications", + "external": false, + "expanded": true, + "enabled": true, + "weight": "1" } ] } diff --git a/modules/custom/az_demo/data/az_demo_node_publication.json b/modules/custom/az_demo/data/az_demo_node_publication.json new file mode 100644 index 0000000000..2ece4e1792 --- /dev/null +++ b/modules/custom/az_demo/data/az_demo_node_publication.json @@ -0,0 +1,284 @@ +{ + "publications": [ + { + "id": 1, + "title": "The Most Fearsome Life of the Great Gargantua, Father of Pantagruel.", + "authors": "10", + "accessed_date": "2023-07-20", + "abstract": "A detailed account of the life and adventures of Gargantua.", + "approximate": "false", + "category": "Biography", + "container": "Book", + "date": "2022-06-01", + "date_type": "default", + "doi": "10.1000/182", + "extra_links": "https://example.com/gargantua", + "image": "", + "isbn": "978-3-16-148410-0", + "issn": "", + "issue": "", + "link": "https://example.com/gargantua-book", + "location": "France", + "media": "Print", + "page": "350", + "pmcid": "", + "pmid": "", + "publisher": "Historical Books Publishing", + "type": "book", + "version": "1st Edition", + "volume": "" + }, + { + "id": 2, + "title": "The trissotetras: or, a most exquisite table for resolving all manner of triangles...", + "authors": "9", + "accessed_date": "2023-07-21", + "abstract": "An intricate guide on solving various types of triangles.", + "approximate": "true", + "category": "Mathematics", + "container": "book", + "date": "2023-01-15", + "date_type": "default", + "doi": "10.1000/2000", + "extra_links": "https://example.com/trissotetras", + "image": "", + "isbn": "978-3-16-148411-7", + "issn": "", + "issue": "", + "link": "https://example.com/trissotetras-book", + "location": "Scotland", + "media": "Print", + "page": "400", + "pmcid": "", + "pmid": "", + "publisher": "Mathematical Works Publishing", + "type": "article", + "version": "2nd Edition", + "volume": "" + }, + { + "id": 3, + "title": "An Exploration of Quantum Mechanics", + "authors": "1|2", + "accessed_date": "2023-07-22", + "abstract": "A comprehensive study on the principles of quantum mechanics.", + "approximate": "false", + "category": "Physics", + "container": "Journal", + "date": "2021-11-10", + "date_type": "month", + "doi": "10.1000/184", + "extra_links": "https://example.com/quantum-mechanics", + "image": "", + "isbn": "", + "issn": "1234-5678", + "issue": "5", + "link": "https://example.com/quantum-mechanics-journal", + "location": "USA", + "media": "Online", + "page": "120-150", + "pmcid": "PMC1234567", + "pmid": "987654321", + "publisher": "Science Journal Publishing", + "type": "article-journal", + "version": "Final", + "volume": "12" + }, + { + "id": 4, + "title": "Advanced Data Structures", + "authors": "3", + "accessed_date": "2023-07-23", + "abstract": "An in-depth guide to modern data structures.", + "approximate": "true", + "category": "Computer Science", + "container": "book", + "date": "2020-09-05", + "date_type": "month", + "doi": "10.1000/2000", + "extra_links": "https://example.com/data-structures", + "image": "", + "isbn": "978-3-16-148412-4", + "issn": "", + "issue": "", + "link": "https://example.com/data-structures-book", + "location": "Germany", + "media": "Print", + "page": "500", + "pmcid": "", + "pmid": "", + "publisher": "Tech books Publishing", + "type": "book", + "version": "3rd Edition", + "volume": "" + }, + { + "id": 5, + "title": "Modern Approaches to Machine Learning", + "authors": "4|5", + "accessed_date": "2023-07-24", + "abstract": "Current methodologies in the field of machine learning.", + "approximate": "false", + "category": "Artificial Intelligence", + "container": "Conference Paper", + "date": "2019-03-18", + "date_type": "default", + "doi": "10.1000/186", + "extra_links": "https://example.com/machine-learning", + "image": "", + "isbn": "", + "issn": "", + "issue": "", + "link": "https://example.com/machine-learning-paper", + "location": "Canada", + "media": "Print", + "page": "50-75", + "pmcid": "", + "pmid": "", + "publisher": "AI Conference Publishing", + "type": "Conference Paper", + "version": "1st Edition", + "volume": "" + }, + { + "id": 6, + "title": "Introduction to Algorithms", + "authors": "6|7|8", + "accessed_date": "2023-07-25", + "abstract": "A comprehensive guide to algorithms and their applications.", + "approximate": "false", + "category": "Computer Science", + "container": "book", + "date": "2018-07-01", + "date_type": "default", + "doi": "10.1000/187", + "extra_links": "https://example.com/algorithms", + "image": "", + "isbn": "978-3-16-148413-1", + "issn": "", + "issue": "", + "link": "https://example.com/algorithms-book", + "location": "USA", + "media": "Print", + "page": "900", + "pmcid": "", + "pmid": "", + "publisher": "Tech books Publishing", + "type": "book", + "version": "4th Edition", + "volume": "" + }, + { + "id": 7, + "title": "Deep Learning", + "authors": "9|10", + "accessed_date": "2023-07-26", + "abstract": "An in-depth exploration of deep learning techniques.", + "approximate": "false", + "category": "Artificial Intelligence", + "container": "book", + "date": "2017-05-15", + "date_type": "default", + "doi": "10.1000/188", + "extra_links": "https://example.com/deep-learning", + "image": "", + "isbn": "978-3-16-148414-8", + "issn": "", + "issue": "", + "link": "https://example.com/deep-learning-book", + "location": "Canada", + "media": "Print", + "page": "600", + "pmcid": "", + "pmid": "", + "publisher": "AI Books Publishing", + "type": "book", + "version": "1st Edition", + "volume": "" + }, + { + "id": 8, + "title": "Statistical Learning with Applications", + "authors": "11|12", + "accessed_date": "2023-07-27", + "abstract": "An application-focused approach to statistical learning.", + "approximate": "true", + "category": "Statistics", + "container": "Journal", + "date": "2016-11-25", + "date_type": "month", + "doi": "10.1000/189", + "extra_links": "https://example.com/statistical-learning", + "image": "", + "isbn": "", + "issn": "5678-1234", + "issue": "3", + "link": "https://example.com/statistical-learning-journal", + "location": "UK", + "media": "Print", + "page": "100-130", + "pmcid": "PMC7654321", + "pmid": "123456789", + "publisher": "Statistical Journal Publishing", + "type": "article-journal", + "version": "Final", + "volume": "15" + }, + { + "id": 9, + "title": "Ethics in Artificial Intelligence", + "authors": "13|14", + "accessed_date": "2023-07-28", + "abstract": "A critical look at the ethical implications of AI.", + "approximate": "false", + "category": "Ethics", + "container": "book", + "date": "2015-02-14", + "date_type": "default", + "doi": "10.1000/190", + "extra_links": "https://example.com/ai-ethics", + "image": "", + "isbn": "978-3-16-148415-5", + "issn": "", + "issue": "", + "link": "https://example.com/ai-ethics-book", + "location": "Australia", + "media": "Print", + "page": "450", + "pmcid": "", + "pmid": "", + "publisher": "Ethics Books Publishing", + "type": "book", + "version": "2nd Edition", + "volume": "" + }, + { + "id": 10, + "title": "Climate Change: Impacts and Solutions", + "authors": "15", + "accessed_date": "2023-07-29", + "abstract": "An overview of climate change impacts and potential solutions.", + "approximate": "true", + "category": "Environmental Science", + "container": "Journal", + "date": "2014-09-30", + "date_type": "season", + "doi": "10.1000/191", + "extra_links": "https://example.com/climate-change", + "image": "", + "isbn": "", + "issn": "9101-1121", + "issue": "4", + "link": "https://example.com/climate-change-journal", + "location": "Global", + "media": "Online", + "page": "200-230", + "pmcid": "PMC2345678", + "pmid": "234567890", + "publisher": "Environmental Journal Publishing", + "type": "article-journal", + "version": "Final", + "volume": "20" + } + ] +} diff --git a/modules/custom/az_demo/data/az_demo_page_node.json b/modules/custom/az_demo/data/az_demo_page_node.json index 14f70d240d..ca565ae40b 100644 --- a/modules/custom/az_demo/data/az_demo_page_node.json +++ b/modules/custom/az_demo/data/az_demo_page_node.json @@ -270,6 +270,16 @@ "az_main_content" : "108", "az_media_image" : "", "az_summary" : "A page with views better exposed filters block." + }, + { + "id":28, + "title" : "Publications", + "path" : "/publications", + "exclude_title" : false, + "az_page_category" : "Publications", + "az_main_content" : "190", + "az_media_image" : "", + "az_summary" : "A page with publications." } ] } diff --git a/modules/custom/az_demo/data/az_demo_person_node.json b/modules/custom/az_demo/data/az_demo_person_node.json index a59b04067e..053993532d 100644 --- a/modules/custom/az_demo/data/az_demo_person_node.json +++ b/modules/custom/az_demo/data/az_demo_person_node.json @@ -18,7 +18,8 @@ ], "az_photo" : "placeduck10.jpg", "az_person_category" : "Director", - "az_person_categories" : "Communications" + "az_person_categories" : "Communications", + "netid" : "" }, { "id":2, @@ -38,7 +39,8 @@ ], "az_photo" : "placeduck01.jpg", "az_person_category" : "Departmental Faculty", - "az_person_categories" : "Psychology|World Literature" + "az_person_categories" : "Psychology|World Literature", + "netid" : "" }, { "id":3, @@ -58,7 +60,8 @@ ], "az_photo" : "placeduck04.jpg", "az_person_category" : "Joint Faculty", - "az_person_categories" : "Philosophy" + "az_person_categories" : "Philosophy", + "netid" : "" }, { "id":4, @@ -78,7 +81,8 @@ ], "az_photo" : "placeduck11.jpg", "az_person_category" : "Departmental Faculty", - "az_person_categories" : "History" + "az_person_categories" : "History", + "netid" : "" }, { "id":5, @@ -102,7 +106,8 @@ ], "az_photo" : "placeduck05.jpg", "az_person_category" : "Joint Faculty", - "az_person_categories" : "World Literature" + "az_person_categories" : "World Literature", + "netid" : "" }, { "id":6, @@ -122,7 +127,8 @@ ], "az_photo" : "placeduck07.jpg", "az_person_category" : "Research Associates", - "az_person_categories" : "Mathematics" + "az_person_categories" : "Mathematics", + "netid" : "" }, { "id":7, @@ -142,7 +148,8 @@ ], "az_photo" : "placeduck06.jpg", "az_person_category" : "Departmental Faculty", - "az_person_categories" : "Nutrition and Food Systems" + "az_person_categories" : "Nutrition and Food Systems", + "netid" : "" }, { "id":8, @@ -162,7 +169,8 @@ ], "az_photo" : "placeduck08.jpg", "az_person_category" : "Research Associates", - "az_person_categories" : "World Literature" + "az_person_categories" : "World Literature", + "netid" : "" }, { "id":9, @@ -182,7 +190,8 @@ ], "az_photo" : "placeduck02.jpg", "az_person_category" : "Departmental Faculty", - "az_person_categories" : "Music" + "az_person_categories" : "Music", + "netid" : "" }, { "id":10, @@ -202,7 +211,8 @@ ], "az_photo" : "placeduck03.jpg", "az_person_category" : "Director", - "az_person_categories" : "Astronomy" + "az_person_categories" : "Astronomy", + "netid" : "" }, { "id":11, @@ -222,7 +232,8 @@ ], "az_photo" : "placeduck09.jpg", "az_person_category" : "Joint Faculty", - "az_person_categories" : "Education" + "az_person_categories" : "Education", + "netid" : "" }, { "id":12, @@ -242,7 +253,8 @@ ], "az_photo" : "wilbur-wildcat.jpg", "az_person_category" : "Undergraduates", - "az_person_categories" : "Government and Public Service" + "az_person_categories" : "Government and Public Service", + "netid" : "wilburwildcat" }, { "id":13, @@ -262,7 +274,8 @@ ], "az_photo" : "wilma-wildcat.jpg", "az_person_category" : "Undergraduates", - "az_person_categories" : "Government and Public Service" + "az_person_categories" : "Government and Public Service", + "netid" : "wilmawildcat" } ] } diff --git a/modules/custom/az_demo/data/az_demo_taxonomy_term_publication_categories.json b/modules/custom/az_demo/data/az_demo_taxonomy_term_publication_categories.json new file mode 100644 index 0000000000..00c20252fa --- /dev/null +++ b/modules/custom/az_demo/data/az_demo_taxonomy_term_publication_categories.json @@ -0,0 +1,79 @@ +{ + "publication_categories": [ + { + "name": "Artificial Intelligence", + "description": "", + "parent_name": "" + }, + { + "name": "Biography", + "description": "", + "parent_name": "" + }, + { + "name": "Chemistry", + "description": "", + "parent_name": "" + }, + { + "name": "Computer Science", + "description": "", + "parent_name": "" + }, + { + "name": "Ethics", + "description": "", + "parent_name": "" + }, + { + "name": "Environmental Science", + "description": "", + "parent_name": "" + }, + { + "name": "Government and Public Service", + "description": "", + "parent_name": "" + }, + { + "name": "History", + "description": "", + "parent_name": "" + }, + { + "name": "Mathematics", + "description": "", + "parent_name": "" + }, + { + "name": "Music", + "description": "", + "parent_name": "" + }, + { + "name": "Nutrition and Food Systems", + "description": "", + "parent_name": "" + }, + { + "name": "Philosophy", + "description": "", + "parent_name": "" + }, + { + "name": "Physics", + "description": "", + "parent_name": "" + }, + { + "name": "Statistics", + "description": "", + "parent_name": "" + }, + { + "name": "World Literature", + "description": "", + "parent_name": "" + } + ] +} diff --git a/modules/custom/az_demo/data/az_demo_view_paragraph.json b/modules/custom/az_demo/data/az_demo_view_paragraph.json index e0c2637c1f..383730d383 100644 --- a/modules/custom/az_demo/data/az_demo_view_paragraph.json +++ b/modules/custom/az_demo/data/az_demo_view_paragraph.json @@ -71,6 +71,14 @@ "display_id" : "content", "data" : "", "bottom_spacing" : "mb-4" + }, + { + "id" : 190, + "title" : "", + "target_id" : "az_publications", + "display_id" : "az_search", + "data" : "", + "bottom_spacing" : "mb-0" } ] } diff --git a/modules/custom/az_demo/migrations/az_demo_az_author_author.yml b/modules/custom/az_demo/migrations/az_demo_az_author_author.yml new file mode 100644 index 0000000000..1d4d308a27 --- /dev/null +++ b/modules/custom/az_demo/migrations/az_demo_az_author_author.yml @@ -0,0 +1,68 @@ +id: az_demo_az_author_author +label: AZ Quickstart Demo Authors +migration_tags: + - Quickstart Demo Content + - Content + - Publications + - Authors +dependencies: + enforced: + module: + - az_demo +migration_dependencies: + optional: + - az_demo_person_node +source: + plugin: url + data_fetcher_plugin: file + data_parser_plugin: json + urls: + - profiles/custom/az_quickstart/modules/custom/az_demo/data/az_demo_az_author_author.json + item_selector: authors + ids: + id: + type: integer + fields: + - name: id + selector: id + - name: "drop_particle" + selector: drop_particle + - name: "fname" + selector: fname + - name: "link" + selector: link + - name: "literal" + selector: literal + - name: "lname" + selector: lname + - name: "nondrop_particle" + selector: nondrop_particle + - name: "parse" + selector: parse + - name: "person" + selector: person + - name: "suffix" + selector: suffix +process: + type: + plugin: default_value + default_value: az_author + field_az_author_drop_particle: drop_particle + field_az_author_fname: fname + field_az_author_link: link + field_az_author_literal: literal + field_az_author_lname: lname + field_az_author_nondrop_particle: nondrop_particle + field_az_author_parse: parse + field_az_author_person: + - plugin: entity_lookup + source: person + value_key: title + entity_type: node + bundle: az_person + ignore_case: true + bundle_key: type + field_az_author_suffix: suffix +destination: + plugin: entity:az_author + bundle: az_author diff --git a/modules/custom/az_demo/migrations/az_demo_node_publication.yml b/modules/custom/az_demo/migrations/az_demo_node_publication.yml new file mode 100644 index 0000000000..1711dbaa56 --- /dev/null +++ b/modules/custom/az_demo/migrations/az_demo_node_publication.yml @@ -0,0 +1,124 @@ +id: az_demo_node_publication +label: AZ Quickstart Demo Publication Content +migration_tags: + - Quickstart Demo Content + - Content + - Publications +migration_dependencies: + required: + - az_demo_az_author_author + - az_demo_taxonomy_term_publication_categories +dependencies: + enforced: + module: + - az_demo +source: + plugin: url + data_fetcher_plugin: file + data_parser_plugin: json + urls: + - profiles/custom/az_quickstart/modules/custom/az_demo/data/az_demo_node_publication.json + item_selector: publications + ids: + id: + type: integer + fields: + - name: id + selector: id + - name: title + selector: title + - name: authors + selector: authors + - name: accessed_date + selector: accessed_date + - name: abstract + selector: abstract + - name: approximate + selector: approximate + - name: category + selector: category + - name: container + selector: container + - name: date + selector: date + - name: date_type + selector: date_type + - name: doi + selector: doi + - name: extra_links + selector: extra_links + - name: image + selector: image + - name: isbn + selector: isbn + - name: issn + selector: issn + - name: issue + selector: issue + - name: link + selector: link + - name: location + selector: location + - name: media + selector: media + - name: page + selector: page + - name: pmcid + selector: pmcid + - name: pmid + selector: pmid + - name: publisher + selector: publisher + - name: type + selector: type + - name: version + selector: version + - name: volume + selector: volume +process: + type: + plugin: default_value + default_value: az_publication + title: title + field_az_authors: + - plugin: skip_on_empty + method: process + source: authors + - plugin: explode + delimiter: '|' + - plugin: migration_lookup + migration: az_demo_az_author_author + field_az_accessed_date: accessed_date + field_az_publication_abstract: abstract + field_az_publication_approximate: approximate + field_az_publication_category: + - plugin: explode + source: category + delimiter: '|' + - plugin: skip_on_empty + method: process + - plugin: migration_lookup + migration: az_demo_taxonomy_term_publication_categories + ignore_case: true + field_az_publication_container: container + field_az_publication_date: date + field_az_publication_date_type: date_type + field_az_publication_doi: doi + field_az_publication_extra_links: extra_links + field_az_publication_image: image + field_az_publication_isbn: isbn + field_az_publication_issn: issn + field_az_publication_issue: issue + field_az_publication_link: link + field_az_publication_location: location + field_az_publication_media: media + field_az_publication_page: page + field_az_publication_pmcid: pmcid + field_az_publication_pmid: pmid + field_az_publication_publisher: publisher + field_az_publication_type: type + field_az_publication_version: version + field_az_publication_volume: volume +destination: + plugin: entity:node + bundle: az_publication diff --git a/modules/custom/az_demo/migrations/az_demo_person_node.yml b/modules/custom/az_demo/migrations/az_demo_person_node.yml index 797d9f4e89..6ca51a01ce 100644 --- a/modules/custom/az_demo/migrations/az_demo_person_node.yml +++ b/modules/custom/az_demo/migrations/az_demo_person_node.yml @@ -54,6 +54,9 @@ source: - name: filename selector: az_photo + - + name: netid + selector: netid process: type: @@ -127,6 +130,8 @@ process: migration: - az_demo_image_file + field_az_netid: netid + destination: plugin: entity:node bundle: az_person diff --git a/modules/custom/az_demo/migrations/az_demo_taxonomy_term_publication_categories.yml b/modules/custom/az_demo/migrations/az_demo_taxonomy_term_publication_categories.yml new file mode 100644 index 0000000000..435a95f10b --- /dev/null +++ b/modules/custom/az_demo/migrations/az_demo_taxonomy_term_publication_categories.yml @@ -0,0 +1,42 @@ +id: az_demo_taxonomy_term_publication_categories +label: AZ Quickstart Demo Publication Categories +migration_tags: + - Quickstart Demo Content + - Taxonomy + - Publications +dependencies: + enforced: + module: + - az_demo +source: + plugin: url + data_fetcher_plugin: file + data_parser_plugin: json + urls: + - profiles/custom/az_quickstart/modules/custom/az_demo/data/az_demo_taxonomy_term_publication_categories.json + item_selector: publication_categories + ids: + name: + type: string + fields: + - name: name + selector: name + - name: description + selector: description + - name: parent + selector: parent_name +destination: + plugin: entity:taxonomy_term + default_bundle: az_publication_categories +process: + name: name + description: description + vid: + plugin: default_value + default_value: az_publication_categories + parent: + - plugin: migration_lookup + migration: az_demo_taxonomy_term_publication_categories + source: parent + - plugin: default_value + default_value: 0