I am building a new submodule for JobPostings (current state attached).

More Info for this schema:

https://developers.google.com/search/docs/data-types/job-posting
http://schema.org/JobPosting

At this time everything works fine except the hiringOrganization. How can I integrate all fields from schema_organzation submodule to be shown in my submodule. There is no ...Base.php I can extend.

Comments

Eric Heydrich created an issue. See original summary.

eric heydrich’s picture

Assigned: Unassigned » eric heydrich
karens’s picture

HiringOrganization can extend the SchemaPersonOrgBase. That provides some basic org info. If for some reason you want to provide more info about the organization than that will handle, use the SchemaPersonOrgBase and just fill out the @id, to identify which organization is the hiring organization, then also fill out the Organization tag as well. Give the organization the same @id in both places and then fill out all the other information in the organization record. In other words, you don't need to provide all the organization fields in this object, just use this in combination with the existing organization object.

karens’s picture

I'm not sure I'm explaining this well. See https://www.lullabot.com/articles/create-seo-juice-by-adding-json-ld-str... and scroll down to the heading "What about properties that reference other objects?". The "@id" is a way to provide a "reference" to another object that has more info. That's why "@id" has been added to all objects.

eric heydrich’s picture

Status: Active » Needs review
StatusFileSize
new30.96 KB

KarenS your solution proposed in #3 works fine. I finished the JobPosting schema. There are no errors in the structured data testing tool but some additional testing should be done.

karens’s picture

Status: Needs review » Needs work

Needs to be re-rolled now that #2900164: Add tests (D8) is in.

eric heydrich’s picture

Assigned: eric heydrich » Unassigned
eric heydrich’s picture

Hello KarenS i'm not familiar with tests so I hope somebody can do the testing part for this and I try to help as much as I can.

karens’s picture

Status: Needs work » Needs review
StatusFileSize
new35.92 KB

Status: Needs review » Needs work

The last submitted patch, 9: job-posting-2935385.patch, failed testing. View results

karens’s picture

Status: Needs work » Needs review
StatusFileSize
new30.46 KB

Status: Needs review » Needs work

The last submitted patch, 11: job-posting-2935385.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

karens’s picture

Status: Needs work » Needs review
StatusFileSize
new30.51 KB

Status: Needs review » Needs work

The last submitted patch, 13: job-posting-2935385.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

karens’s picture

Status: Needs work » Needs review
StatusFileSize
new30.51 KB

Status: Needs review » Needs work

The last submitted patch, 15: job-posting-2935385.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

karens’s picture

Status: Needs work » Needs review
StatusFileSize
new30.51 KB

Status: Needs review » Needs work

The last submitted patch, 17: job-posting-2935385.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

karens’s picture

Status: Needs work » Needs review
StatusFileSize
new30.52 KB

Status: Needs review » Needs work

The last submitted patch, 19: job-posting-2935385.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

karens’s picture

Status: Needs work » Needs review
StatusFileSize
new30.52 KB

Status: Needs review » Needs work

The last submitted patch, 21: job-posting-2935385.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

karens’s picture

Status: Needs work » Needs review
StatusFileSize
new32.04 KB

  • KarenS committed f974b60 on 8.x-1.x
    Issue #2935385 by KarenS, Eric Heydrich: Schema.org JobPosting
    
karens’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.