Bug 12059: Publisher column on invoice page always empty
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Mon, 10 Nov 2014 08:55:52 +0000 (09:55 +0100)
committerChris Cormack <chris@bigballofwax.co.nz>
Tue, 23 Dec 2014 07:15:10 +0000 (20:15 +1300)
commitb970d1ef116a68c5d1896ad27e0cc61021022b60
tree453e8a11310950443f140cc7f570d8192b21d033
parent2edde60ffb42dac9d8916f85348331d22629cadc
Bug 12059: Publisher column on invoice page always empty

This patch moves the publisher information out of its own
always empty column into the Summary column below the title,
as it is on other acq pages.

The information was never displaying, as publishercode is in
biblioitems and that table was not selected by GetInvoiceDetails.

Also modified the code to take into account that UNIMARC uses
biblioitems.publicationyear and MARC21/NORMARC use bibio.copyrightdate
for the copyright year.

To test:
- create an invoice for records that
  - have a publication year
  - have no publication year
  - have a publisher...
- 'finish receiving' and check the invoice summary page
   ...acqui/invoice.pl?invoiceid=?
- Make sure all the information displays now but didn't witout the patch.

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit d9c99b6f5ef40bb546231cf35581d4308f1ae3bc)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
C4/Acquisition.pm
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt