Koha/installer/data/mysql
Kyle M Hall ecd89d2030 Bug 14945 - Add the ability to store the last patron to return an item
Currently if the AnonymousPatron system preference is in use, all patron
data is anonymized. Some libraries would like to be able to see the last
patron who returned out an item ( in case of damage ) but still keep all
other patrons anonymized.

* Add the table items_last_borrower ( id, itemnumber, borrowernumber )
* Add new system preference StoreLastBorrower
* If StoreLastBorrower is enabled, upon checkin have Koha insert into
  this table the patron who last returned this item. Replace existing
  row based on itemnumber if exists.
* If table has a row for a given item, link to the patron from the item
  details page.

Test plan:
1) Apply patch
2) Run updatedatabase.pl
3) Enable StoreLastBorrower
4) Issue an item to a patron and return said item
5) Issue the same item to a second patron, do not return it.
6) View moredetail.pl for the given bib, find the given item. There
   should be a new field in the history list 'Last returned by' with a link
   to the last patron to return the item.

Optionally, you can also verify this works even if patron issuing
history has been set to anonymize issues upon return.

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>

Signed-off-by: Jen DeMuth <JDeMuth@roseville.ca.us>
Signed-off-by: Tom Misilo <misilot@fit.edu>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
2015-12-31 19:32:20 +00:00
..
atomicupdate Bug 14945 - Add the ability to store the last patron to return an item 2015-12-31 19:32:20 +00:00
de-DE Bug 9819 - 'stopwords'-related code removed 2015-12-30 15:49:35 +00:00
en Bug 9819 - 'stopwords'-related code removed 2015-12-30 15:49:35 +00:00
es-ES Bug 9819 - QA Followup: Stopwords vestiges in es-ES removed 2015-12-30 15:50:15 +00:00
fr-FR Bug 9819 - 'stopwords'-related code removed 2015-12-30 15:49:35 +00:00
it-IT Bug 9819 - 'stopwords'-related code removed 2015-12-30 15:49:35 +00:00
mandatory Bug 14285: Bengali locale needs to be re-defined 2015-06-01 15:22:27 -03:00
nb-NO Bug 9819 - 'stopwords'-related code removed 2015-12-30 15:49:35 +00:00
pl-PL Bug 9819 - 'stopwords'-related code removed 2015-12-30 15:49:35 +00:00
ru-RU Bug 9819 - 'stopwords'-related code removed 2015-12-30 15:49:35 +00:00
uk-UA Bug 9819 - 'stopwords'-related code removed 2015-12-30 15:49:35 +00:00
audio_alerts.sql Bug 11431: (QA followup) Make audio alerts sql top level 2015-11-04 12:33:53 -03:00
backfill_statistics.pl
kohastructure.sql Bug 14945 - Add the ability to store the last patron to return an item 2015-12-31 19:32:20 +00:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 14945 - Add the ability to store the last patron to return an item 2015-12-31 19:32:20 +00:00
update22to30.pl
updatedatabase.pl Bumping the DBrev up 2015-12-31 18:38:40 +00:00
userflags.sql Bug 13632: Populate user_flags and permissions tables in the web installer 2015-10-19 09:38:04 -03:00
userpermissions.sql Bug 11569: Correcting typos in userpermissions.sql 2015-12-30 16:21:38 +00:00