GithubHelp home page GithubHelp logo

dkan_sci_metadata's Introduction

DKAN Science Metadata

This module adds Science Metadata related paragraph bundles to the DKAN dataset content type, and Dkan Sci Search index logic.

More documentation coming soon...

Submodules

DKAN Sci Author (modules/dkan_sci_author)

  • Provides a child paragraph bundle for adding authors. Includes Author ID, Author ID Type (ORCID, Google Scholar, ResearcherID, Scopus Author ID, USDA), Author Name, and Is Organization fields. Validates ORCID IDs and retrieve biography information to populate name field. ORCID IDs

DKAN Sci Citation (modules/dkan_sci_citation)

  • Support for DOI-based citations. Adds a citation bundle that allows adding via either a free text field or a DOI. If DOI is used, the full citation is retrieved from CrossRef and displayed properly on the dataset page. See module README for details.

License

DKAN and related modules are freely-available under the "GNU General Public License, version 3 or any later version" license.

Acknowledgements

Copyright 2017-2020 CivicActions, Inc.

This module was partially funded by the US Department of Agriculture, as part of the development of the Ag Data Commons.

Any opinions, findings, conclusion, or recommendations expressed in this publication are those of the author(s) and do not necessarily reflect the view of the US. Department of Agriculture.

dkan_sci_metadata's People

Contributors

dafeder avatar kducharm avatar ethanteague avatar janette avatar

Stargazers

Johan van Bussel avatar  avatar Jon Repp avatar Keri avatar

Watchers

Tom Wood avatar Mike Gifford avatar Avery Smith avatar  avatar David Sumner avatar Paul Mitchum avatar Josh R. avatar James Cloos avatar Paul Walker avatar Laura Lanford avatar Andrew Hawks avatar Dharizza Espinach B. avatar  avatar Adrienne avatar John Erhardt avatar  avatar Jason Tallant avatar Alex Scott avatar  avatar Daniel Mundra avatar Julie Kramer avatar Brian Seek avatar Tiffney Bare avatar  avatar Johan van Bussel avatar

Forkers

ethanteague

dkan_sci_metadata's Issues

Investigate other search alter possibilities

Initially we provide a second search index, but perhaps that is not necessary out of the box. The real reason we do this is to support searches of file contents. But we could take an alter appoach, as USDA did. For instance:

/**
 * Implements hook_default_search_api_index_alter().
 */
function nal_author_field_default_search_api_index_alter(&$defaults) {
  if (isset($defaults['datasets'])) {
    $defaults['datasets']->options['fields']['field_nal_author:field_nal_author_name'] = array(
      'type' => 'list<string>',
    );
    $defaults['datasets']->options['fields']['field_nal_author:item_id'] = array(
      'type' => 'list<integer>',
    );
  }
}

function nal_author_field_enable_facets() {
  $searchers = array('search_api@datasets');
  foreach($searchers as $searcher) {
    $realm = "block";
    $facets_to_enable = array('field_nal_author:field_nal_author_name','field_nal_author:item_id');

    $adapter = facetapi_adapter_load($searcher);
    $facet_info = facetapi_get_facet_info($searcher);

    foreach (array_keys($facet_info) as $item) {
      $facet = facetapi_facet_load($item, $searcher);
      if (in_array($item,$facets_to_enable)) {
        $facet_settings = $adapter->getFacet($facet)->getSettings($realm);
        $facet_settings->enabled = 1;
        ctools_export_crud_save('facetapi', $facet_settings);
      }
    }
  }
}

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.