Catmandu und PUB

Petra Kohorst, Vitali Peil
23. November 2012

 

Agenda:

Was ist PUB?

Allgemein:

Speziell:

Die alte PUB-Architektur

Was ist Catmandu?

Importing, transforming, storing and indexing data should be easy.
Nicolas Steenlant, U Gent

Was ist Catmandu?

Catmandu vereinfacht Code

Ohne Catmandu:

use luurCfg;
use Orms;
my $cfg  = luurCfg->new;
my $luur = Orms->new($cfg->{ormsCfg});

my $info = $luur->getAttributeValues(object => "2470705");
my $authors = $luur->getRelatedObjects(object1 => "2470705",
                                      relation => "isAuthoredBy");
my $authInfo; 
foreach(@$authors){
        my $ainfo = $luur->getAttributeValues(object => $_);
        push @$authInfo, $ainfo;
}
my $hit = $info;
$hit->{authors} = $authInfo;
        

Catmandu vereinfacht Code

Mit Catmandu:

Catmandu->load;
my $bag = Catmandu->store('search')->bag('publicationItem');
my $hit = $bag->search(cql_query => "id=2470705");
        

Catmandu::Fix

Gründe für die Umstellung

Neue PUB-Architektur

Die neue PUB-Architektur

Migration

Seit Juni:

Donnerstag, 18.10.2012 (ein Tag vor Liveschaltung):

Migration

Freitag, 19.10.2012 (Tag der Liveschaltung):

Ausblick

 

 

Vielen Dank!

 

PUB - Publikationen an der Universität Bielefeld
http://pub.uni-bielefeld.de