Giter Club home page Giter Club logo

islandora_json_ld's Introduction

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

islandora_json_ld's People

Contributors

dwk2 avatar emudojo avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

islandora_json_ld's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.