Problem/Motivation
I work at a university and we need to use the 'CollegeOrUniversity' Schema.org Metatag. However, the current 'schema_organization' tag does not include a 'parentOrganization' property, which is required for the 'CollegeOrUniversity' schema type.
Proposed resolution
Add a 'parentOrganization' property to 'schema_organization'
This is our desired output for our specific use case of Schema Organizations:
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "CollegeOrUniversity",
"name": "University of Arizona {{Department/College}}",
"url": "{{Department/College url}}",
"description": "{{Description of department/college}}",
"logo": "{{Department/College logo}}",
"image": "{{Image to represent department/college}}",
"sameAs": "{{comma separated social media URLs}}",
"address": {
"@type": "PostalAddress",
"streetAddress": "{{Street Address}}",
"addressLocality": "{{City}}",
"addressRegion": "{{2 letter state abbreviation}}",
"postalCode": "{{5 digits}}",
"addressCountry": "{{Country abbreviation}}"
},
"telephone": "{{+1-555-555-5555}}",
"email": "{{Department/College email address}}",
"parentOrganization": {
"@type": "EducationalOrganization",
"name": "University of Arizona",
"url": "https://www.arizona.edu/",
"address": {
"@type": "PostalAddress",
"streetAddress": "1401 E University Blvd",
"addressLocality": "Tucson",
"addressRegion": "AZ",
"postalCode": "85721",
"addressCountry": "US"
}
}
}
</script>
Comments
Comment #2
mrbeiley commentedComment #3
trackleft2Comment #10
joegraduateMR looks promising. This needs an issue summary update that reflects the suggestion/decision to change this to be a proposal for adding the parentOrganization property to schema_organization instead of adding a separate specific tag for CollegeOrUniversity.
Comment #11
mrbeiley commentedComment #12
joegraduateComment #13
joegraduateComment #15
joegraduateComment #16
trackleft2This works for me, I wonder if we need a follow-up issue to add the email field. Otherwise all required fields are accounted for in this MR.
"email": "{{Department/College email address}}",Comment #17
joegraduateComment #18
mrbeiley commentedCreate a static file for adding the Schema Metatag module into composer.json.
Comment #19
mrbeiley commentedComment #20
mrbeiley commentedCreate a static .diff file for adding the Schema Metatag module into composer.json.
Comment #21
trackleft2Comment #22
damienmckennaThis looks great, thank you.
We'll add it to the 3.1.0 release, where the new features will go.
Comment #24
anybodyComment #25
anybody