Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

ruebot/dpla-appfest-drupal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

DPLA Appfest Drupal integration

Idea

Drupal module or distribution

Your Name: Nate Hill

Type of app: Drupal CMS

Description of App: Many. many libraries choose to use Drupal as their content management system or as their application development framework. A contrib Drupal module that creates a simple interface for admin users to curate collections of DPLA content for display on a library website would be useful.

Workflow

Preamble:

I don't like recreating the wheel. So, let's see what contrib modules already exist, and see if we can just create a workflow to do this to start with. It would be really nice if DPLA had a OAI-PMH provider, then you could just use CCK + Feeds + Feeds OAI-PMH.

Example: bitly.com/VXMvMr

Requirements:

  • CCK

    drush pm-download cck

  • Feeds

    drush pm-download feeds

  • Feeds - JSON Parser

    drush pm-download feeds_jsonpath_parser cd sites/all/modules/feeds_jsonpath_parser && wget http://jsonpath.googlecode.com/files/jsonpath-0.8.1.php

Setup:

  • Create a Content Type for the DPLA content you would like to pull in (admin/content/types/add) CCK Content Type
  • Create DPLA metadata fields for the Content Type (admin/content/node-type/YOURCONTENTYPE/fields) CCK DPLA Field Types
  • Create a new feed importer (admin/build/feeds/create)
  • Configure the settings for you new feed importer
    • Basic settings:
      • Select the Content Type you would like to import into
      • Select a fequency you would like Feeds to ingest Feeds Import - Basic Settings
    • Fetcher
      • HTTP Fetcher
    • Processor
      • Node processor
      • Select the Content Type you created
      • Mappings (create a mapping for each metadata field you created)
        • Source : jsonpath_parser:0
        • Target : Title Feeds Import - Processor
    • Parser
      • JSONPath Parser
      • Settings for JSONPath parser
        • Context: $.docs.* Feeds Import - JSONPath
  • Construct a search you would like to ingest using the DPLA API
    • ex: http://api.dp.la/v1/items?dplaContributor=%22Minnesota%20Digital%20Library%22
  • Start the import! (node/add/YOURCONTENTTYPE)
  • Give the import a title... whatever your heart desires.
  • Add a feed url
  • Click on JSONPath Parser settings, and start adding all of the JSONPaths Node/Feed add
  • Click save, and watch the import go. Import success
  • Check out your results Record

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published