Koha-clms/C4/Creators
Chris Nighswonger c3cf2fc2b9 Bug 9535 - Patron card creator "Remove duplicates" function doesn't work
This bug was due to a difference in field names used in the item data
for items versus patrons. This patch adds a ternary to discern between
the two.

To test:

Before applying patch:

1. Create a batch of patroncards with one duplicate.
2. Run the de-duplication on the batch.
3. Note that all patrons beyond the first in the batch are now
   deleted.

After applying patch:
4. Repeat steps 1-2.
5. Note that only the duplicate patron is removed.

Signed-off-by: Chris Nighswonger <cnighswonger@foundations.edu>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Tested successfully with both patron card batches and label batches.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Add indentation for readability
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2013-04-14 19:26:09 +12:00
..
Batch.pm Bug 9535 - Patron card creator "Remove duplicates" function doesn't work 2013-04-14 19:26:09 +12:00
Layout.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Lib.pm Bug 6448 [3/3] EAN-13 barcode labels 2012-08-02 18:41:36 +02:00
PDF.pm Bug 6679 - [SIGNED-OFF] fix 4 perlcritic violations in C4/Creators/PDF.pm 2012-09-20 12:17:07 +02:00
Profile.pm Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00
Template.pm Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00