[Koha-patches] [PATCH v3 0/9] Bug 2503: offline circulation patches

Andrew Moore andrew.moore at liblime.com
Wed Aug 20 18:21:43 CEST 2008


Galen - 

Here's another copy of the offline circulation patches. I think these fix
the problems we discussed yesterday. Namely, I've fixed:

* the failing test cases in longoverdues.pl. I was ignoring the specified due date
* the due date is now calculated based on the issue date if only the issue date is given
* improved the efficiency of the create_koc_db.pl a bit

Again, these patches implement the server side code necessary to talk to an offline
circulation tool. Currently written against Kyle Hall's, but can be used by
other implementations if we get one. There's a new link on the circulation page
to let you upload .koc files with offline circulation data in them. There's also
a script in here designed to generate a database file with patron and holdings data
in it if you'd like to use it with the offline circulation tool.

Note that Kyle's patches don't say "bug 2503" in their subject lines because that
ug didn't exist when he submitted them.

-A


Andrew Moore (7):
  bug 2503: documentation improvements in C4::Circulation
  bug 2503: adding dates to some C4:Circulation methods to allow
    offline circulation tool to specify dates other than today
  bug 2503: removing Force* subs and replacing them with calls to
    C4::Circulation subs
  bug 2503: tests for C4::Circulation
  bug 2503: updating process_koc.pl to interpret new versions of import
    file
  bug 2503: moving offline circulation db generator to misc/cronjobs
    directory
  bug 2503: refactoring and bugfixing on create_koc_db.pl

Kyle Hall (2):
  Integrated version of the Koha Offline Circulation file uploader. It
    needs some testing and cleanup, but it works.
  Added offline circ sqlite database generator.

 C4/Circulation.pm                                  |  334 ++++++++++-------
 Makefile.PL                                        |    1 +
 .../prog/en/modules/circ/circulation-home.tmpl     |    7 +
 .../prog/en/modules/offline_circ/process_koc.tmpl  |   19 +
 .../prog/en/modules/offline_circ/upload_koc.tmpl   |   22 ++
 misc/cronjobs/create_koc_db.pl                     |  399 ++++++++++++++++++++
 offline_circ/process_koc.pl                        |  272 +++++++++++++
 offline_circ/upload_koc.pl                         |   43 +++
 t/lib/KohaTest/Circulation.pm                      |   86 +++++
 t/lib/KohaTest/Circulation/AddIssue.pm             |  120 ++++++
 t/lib/KohaTest/Circulation/MarkIssueReturned.pm    |   85 +++++
 t/lib/KohaTest/Dates/Usage.pm                      |    2 +-
 t/lib/KohaTest/Scripts/longoverdue.pm              |    8 +-
 13 files changed, 1251 insertions(+), 147 deletions(-)
 create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tmpl
 create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/upload_koc.tmpl
 create mode 100755 misc/cronjobs/create_koc_db.pl
 create mode 100755 offline_circ/process_koc.pl
 create mode 100755 offline_circ/upload_koc.pl
 create mode 100644 t/lib/KohaTest/Circulation/AddIssue.pm
 create mode 100644 t/lib/KohaTest/Circulation/MarkIssueReturned.pm




More information about the Koha-patches mailing list