Bug 15971: Add biblioitems to available fields for serial claim notices and fix notic...
authorKatrin Fischer <katrin.fischer.83@web.de>
Fri, 10 Aug 2018 03:21:56 +0000 (05:21 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 1 Oct 2018 13:56:34 +0000 (13:56 +0000)
commita002d12888c1e56910a32f28514a59d9a1d9363d
tree6edab51bade0447831c666821eabfc7bbde38289
parent448dd50cf59b96e5abbb84f7717ca43f593c05e5
Bug 15971: Add biblioitems to available fields for serial claim notices and fix notices editor display

This fixes 2 related problems:

1) The editor only offered 3 entries from biblio for adding to the notice:
title, author, serial
It was not clear that actually all fields from biblio can be used.

2) It was not possible to use fields from biblioitems in the notices
which left out important fields like the ISSN.

The patch adds the biblioitems table and changes the editor to show
all entries from biblio and biblioitems table are shown on the left.

To test:
- Create a subscription
- Generate next issue a few times to get late issues
- Create a new notice in the "Claim serial issue" module
  - Use fields from different/all tables
- Make sure an email address is set for
  - the vendor (also check for 'receives claims for late issues')
  - your staff user
- Go to serials > claims
- Claim multiple issues
- Verify the email is generated and contains the correct information

Example notice:

Title: <<biblio.title>>
Author: <<biblio.author>>
ISSN: <<biblioitems.issn>>
ISBN: <<biblioitems.isbn>>
Issue: <<serial.serialseq>>
--

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Letters.pm
t/db_dependent/Letters.t
tools/letter.pl