Koha-clms/t/db_dependent/Biblio
Nick Clemens 0fdac36bbe Bug 26516: Don't accept incorrect values for copyrightdate/publicationyear
The previous patch rejects incorrect values when saving to the db specifically for copyrightdate
An error is thrown for the int conversion when it fails

Rather than catching things when saving we can fix the value when generated, simply returning null when parsing
the record

To test:
1 - Add a new record to Koha making sure data is valid except 260$c:
    198-
2 - Save the record
3 - It fails
4 - Apply this patch
5 - Restart all the thigns
6 - Repeat
7 - Success!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit e1400890ec)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit c56972ddd3)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2020-12-10 14:09:58 +01:00
..
Isbd.t Bug 18951: Adjust Isbd.t 2017-07-24 13:37:18 -03:00
ModBiblioMarc.t Bug 20126: Add simple test for ModBiblioMarc 2018-02-02 12:08:42 -03:00
TransformHtmlToMarc.t Bug 21708: Add a few tests in TransformHtmlToMarc.t 2020-04-03 21:25:53 +00:00
TransformKohaToMarc.t Bug 19096: Adjusts unit tests 2017-12-07 14:44:15 -03:00
TransformMarcToKoha.t Bug 26516: Don't accept incorrect values for copyrightdate/publicationyear 2020-12-10 14:09:58 +01:00