Dancer-Plugin-Catmandu-OAI

 view release on metacpan or  search on metacpan

META.json

      },
      "develop" : {
         "requires" : {
            "Dist::Milla" : "v1.0.17",
            "Test::Pod" : "1.41"
         }
      },
      "runtime" : {
         "requires" : {
            "Catmandu" : "1.0",
            "Catmandu::Exporter::Template" : "0.11",
            "Clone" : "0.36",
            "Dancer" : "1.3123",
            "DateTime" : "1.08",
            "DateTime::Format::ISO8601" : "0",
            "DateTime::Format::Strptime" : "0",
            "perl" : "v5.10.1"
         }
      },
      "test" : {
         "requires" : {

META.yml

no_index:
  directory:
    - eg
    - examples
    - inc
    - share
    - t
    - xt
requires:
  Catmandu: '1.0'
  Catmandu::Exporter::Template: '0.11'
  Clone: '0.36'
  Dancer: '1.3123'
  DateTime: '1.08'
  DateTime::Format::ISO8601: '0'
  DateTime::Format::Strptime: '0'
  perl: v5.10.1
resources:
  bugtracker: https://github.com/LibreCat/Dancer-Plugin-Catmandu-OAI/issues
  homepage: https://github.com/LibreCat/Dancer-Plugin-Catmandu-OAI
  repository: https://github.com/LibreCat/Dancer-Plugin-Catmandu-OAI.git

README

            * schema - An URL to the XSD schema of this format
            * metadataNamespace - A XML namespace for this format
            * template - The path to a Template Toolkit file to transform your records into this format
            * fix - Optionally an array of one or more L<Catmandu::Fix>-es or Fix files
        * sets - Optional an array of OAI-PMH sets and the CQL query to retrieve records in this set from the Catmandu::Store
            * setSpec - A short string for the same of the set
            * setName - A longer description of the set
            * setDescription - an optional and repeatable container that may hold community-specific XML-encoded data about the set. Should be string or array of strings.
            * cql - The CQL command to find records in this set in the L<Catmandu::Store>
        * xsl_stylesheet - Optional path to an xsl stylesheet
        * template_options - An optional hash of configuration options that will be passed to L<Catmandu::Exporter::Template> or L<Template>.

    Below is a sample minimal configuration for the 'sample.yml' demo
    above:

        $ cat config.yml
        charset: "UTF-8"
        plugins:
          'Catmandu::OAI':
            store: oai
            bag: data

cpanfile

requires 'perl', 'v5.10.1';

on test => sub {
    requires 'Test::More', '0.88';
    requires 'Dancer::Test', '1.3123'
};

requires 'Dancer', '1.3123';
requires 'Catmandu', '1.0';
requires 'Catmandu::Exporter::Template', '0.11';
requires 'DateTime', '1.08';
requires 'DateTime::Format::ISO8601', 0;
requires 'DateTime::Format::Strptime', 0;
requires 'Clone', '0.36';

lib/Dancer/Plugin/Catmandu/OAI.pm

Dancer::Plugin::Catmandu::OAI - OAI-PMH provider backed by a searchable Catmandu::Store

=cut

our $VERSION = '0.0501';

use Catmandu::Sane;
use Catmandu::Util qw(is_string is_array_ref);
use Catmandu;
use Catmandu::Fix;
use Catmandu::Exporter::Template;
use Dancer::Plugin;
use Dancer qw(:syntax);
use DateTime;
use DateTime::Format::ISO8601;
use DateTime::Format::Strptime;
use Clone qw(clone);

my $DEFAULT_LIMIT = 100;

my $VERBS = {

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.034 second using v1.00-cache-1.14-grep-d5ab23a-cpan-85b70982480 )