Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json ld finetune 1 #558

Merged
merged 2 commits into from
Aug 2, 2023
Merged

Json ld finetune 1 #558

merged 2 commits into from
Aug 2, 2023

Conversation

tomschr
Copy link
Collaborator

@tomschr tomschr commented Aug 2, 2023

This PR contains the following changes:

  • Correct metadata

    • Rename "abstract" -> "description" and refactor code
    • Introduce "sameAs" property
    • Disable json-ld-version and json-ld-keywords
    • Use "Corporation" instead of "Organization" for default author and publisher
  • JSON-LD: Rewrite author + authorgroup code

    • Simplify code and create a two set approach
    • If no (author/editor/corpauthor/contributor)s or authorgroup is
      found, fallback to a default corporation author
    • Add new parameters:
      • json-ld-fallback-author-name: The author's name
      • json-ld-fallback-author-url: the author's URL
      • json-ld-fallback-author-type: "Corporation" by default
        (but can also be a "Person")
      • json-ld-fallback-author-logo: the URL pointing to the logo

@tomschr tomschr force-pushed the json-ld-finetune-1 branch 2 times, most recently from 6201e75 to dce9222 Compare August 2, 2023 08:48
* JSON-LD: Rewrite author + authorgroup code
  * Simplify code and create a two set approach
  * If no (author/editor/corpauthor/contributor)s or authorgroup is
    found, fallback to a default corporation author
  * Add new parameters:
    - json-ld-fallback-author-name: The author's name
    - json-ld-fallback-author-url: the author's URL
    - json-ld-fallback-author-type: "Corporation" by default
      (but can also be a "Person")
    - json-ld-fallback-author-logo: the URL pointing to the logo

* Correct metadata
  * Rename abstract -> description and refactor code
  * Introduce "sameAs" property
  * Disable json-ld-version and json-ld-keywords
  * Use "Corporation" instead of "Organization" for default author
    and publisher
@tomschr tomschr marked this pull request as ready for review August 2, 2023 09:02
@tomschr tomschr merged commit 239aedf into main Aug 2, 2023
2 checks passed
@tomschr tomschr deleted the json-ld-finetune-1 branch August 2, 2023 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant