Koha/t/db_dependent
Katrin Fischer a529262501 Bug 7576: Add ISSN to SearchForTitleIn preference
Adds a new placeholder {ISSN} to the system preference SearchForTitleIn.
For a record with multiple ISSNs only the first ISSN will be used.

Addition: Makes a small change to GetMarcControlnumber so that it checks for
NORMARC too. If you set your system preference to NORMARC, it should output
{CONTROLNUMBER} correctly now.

For testing add following code to the system preference and check output
of SearchForTitleIn for different records in your OPAC and all 3 available
views (normal, MARC and ISBD):
<li>ISSN: {ISSN}</li>
<li>ISBN: {ISBN}</li>
<li>001: {CONTROLNUMBER}</li>

Patch also includes some unit tests:
perl t/db_dependent/Biblio.t

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
Tested with marcflavour = NORMARC, on one book and one periodical record.

* Book

- Before the patch:
ISSN: {ISSN}
ISBN: 0375726446
001:

- After the patch:
ISSN:
ISBN: 0375726446
001: 022976914

* Journal

- Before the patch:
ISSN: {ISSN}
ISBN:
001:

- After the patch:
ISSN: 1890-6931
ISBN:
001: 080721370

Looks good in all 3 views! Thanks for fixing the 001 thing for NORMARC!

Also tested with marcflavour = MARC21, on the same records with the same good
results. Signing off!

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Tested marcflavour= UNIMARC, works fine too
2012-02-27 11:44:20 +01:00
..
Labels Bug 7215 : The Module changed, but the tests weren't updated to reflect that 2011-12-13 14:25:46 +01:00
LDAP
lib Bug 6875 de nesting C4::Biblio 2012-02-20 16:35:17 +01:00
needs_user_input
Accounts.t
Acquisition.t Bug 5347: Followup change class for message + Unit test 2012-01-20 14:12:28 +01:00
Amazon.t
Auth.t
Auth_with_cas.t
BackgroundJob.t bug 5327 add tests for C4/BackgroundJob.pm 2012-01-17 15:31:56 +01:00
Barcodes.t
Biblio.t Bug 7576: Add ISSN to SearchForTitleIn preference 2012-02-27 11:44:20 +01:00
Budgets.t
Circulation.t Bug 6137 follow-up, moving new test to db_dependent directory 2012-02-17 18:40:33 +01:00
Context.t
Csv.t Bug 5327 - move another test around 2012-02-01 18:15:21 +01:00
database_dependent.pl
External_BakerTaylor.t Bug 5327: Unit tests for C4/Exteral/BakerTaylor.pm 2011-12-07 16:17:05 +01:00
Koha.t bug_6253: Unified member Search() 2011-10-19 16:23:02 +13:00
Koha_template_plugin_KohaDates.t Bug 929 : Follow up, shifting test 2012-02-07 16:42:22 +01:00
Log.t Fixing a broken test 2011-09-26 11:55:58 +13:00
Members.t Bug 7333 - modifying Members.t to use a branchcode that exists in the sample data 2011-12-15 18:13:29 +01:00
Record.t Bug 7141 : Changing test to match new formatting of xsl style sheet 2011-12-08 10:51:25 +01:00
Reports.t Bug 5327: Shifting a db dependent test to the right place 2012-02-01 18:15:19 +01:00
Reports_Guided.t
Reserves.t bug_2830: Remove reserve when checking out if the borrower is not the first one in the reserve queue 2011-12-16 16:21:38 +01:00
Search.t Bug 7333 - Fixing up db_dependent/Search.t to use sample data Thanks to Chris N. for helping figure out that it was because there were no French stopwords in the DB that the test was failing. 2011-12-27 18:41:10 +01:00
Serials.t added unit tests for C4/Serials.pm 2012-01-31 17:21:50 +01:00
Serials_2.t
Service.t
SIP_ILS.t Bug 5327 : Removing a broken test 2012-02-13 15:04:43 +01:00
SQLHelper.t Bug 5327 : Fixing unit test for SQLHelper.pm 2011-12-07 16:17:10 +01:00
Suggestions.t Bug 5346: Linking suggestions and orders. 2012-02-17 10:27:52 +01:00
sysprefs.t Bug 6132: Add unit test for system preferences 2012-01-16 14:52:24 +01:00
Tags.t
UploadedFile.t t/UploadedFile, updated comment 2011-12-07 16:37:31 +01:00
VirtualShelves.t
VirtualShelves_Page.t
XISBN.t