Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Need to amend statistics table

The Statistics table now lacks data that is required to determine the nature of actions from th statistical point of view, e.g. at the end of the year. Checking the data from elsewhere will produce skewed results, if, for example, a patron's status changes during the year. A few additions could make data significantly more reliable. 

...

ColumnTypeSizeNullsAutoDefaultChildrenParentsComments
datetimeDATETIME19
null

date and time of the transaction

branchVARCHAR10
null

foreign key, branch where the transaction occurred

valueDOUBLE16,4
null

monetary value associated with the transaction

typeVARCHAR16
null



transaction type (localuse, issue, return, renew, writeoff, payment)

otherLONGTEXT2147483647
null

used by SIP

itemnumberINT10
null

foreign key from the items table, links transaction to a specific item

itemtypeVARCHAR10
null



foreign key from the itemtypes table, links transaction to a specific item type

locationVARCHAR80
null

authorized value for the shelving location for this item (MARC21 952$c)

borrowernumberINT10
null

kirjasto
ccodeVARCHAR80
null


Suggestions for added

...

data

  • Patron data
    • categorycode, patron group
    • borrower_attributes: STAT_CAT, statistics group
    • (question) branchcode, home library. Not used or maintained by all libraries. 
  • Item data
    • homebrach,
    • itemcallnumber,
  • Method of issuing
    • More exactly, data on the API used. Staff member, SIP, other API...