Dancer-Plugin-Catmandu-OAI
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
"dist_author" => [
"Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>"
],
"dist_name" => "Dancer-Plugin-Catmandu-OAI",
"dist_version" => "0.0508",
"license" => "perl",
"module_name" => "Dancer::Plugin::Catmandu::OAI",
"recursive_test_files" => 1,
"requires" => {
"Catmandu" => "1.0",
"Catmandu::Exporter::Template" => "0.11",
"Clone" => "0.36",
"Dancer" => "1.3123",
"Data::MessagePack" => "1.00",
"DateTime" => "1.08",
"DateTime::Format::ISO8601" => 0,
"DateTime::Format::Strptime" => 0,
"MIME::Base64" => "3.15",
"perl" => "v5.10.1"
},
"test_requires" => {
},
"develop" : {
"requires" : {
"Dist::Milla" : "v1.0.20",
"Test::Pod" : "1.41"
}
},
"runtime" : {
"requires" : {
"Catmandu" : "1.0",
"Catmandu::Exporter::Template" : "0.11",
"Clone" : "0.36",
"Dancer" : "1.3123",
"Data::MessagePack" : "1.00",
"DateTime" : "1.08",
"DateTime::Format::ISO8601" : "0",
"DateTime::Format::Strptime" : "0",
"MIME::Base64" : "3.15",
"perl" : "v5.10.1"
}
},
no_index:
directory:
- eg
- examples
- inc
- share
- t
- xt
requires:
Catmandu: '1.0'
Catmandu::Exporter::Template: '0.11'
Clone: '0.36'
Dancer: '1.3123'
Data::MessagePack: '1.00'
DateTime: '1.08'
DateTime::Format::ISO8601: '0'
DateTime::Format::Strptime: '0'
MIME::Base64: '3.15'
perl: v5.10.1
resources:
bugtracker: https://github.com/LibreCat/Dancer-Plugin-Catmandu-OAI/issues
* 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
requires 'perl', 'v5.10.1';
on test => sub {
requires 'Test::More', '>=0.88';
requires 'Dancer::Test', '>=1.3123';
requires 'YAML';
};
requires 'Catmandu', '>=1.0';
requires 'Catmandu::Exporter::Template', '>=0.11';
requires 'Clone', '>=0.36';
requires 'Dancer', '>=1.3123';
requires 'Data::MessagePack', '>=1.00';
requires 'DateTime', '>=1.08';
requires 'DateTime::Format::ISO8601', 0;
requires 'DateTime::Format::Strptime', 0;
requires 'MIME::Base64', '>=3.15';
lib/Dancer/Plugin/Catmandu/OAI.pm view on Meta::CPAN
Dancer::Plugin::Catmandu::OAI - OAI-PMH provider backed by a searchable Catmandu::Store
=cut
our $VERSION = '0.0508';
use Catmandu::Sane;
use Catmandu::Util qw(is_string is_array_ref hash_merge);
use Catmandu;
use Catmandu::Fix;
use Catmandu::Exporter::Template;
use Data::MessagePack;
use MIME::Base64 qw(encode_base64url decode_base64url);
use Dancer::Plugin;
use Dancer qw(:syntax);
use DateTime;
use DateTime::Format::ISO8601;
use DateTime::Format::Strptime;
my $DEFAULT_LIMIT = 100;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.246 second using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )