[Koha-bugs] [Bug 14224] patron notes about item shown at check in

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 17 01:26:14 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14224

Aleisha Amohia <aleishaamohia at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #57440|0                           |1
        is obsolete|                            |

--- Comment #10 from Aleisha Amohia <aleishaamohia at hotmail.com> ---
Created attachment 57577
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57577&action=edit
Bug 14224: Allow patron notes about item shown at check in

This patch adds a "Note" input field to checked out items in the "your summary"
section. The field allows patrons to write notes about the item checked out,
such as "this DVD is scratched", "the binding was torn", etc. The note will be
emailed to the library and displayed on item check in.

Patch adds two fields to the "issues" table - "note" and "notedate".
Patch adds syspref "AllowIssueNotes" - default off.

Test Plan:
1) Apply this patch
2) Run updatedatabase
3) Make sure the branch has an email address specified
4) Check out an item to a patron
5) Log in with the patron you checked out the item for
6) In "your summery", write a message in the new "Note" field for the item
   checked out. Hit ENTER to save/send.
7) Success message should be seen and an email sent to the email address
   specified for the branch which the item was checked out from.
8) Log in with staff account and check in the item
9) The note should be shown

The note can be changed by the patron at any time while the item is checked
out.
Each change will send a new email to the branch. Only the latest note version
will be shown on check in.

===============================================================================

UPDATE 3:

- This patch is still not ready for testing - am committing and
attaching just to keep track of my changes.
- So far I have
  - moved the ajax code into svc/patron_notes.
  - made use of the built-in letters and notices functions to send this
  email etc (easier to test, removes a lot of unnecessary code etc), so
  I have removed the opac-sendissuenote.tt file and instead added a note
  to the database in 'letters' table which will be added to the message
  queue when the note is submitted
  - GetIssue subroutine to return the matching issue
  - Created a new GetPatronNote subroutine to fetch the notes on the
  circulation.pl page (previously the librarian could only see the note
  on checkin on the returns.pl page, which is not the only place you can
  check in)

- Testing:
  - Schema needs to be rebuilt before testing
  - Turn on 'AllowIssueNote' syspref
  - Show message_queue in mysql to test the notice is being sent

- Still to do:
  - tests for new subroutines
  - fallback form for browsers without JS
  - Show patron notes on the staff client dashboard (the way suggestions
  and patron detail updates show up on the main page) so librarians can
  mark notes as 'seen'

Sponsored-by: Catalyst IT

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list