Skip to content

Islandora-Collaboration-Group/islandora_json_ld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Islandora Google Scholar - JSON-LD

Introduction

Automatically embeds JSON-LD in object pages. The JSON-LD fields are mapped from an object's MODS record as follows.

cModel Schema.org
ir:thesisCModel @type="Thesis"
ir:citationCModel @type="ScholarlyArticle"
islandora:sp_basic_image @type="ImageObject"
islandora:sp_large_image_cmodel @type="ImageObject"
islandora:sp_pdf @type="DigitalDocument"
islandora:sp-audioCModel @type="AudioObject"
islandora:sp_videoCModel @type="VideoObject"
islandora:bookCModel @type="Book"
islandora:newspaperCModel @type="Newspaper"
islandora:eventCModel @type="Event"
islandora:placeCModel @type="Place"
islandora:personCModel @type="Person"
islandora:organizationCModel @type="CollegeorUniversity"
islandora:sp_disk_image @type="Dataset"
islandora:sp_web_archive @type="WebPage"
XPath Schema.org Drupal Variable
/mods:titleInfo/mods:title name islandora_scholar_xpaths_title(//mods:mods[1]/mods:titleInfo/mods:title)
/mods:name[@type="corporate"][mods:role/mods:roleTerm = "Degree grantor"]/mods:namePart sourceOrganization @type="CollegeOrUniversity" site_name
/mods:name/mods:role[mods:roleTerm = "author"]/../mods:namePart[@type="family"] author @type="Person" No variable
/mods:originInfo/mods:dateIssued datePublished islandora_scholar_xpaths_origin_date(//mods:originInfo/mods:dateIssued)
/mods:abstract description islandora_scholar_xpaths_abstract(//mods:mods[1]/mods:abstract)
/mods:part/mods:subject/mods:topic keywords islandora_scholar_xpaths_topics(//mods:subject)
Subtitle islandora_scholar_xpaths_title_sub_title(//mods:mods[1]/mods:titleInfo/mods:subTitle)
/mods:extent[@unit="page"]/mods:start pageStart islandora_scholar_xpaths_start_page(//mods:extent[@unit="page"]/mods:start)
/mods:extent[@unit="page"]/mods:end pageEnd islandora_scholar_xpaths_end_page(//mods:extent[@unit="page"]/mods:start)
/mods:identifier[@type="doi"] identifier @type:"PropertyValue" propertyID:"DOI" islandora_scholar_xpaths_doi(//mods:identifier[@type="doi"])
/mods:extension/etd:degree/etd:name, /mods:extension/etd:degree/etd:discipline inSupportOf No present
/mods:language inLanguage en
/mods:nameIdentifier @type:schema:Person @id @id maps to the PID
//mods:mods[1]/mods:originInfo/mods:publisher Publisher No variable

Requirements

This module requires the following modules/libraries:

Installation

Install as usual, see this for further information.

Citeproc is a 3rd party code dependency, typically managed by Composer. If you're already using Islandora Scholar you've probably already set this up, but if you haven't you'll get an error like this:

Error: Class 'Seboettg\CiteProc\CiteProc' not found in citeproc_get_citeproc_php_instance() (line 119 of /var/www/html/sites/all/modules/islandora/islandora_scholar/modules/citeproc/citeproc.module).

To fix you should follow the main Islandora Scholar install dependency installation instructions. Typically this means:

  • cd into the sites/all/modules/islandora/islandora_scholar/modules/citeproc folder and run composer install

Configuration

Enable the module via Administration » Modules (admin/modules)

Troubleshooting/Issues

Having problems or solved a problem? Check out the Islandora google groups for a solution.

Maintainers/Sponsors

Current maintainers:

Development

If you would like to contribute to this module, please check out our helpful Documentation for Developers info, as well as our Developers section on the Islandora.ca site.

License

GPLv3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages