1 of 59

Hebah Amin-Headley

Valerie Burnett

Hebah Amin-Headley

Valerie Burnett

LASSO

your data

LASSO

your data

2 of 59

Valerie Burnett

Data & Migration Librarian

ByWater Solutions

Academic library background

Hebah Amin-Headley

Content Creator & Educator

ByWater Solutions

Public library background

Fiber Arts

Fiction

Cats

Libraries

Talk to us

about…

80s music

Board games

Doctor Who

Koha

Tea

Transgender humans

Fountain pens

Stuffed foods

3 of 59

Table of Contents

  1. A Brief Note on Permissions
  2. Reports
  3. Batch item modification
  4. Batch record modification
  5. Import patrons
  6. Batch patron modification
  7. Batch patron deletion
  8. Future possible developments

4 of 59

A Brief Note on Permissions

  • Koha allows a lot of customization of permissions based on staff role.
  • As we mention each tool/process, we will address permissions for that tool.
  • With one exception…

Photo: Jewell Mazique, clerk with Library of Congress from LOC Prints and Photographs division: http://loc.gov/pictures/resource/fsa.8d02858/

5 of 59

Cataloguing Permissions

6 of 59

Chapter Two

The Intrepid Report(er)

Picture used with permission of Ryan Bedke @RancherRyan

7 of 59

8 of 59

What is Borrowernumber, Biblionumber, and Itemnumber?

The key to performing actions lies in numerical references, such as cardnumbers (patrons) and the database reference numbers: borrowernumber, biblionumber, itemnumber.

  • Cucurbita pepo
  • Summer squash
  • Zucchini
  • Courgette
  • Cucuzza
  • Marrow

Picture by Valerie Burnett

9 of 59

SELECT biblio.title, (@partial:=LEFT(extractvalue(metadata, '//datafield[@tag=\"035\"]/subfield[@code=\"a\"]'),7)) AS "partial 035$a"

FROM biblio_metadata

JOIN biblio USING (biblionumber)

GROUP BY @partial

10 of 59

SELECT biblio.biblionumber, biblio.title, (@partial:=LEFT(extractvalue(metadata, '//datafield[@tag=\"035\"]/subfield[@code=\"a\"]'),7)) AS "partial 035$a"

FROM biblio_metadata

JOIN biblio USING (biblionumber)

GROUP BY @partial

11 of 59

12 of 59

13 of 59

14 of 59

NEW WINDOW!

15 of 59

16 of 59

17 of 59

18 of 59

19 of 59

Chapter Three

Corralling item data

Picture used with permission of Ryan Bedke @RancherRyan

20 of 59

21 of 59

22 of 59

23 of 59

24 of 59

This option checks in items to remove them from patron accounts.

Items are not marked found, nor do damaged/withdrawn statuses prevent this return, nor are item locations updated. This feature is intended to allow removal of checkouts from patron accounts without affecting fines or other statuses.

“ ”

25 of 59

26 of 59

27 of 59

28 of 59

29 of 59

30 of 59

Want to live dangerously?

31 of 59

Chapter Four

Corralling biblios

Batch Record Modification

Picture used with permission of Ryan Bedke @RancherRyan

32 of 59

33 of 59

34 of 59

35 of 59

36 of 59

Chapter Five

Gather up the townsfolk

Importing patrons

Picture by Valerie Burnett

37 of 59

38 of 59

39 of 59

40 of 59

Important points:

  • Branchcode, surname, and categorycode are REQUIRED
  • Branchcode and categorycode must be already defined
  • Branchcode and categorycode must be uppercase
  • Headers must be lowercase
  • Headers must be the defined database names
  • Date format is picky
    • '01/02/2008'. NOT ‘1/2/2008’
    • '2010-10-28' (ISO format)

Helpful points:

  • Only upload fields with data (delete empty columns)
  • Never upload “flags” column
  • If you overwrite passwords, you might overwrite passwords for staff users
  • Leading zeros in cardnumber, userid, and zipcode can go missing

41 of 59

Automated uploads

  • Valuable for school and special libraries where the patrons are members of a defined group
  • Library’s IT department sets up an automated export of patron list, formatted to upload
  • Export file has a predictable naming convention
  • Export file is placed on an sftp server
  • Koha admin sets up an automated import to run

Picture used with permission of Ryan Bedke @RancherRyan

42 of 59

Picture used with permission of Ryan Bedke @RancherRyan

43 of 59

Chapter Six

Rounding Up Patrons

Photo credit: Johnson County (KS) Archives

44 of 59

Batch patron updates

Update whole family’s addresses at once

Update to a new patron category in batch - example: new juvenile category or creating non-resident category

Update patron attribute

Delete patron attribute - find via report and delete in bulk

45 of 59

Patron Tools - Modification

46 of 59

Batch patron modification from Patron Search

47 of 59

Quality of life improvement!

48 of 59

Identify group of patrons via report

49 of 59

Batch modify or delete from results

50 of 59

Chapter Seven: Git on Out of Here

Photo: Dan Cook, via Unsplash

51 of 59

Batch patron deletion

Tool

Limitations on deletion

Identify via report (using borrowernumber and last seen, no checkouts, fines, guarantees, etc if you want to see who’s getting deleted

Delete from patron list

52 of 59

Patron Tools - Batch Deletion

53 of 59

Batch patron deletion tool*

*some exceptions apply

54 of 59

Check your work - are these expected numbers?

55 of 59

Reporting

  • Create report to identify who would be deleted by criteria entered
  • Create report to identify accounts ineligible for deletion (need to end checkouts, or have guarantor, expired staff account, etc)
  • Reports wiki has many reports on patrons by criteria as starting place: https://wiki.koha-community.org/wiki/SQL_Reports_Patrons

56 of 59

Patron Tools - Lists

57 of 59

Patron Lists

58 of 59

That’s All Well and Good, but…

Enhancement requests in the Koha Community

Bug 6532 - Way to move items to another record in batches

Bug 23205 - Enable barcode links in reports

Bug 23260 - Anonymize (remove) patron date from items_last_borrower

Bug 24483 - When batch deleting patrons, report who was not deleted and why

Bug 30281 - Schedule batch patron deletion and anonymization

Bug 37514 - Batch patron modification should have renewal as option

Don’t see a feature you want here? File a bug!

59 of 59

Questions? Great use cases?

Valerie Burnett

Data & Migration Librarian

ByWater Solutions

valerie@bywatersolutions.com

Hebah Amin-Headley

Content Creator & Educator

ByWater Solutions

hebah@bywatersolutions.com