Thanks a lot Alexander! cheers, -Vesa On Thu, Nov 8, 2012 at 10:09 AM, Alexander Wagner <[email protected]>wrote:
> On 08.11.2012 09:32, Vesa Sivunen wrote: > > Hi! > > > I would be very interested in seeing the script. The reason >> being exactly "...no one really wanted to do this by mouse and >> keyboard... ;)". >> > > The second, an IMHO much more important, reason is that you never get it > consistent if you want to do it by hand on more than one instance. Even > if you use diligent librarians for the setup ;) > > For sake of simpicity I've included the real world configs from JuSER, > which is the instance in Jülich of the ongoing project with DESY, GSI, > Jülich and RWTH Aachen. > > CreateCollections.py is the main script, just call it with it's input in > the same directory. We use _2_ config files. One that is specific for a > given instance. It's name is derived in the usual Invenio style by > evaluating CFG_WEBSTYLE_TEMPLATE_SKIN. Our local instance uses > > CFG_WEBSTYLE_TEMPLATE_SKIN = fzj > > so our local, instance specific file is CollectionList_fzj.txt. The > second one is a "generic" list we share between all instances. > > Note that the _fzj-File is executed first as it sets up some mother > collections for the gereic ones. For us these are mainly the collections > Workflow, Documenttypes, Authrities, InstColl and FullTexts which should > be first level children of our main instance which is called JuSER. This > explains the first (and subsequent) lines in this file: > > Place a collection named internally "Workflow" as a _v_irtual child of > JuSER, and name it "Workflow collections" in @english and "Workflow > collections in @deutsch. > > For documenttypes you see the different namings like "Document types" > and "Dokumenttypen". Note also that all collections in the _fzj-File do > NOT use a collection query except the speciality "FullTexts". Therefore > you have _2_ tab chars after the internal name. (:set list in vi shows > it or use some spreadsheet app like gnumeric). > > In Collectionlist.txt you see all mor or less regular collections we > use. Same syntax: > > Internalname <tab> collection query <tab> r|v <tab> translations > > You can spedify whatever languagnes you want, just use the invenio > internal language code preceeded by an @. (So you can have more columns > than the files show.) > > If you check out CreateCollections.py in more detail you'll see that it > doesn't deserve the "rocket science" label. It's actually pretty simple > straight forward calls against invenios high level api. In a way it > mimics exactly what would happen if you hit a mouse button her and the > keyboard there in the web frontend. > > HTH :) > > > -- > > Kind regards, > > Alexander Wagner > Subject Specialist > Central Library > 52425 Juelich > > mail : [email protected] > phone: +49 2461 61-1586 > Fax : +49 2461 61-6103 > www.fz-juelich.de/zb/DE/zb-fi > > > ------------------------------**------------------------------** > ------------------------------**------ > ------------------------------**------------------------------** > ------------------------------**------ > Forschungszentrum Juelich GmbH > 52425 Juelich > Sitz der Gesellschaft: Juelich > Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 > Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher > Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender), > Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, > Prof. Dr. Sebastian M. Schmidt > ------------------------------**------------------------------** > ------------------------------**------ > ------------------------------**------------------------------** > ------------------------------**------ > > Kennen Sie schon unsere app? http://www.fz-juelich.de/app >

