Skip to content

Instantly share code, notes, and snippets.

View vpeil's full-sized avatar

Vitali Peil vpeil

  • Bielefeld University Library
View GitHub Profile
@vpeil
vpeil / list.md
Created November 13, 2018 08:22
Catmandu modules to be moved to Backpan
@vpeil
vpeil / README.md
Last active August 29, 2015 14:11
Set up your own OAI data provider with Catmandu and Dancer

Download this gist and create a symbolic link

$ ln -s catmandu.yml config.yml

This is necessary for the dancer app. In this case Catmandu and Dancer are using the same configuration file.

#!/usr/bin/env perl
# produces a csv file, if it matches a doi
# for more information see http://search.crossref.org/help/api
use Catmandu::Sane;
use Catmandu;
use JSON;
use Catmandu::Importer::CSV;
use Catmandu::Exporter::CSV;
@vpeil
vpeil / create_sitemap_old.pl
Created July 29, 2013 11:27
Create a sitemap: making life easier for the google bot Comparison of Catmandu und non-Catmandu script. Which one do you like more?
use strict;
use lib qw(/srv/www/sbcat/lib/extension /srv/www/sbcat/lib/default);
use Orms;
use luurCfg;
use CQL::Parser;
use cql2sql;
my $basic_url = 'http://pub.uni-bielefeld.de/publication/' ;
my $outfile = '/srv/www/sbcat/htdocs/pub_index.txt' ;