Code Monkey home page Code Monkey logo

salsa_oai2's Introduction

NAME

Salsa_OAI - Simple OAI data provider

VERSION

version 0.004

SYNOPSIS

This is a small webapp which acts as a OAI data provider based on HTTP::OAI::DataProvider and Tim Brody's HTTP::OAI. It is simply since it

* does not support all OAI features (see below) * it should be easy to maintain * easy to configure * easy to install

For a list of OAI features, see HTTP::OAI::DataProvider

FUNCTIONS

config_check ();

Run checks if Dancer's configuration make sense, e.g. if chunking enabled, it should also have the relevant information (e.g. chunk_dir). This check should run during initial start up and throw intelligble errors if it fails, so we can fix them right there and then and do not have to test all possibilities to discover them.

$provider=init_provider();

Initialize the data provider with settings either from Dancer's config if classic configuration information or from callbacks.

welcome()

Gets called from Dancer's routes to display html pages on Salsa_OAI

Debug "Message";

Use Dancer's debug function if available or else write to STDOUT. Register this callback during init_provider.

Warning "Message";

Use Dancer's warning function if available or pass message to perl's warn.

my $library = salsa_setLibrary();

Reads the setLibrary from dancer's config file and returns it in form of a HTTP::OAI::ListSet object( which can, of course, include one or more HTTP::OAI::Set objects ) .

Background: setNames
and setDescriptions are not stored with OAI headers,
but instead in the setLibrary
. HTTP::OAI::DataProvider::SetLibrary associates setSpecs with setNames
and setDescriptions
.

my xslt_fn=salsa_locateXSL($prefix);

locateXSL callback expects a metadataFormat prefix and will return the full path to the xsl which is responsible for this transformation. On failure: returns nothing.

SEE ALSO

AUTHOR

Maurice Mengel <[email protected]>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Maurice Mengel.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

salsa_oai2's People

Contributors

mokko avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

salsa_oai2's Issues

delete tmp files and permissions

I ran into this problem: Salsa cannot access temp file lr.xml because it is owned by different owner. It occurred after I switched from starting it via bin/app.pl to apache. To prevent this, I should delete temp file at some point.

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.