]> git.koha-community.org Git - koha.git/commit
Bug 12461 - Add patron clubs feature
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 23 May 2014 15:54:26 +0000 (11:54 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 28 Apr 2017 12:37:44 +0000 (08:37 -0400)
commit95429af6855e8ed37945b681dc466bf360deffb2
tree14ec2dd210c19d8ad3541a182cc0635e06b50da2
parent45a35f1ecc7c41073c3cb3f3ea56f496dcd0171c
Bug 12461 - Add patron clubs feature

This features would add the ability to create clubs which patrons may be
enrolled in. It would be particularly useful for tracking summer reading
programs, book clubs and other such clubs.

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
3) Ensure your staff user has the new 'Patron clubs' permissions
4) Under the tools menu, click the "Patron clubs" link
5) Create a new club template
   * Here you can add fields that can be filled out at the time
     a new club is created based on the template, or a new enrollment
     is created for a given club based on the template.
6) Create a new club based on that template
7) Attempt to enroll a patron in that club
8) Create a club with email required set
9) Attempt to enroll a patron without an email address in that club
10) Create a club that is enrollable from the OPAC
11) Attempt to enroll a patron in that club
12) Attempt to cancel a club enrollment from the OPAC
13) Attempt to cancel a club enrollment from the staff interface

Followed test plan, works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
61 files changed:
C4/Auth.pm
C4/Members.pm
Koha/Club.pm [new file with mode: 0644]
Koha/Club/Enrollment.pm [new file with mode: 0644]
Koha/Club/Enrollment/Field.pm [new file with mode: 0644]
Koha/Club/Enrollment/Fields.pm [new file with mode: 0644]
Koha/Club/Enrollments.pm [new file with mode: 0644]
Koha/Club/Field.pm [new file with mode: 0644]
Koha/Club/Fields.pm [new file with mode: 0644]
Koha/Club/Template.pm [new file with mode: 0644]
Koha/Club/Template/EnrollmentField.pm [new file with mode: 0644]
Koha/Club/Template/EnrollmentFields.pm [new file with mode: 0644]
Koha/Club/Template/Field.pm [new file with mode: 0644]
Koha/Club/Template/Fields.pm [new file with mode: 0644]
Koha/Club/Templates.pm [new file with mode: 0644]
Koha/Clubs.pm [new file with mode: 0644]
Koha/Patron.pm
Koha/Schema/Result/AuthorisedValue.pm
Koha/Schema/Result/Borrower.pm
Koha/Schema/Result/Branch.pm
Koha/Schema/Result/Club.pm [new file with mode: 0644]
Koha/Schema/Result/ClubEnrollment.pm [new file with mode: 0644]
Koha/Schema/Result/ClubEnrollmentField.pm [new file with mode: 0644]
Koha/Schema/Result/ClubField.pm [new file with mode: 0644]
Koha/Schema/Result/ClubTemplate.pm [new file with mode: 0644]
Koha/Schema/Result/ClubTemplateEnrollmentField.pm [new file with mode: 0644]
Koha/Schema/Result/ClubTemplateField.pm [new file with mode: 0644]
Koha/Template/Plugin/AuthorisedValues.pm
Koha/Template/Plugin/Borrowers.pm
clubs/clubs-add-modify.pl [new file with mode: 0755]
clubs/clubs.pl [new file with mode: 0755]
clubs/patron-clubs-tab.pl [new file with mode: 0755]
clubs/patron-enroll.pl [new file with mode: 0755]
clubs/templates-add-modify.pl [new file with mode: 0755]
installer/data/mysql/atomicupdate/bug_12461.sql [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
installer/data/mysql/userflags.sql
installer/data/mysql/userpermissions.sql
koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc
koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-enroll.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/clubs/clubs-tab.tt [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/en/modules/clubs/enroll.tt [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
members/moremember.pl
opac/clubs/clubs-tab.pl [new file with mode: 0755]
opac/clubs/enroll.pl [new file with mode: 0755]
opac/svc/club/cancel_enrollment [new file with mode: 0755]
opac/svc/club/enroll [new file with mode: 0755]
svc/club/cancel_enrollment [new file with mode: 0755]
svc/club/delete [new file with mode: 0755]
svc/club/enroll [new file with mode: 0755]
svc/club/template/delete [new file with mode: 0755]
t/db_dependent/Clubs.t [new file with mode: 0755]