Koha-clms/tools
Fridolin Somers 837ea17384 Bug 12913 - wrong inventory results when notforloan filter is not used
In inventory tool, there is a test on scanned items notforloan value : if the value is not one of authorized values, the inventory results displays the problem "Change item status".
The bug is that if notforloan filter is not used, the notforloan values array is not filled and so all scanned items are marked with this problem.

Test plan :
- Check you have in default framework an item subfield mapped with items.notforloan and with an authorized value catergory, for example 'NOTFORLOAN'
- Check the authorized value category has at least value '0'
- Create a new value in this category, for example '9'
- Create a biblio with default framework
- Create an item with barcode='000AAA1', callnumber='ZZZAAA1' and notforloan=0
- Create an item with barcode='000AAA2', callnumber='ZZZAAA2' and notforloan=9
- Delete new value created above, for example '9'
- Create a file 'barecodes.txt' containing 2 lines '000AAA1' and '000AAA2'
- Go to inventory tool : /cgi-bin/koha/tools/inventory.pl
- Choose file in 'Barcode file'
- Enter item callnumber between 'ZZZ' and 'ZZZZ'
- Check 'Compare barcodes list to results'
- Submit
=> without patch, you get 2 results with problem 'Change item status' even for item with notforloan=0
=> with patch, you get 1 result with 'Change item status' on item with notforloan=9

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Mason James <mtj@kohaaloha.com>
2017-07-30 06:46:09 +12:00
..
csv-profiles MT2116: Addons to the CSV export 2010-02-17 07:51:33 -05:00
quotes Bug 17411: Remove 3 other occurrences of exit 1 2016-10-22 15:19:23 +02:00
ajax-inventory.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
automatic_item_modification_by_age.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
background-job-progress.pl Bug 14589: Adjust authorities_merge_ajax and replace some indirect syntax 2015-11-02 12:49:13 -03:00
batchMod.pl Bug 11490: Split MaxItemsForBatch into 2 prefs to clarify things 2016-08-05 08:41:40 +02:00
batch_delete_records.pl Bug 18329 - Batch record deletion broken 2017-05-08 15:38:45 +12:00
batch_record_modification.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
batch_records_ajax.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
cleanborrowers.pl Bug 10612: (QA followup) 2016-04-01 19:52:14 +00:00
copy-holidays.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
csv-profiles.pl Bug 15451: Better error handling 2017-04-30 23:20:02 +12:00
exceptionHolidays.pl Bug 16154: Fix some other occurrences 2016-04-26 23:16:44 +00:00
export.pl Bug 18312: Fix export unless a file is supplied 2017-04-30 23:20:03 +12:00
holidays.pl Bug 16154: Fix some other occurrences 2016-04-26 23:16:44 +00:00
import_borrowers.pl Bug 17116: Fix CSRF in import_borrowers.pl 2017-05-03 14:28:37 +12:00
inventory.pl Bug 12913 - wrong inventory results when notforloan filter is not used 2017-07-30 06:46:09 +12:00
koha-news.pl Bug 16550: Clean the tests 2016-05-23 17:37:48 +00:00
letter.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
manage-marc-import.pl Bug 9259: Ability to delete a staged file once it has been cleaned 2016-08-01 10:59:18 +02:00
marc_modification_templates.pl Bug 16295: Fix access to MMT admin page 2017-07-30 06:38:16 +12:00
modborrowers.pl Bug 16681 - Allow update of opacnote via batch patron modification tool 2016-08-01 13:31:22 +02:00
newHolidays.pl Bug 14954: Remove C4::Dates from holiday related files in folder tools 2015-11-17 23:44:31 -03:00
overduerules.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
picture-upload.pl Bug 17146: Fix CSRF in picture-upload.pl 2017-05-03 14:35:48 +12:00
quotes-upload.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
quotes.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
scheduler.pl Bug 16154: Fix some other occurrences 2016-04-26 23:16:44 +00:00
showdiffmarc.pl Bug 15005: Replace $ENV{SCRIPT_NAME} with the hardcoded script paths 2015-10-19 09:36:43 -03:00
stage-marc-import.pl Bug 15005: Replace $ENV{SCRIPT_NAME} with the hardcoded script paths 2015-10-19 09:36:43 -03:00
tools-home.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
upload-cover-image.pl Bug 14321: Integrate Upload.pm into Koha 2015-09-25 12:02:52 -03:00
upload-file.pl Bug 14686: [QA Follow-up] Move allows_add_by to Upload.pm 2016-04-27 16:14:18 +00:00
upload.pl Bug 14686: Add Upload to Tools menu 2016-04-27 16:14:17 +00:00
viewlog.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00