octfx / wiki-seo

Main development on Gerrit: https://gerrit.wikimedia.org/g/mediawiki/extensions/WikiSEO.
https://www.mediawiki.org/wiki/Extension:WikiSEO
GNU General Public License v2.0
5 stars 2 forks source link

A lot of authors for citation_author #13

Closed askurashev closed 3 years ago

askurashev commented 3 years ago

Hello. Can I add many authors t citation_author. How it will look in ld+json?

octfx commented 3 years ago

Currently only one author gets added when setting citation_author, I'll push a patch later that allows to set multiple authors separated by ;

ld+json won't get generated right now. Do you have an example for the markup?

askurashev commented 3 years ago

Doesn't your extension now generate ld + json code in the page code?

octfx commented 3 years ago

It does, but not for citation metadata. I'd need an example for json ld citation to implement that feature.

askurashev commented 3 years ago
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Periodical",
  "issn": "0140-6736",
  "hasPart": {
    "@id": "vol376",
    "@type": "PublicationVolume",
    "volumeNumber": "376",
    "hasPart": [
      {
        "@id": "issue9735",
        "@type": "PublicationIssue",
        "datePublished": "2010-07-03",
        "pageEnd": "140",
        "pageStart": "69",
        "issueNumber": "9735"
      },
      {
        "@id": "issue9734",
        "@type": "PublicationIssue",
        "datePublished": "2010-07-03",
        "pageEnd": "68",
        "pageStart": "1",
        "issueNumber": "9734"
      }
    ]
  },
  "name": "The Lancet",
  "publisher": "Elsevier"
}
</script>

More on https://schema.org/ScholarlyArticle

octfx commented 3 years ago

Thanks I'll have a look at this sometime next week

octfx commented 3 years ago

@askurashev Commit fa59fd641cc972e228cdb75e3860f4abfdbc0015 should implement the json ld schema mentioned

octfx commented 3 years ago

Closing due to inactivity