You are on page 1of 2

Koha3.

0DBschema(1/2) patrons/acquisition/circulation/budgetmanagement
CURRENCY 0,n
currency,rate

Acquisition/budget
Hascurrency 1,1 foreach (listprice,invoiceprice)

startdate,enddate,budgetamount budgetlines 1,1 budgeted 0,n


anorderiscountedonabudgetafterrecieve

AQBUDGET

id,name,currency,listprice,invoiceprice (currency,listprice,invoicepricereferstocurrencytable) 0,n AQORDERS currency 0,1 shelfnumber;shelfname virtualbookshelf

AQBOOKSELLER

AQORDERBREAKDOWN

1,1

BOOKSHELF

AQBOOKFUND
bookfundname bookfundheader

0,n

BIBLIO title,author,copyrightdate.
Nonmarcbiblioinformation

SHELFCONTENT contains

Circulation
ISSUES date_due,branchcode, issuingbranch,returndate, lastreneweddate,return,renewals, timestamp issues&returns 0,n

ITEMS price,barcode,holdingbranch, homebranch nonmarciteminformation


1,1 BRANCHTRANSFERS datesent,datearrived, comments movesbetweenbranches 1,1(gives) 1,1(recieve)

1,n

reservedate,constrainttype, priority

RESERVES

0,n

ITEMTYPES description,renewalsallowed, rentalcharge,notforloan itemmaterial. Consequencesonloanlength/cost 1,n

1,n

BRANCHES branchcode,branchname, branchaddress


ACCOUNTLINES date,amount,accounttype, amountoutstanding DebtsandFines 0,n

1,n

ISSUINGRULES issuelength&quantity usedtosetissuingrules, fines&rentalcharges 1,n

BORROWERS borrowernumber,borrowerinformations borrowers&librarians Thefielduserflagsreferstouserflagstable Aborrowerwithoutanyuserflagset canonlyaccessOPAC

0,n 0,n

CATEGORIES enrolmentperiod,agelimits,finetype, thedifferenttypesofborrowers (student,teacher,unemployed..) USERFLAGS bit,flag,flagdesc,defaulton Whateachdigitofuserflagenable/disable PRINTERS printername,printqueue,printtype

Patrons

MeansAconstraintsB.AistheparentandBisthechild(ablackarrowmeansthe constraintisCASCADE:whenAisdeleted,allBusingAaredeletedtoo.Asquarearrow meanstheconstraintisRESTRICT(Acan'tbedeletedwhenusedbyB)Adoublearrow meanstheconstraintisSETNULL(whenAisdeleted,BvalueissettoNULL)

DROPABLETABLES??? accountoffset,aqorderdelivery,branchcategories&branchrelations (theyareretrievedinKoha.pm,butitseemstheyarenotuse)

KOHA:DBstructure Author:PaulPOULAIN,25/01/2006

Koha3.0DBschema(2/2) cataloguemanagement NONMARCDB


subject 1,1 Speaksof 0,n 0,n 0,n

ADDITIONALAUTHORS BIBLIOSUBJECT BIBLIOSUBTITLE


author subtitle 1,1 Hassubtitle 1,1 Alsowrittenby

title,author,copyrightdate. Nonmarcbiblioinformation 1,1 BIBLIOITEMS isbn,publicationyear... Othertableforbiblioinformations (historicpurposes) 0,1 Exists 1,n

BIBLIO

MARCauthparameters MARCbiblioparameters
MARCheaderforeachauthority 1,n

ITEMS price,barcode,holdingbranch, homebranch


nonmarciteminformation 1,1 Hasinshelves 1,n 1,n 1,1 owns

AUTH_HEADER tagfield,liblibrarian,libopac, repeatable,mandatory

BIBLIO_FRAMEWORK/AUTHTYPES
Theframeworks/authtypesmanaged 1,n Dividedinto 1,1

BRANCHES branchcode,branchname, branchaddress

authid(authority#) tag_indicator(2digits) tagorder&subfieldorder(forordering) subfieldcode(1digit),subfieldvalue(value) valuebloblink(linktomarc_blobifvalue>255char) marcsubfieldsforauthoritiesarestoredhere 1,n

AUTH_SUBFIELD_TABLE

(MARC|AUTH)_TAG_STRUCTURE tagfield,liblibrarian,libopac, repeatable,mandatory


MARCstructuredefinition 1,n Dividedinto 1,1 tagfield,tagsubfield,liblibrarian, libopac,repeatable,mandatory tab(09:whereappearsinMARCeditor) authorised_value(categoryintableauthorised_value) thesaurus_category(categoryinbibliothesaurus) value_builder(plug_in)

category,authorised_value,lib. Acategorymaybeconnectedto MARC_SUBFIELD_STRUCTURE.TheMARCeditor showsthelibandstorestheauthorised_valueintheDB

AUTHORISED_VALUES

containsanentryforeachword inmarc_subfield_table.subfieldvalue. Usedforindexingpurposes.Nostopwordshere

AUTH_WORD

(MARC|AUTH)_SUBFIELD_STRUCTURE

TheDBcontainssomedatastwice:intheMARCDBandinthenonMARCDB. Kohasupports(virtually)anyMARCflavorwiththisDB: thenonMARCDBcontainsthemostimportantfieldsinacolumnwithanamenotdependingofthemarcflavor. TheMARCDBcontainsallthemarcfields. Themarc_xx_structuretablescontainsthemeaningofeachmarcfield/subfieldandthelinkbetweensomemarc subfieldsandnonmarctables. Amarcfieldcanbelinkedtoaanyfieldfromthefollowingtables:biblio,biblioitems,items,additionalauthors, bibliosubject,bibliosubtitle. Forexample:themarcsubfield200$aismappedto biblio.title inUNIMARC. NotethatALLbibliorelatedsubsarelocatedinC4/Biblio.pm. TheMARCDBalsousesamarc_wordtableforperf.purposes:withthistableallqueriesareindexed.

The(marc|auth)_xx_structuretablescontainsthemeaning ofeachfield/subfieldstoredinmarc_subfield_table marc*arerelatedtobiblios, auth*arerelatedtoauthorities KOHA:DBstructure Author:PaulPOULAIN,25/01/2006

You might also like