Koha/tools
Katrin Fischer 4a2cc4e903
Bug 14369: Only show 'Create labels' link on staged records import when status is imported
The label creator won't be able to add a batch for items, if they are
not imported into the database (missing itemnumber). This patch hides
the link, when the status is not imported, to avoid the error situation.

To test:
- Export a record with items from your Koha installation
- Delete items and record from Koha
- Stage the record with the items - the "Create labels" link should be showing
- Try to create the labels - note error
- Apply patch
- Retry - the link should no longer show
- Import the records - the link should show now
- Create labels again - a new batch should have been created
- Verify the link on the batch # leads to the batch in the labels module

Bonus: Moves the message from the .pl file to the template to make
it translatable.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-21 12:28:56 +01:00
..
csv-profiles
quotes Bug 20017: use Modern::Perl in Tools perl scripts 2018-02-05 09:46:45 -03:00
access_files.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00: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 16889: Remove C4::Items::biblioitems_columns and use Koha::Biblioitems->columns instead 2016-07-15 18:12:13 +00:00
background-job-progress.pl Bug 20017: use Modern::Perl in Tools perl scripts 2018-02-05 09:46:45 -03:00
batch_delete_records.pl Bug 23463: Fix safe_return return value in deletion tools 2020-03-23 09:26:33 +00:00
batch_extend_due_dates.pl Bug 25020: Preserve time part when batch extending due dates 2020-04-03 14:29:00 +01:00
batch_record_modification.pl Bug 18127: Add batch modified records to an existing list 2020-03-10 15:20:18 +00:00
batch_records_ajax.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
batchMod.pl Bug 23463: Fix safe_return return value in deletion tools 2020-03-23 09:26:33 +00:00
cleanborrowers.pl Bug 16966: move parameters to hashref 2017-03-03 17:20:05 +00:00
copy-holidays.pl Bug 24878: Add auth check for copy-holidays 2020-03-26 11:35:11 +00:00
csv-profiles.pl Bug 8612: [Follow-up] Make usage and type different columns in table 2017-06-05 12:02:08 -03:00
exceptionHolidays.pl Bug 24878: Add authentication checks to the calendar tool 2020-03-26 11:35:00 +00:00
export.pl Bug 14647: (follow-up) Changes to script 2020-02-20 08:59:31 +00:00
holidays.pl Bug 20017: use Modern::Perl in Tools perl scripts 2018-02-05 09:46:45 -03:00
import_borrowers.pl Bug 23473: (follow-up) check if overwrite_passwords is set 2020-03-27 12:23:00 +00:00
inventory.pl Bug 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
koha-news.pl Bug 22888: Use DataTables for Koha news table filtering 2019-06-24 14:58:02 +01:00
letter.pl Bug 4461: (follow-up) Creating sample notice and other fixes 2020-04-06 11:16:38 +01:00
manage-marc-import.pl Bug 14369: Only show 'Create labels' link on staged records import when status is imported 2020-04-21 12:28:56 +01:00
marc_modification_templates.pl Bug 13560: Add an 'Add' option for marc modification templates 2018-07-19 17:22:18 +00:00
modborrowers.pl Bug 20443: Use search_with_library_limits for attribute types 2020-03-23 13:49:22 +00:00
newHolidays.pl Bug 24878: Add authentication checks to the calendar tool 2020-03-26 11:35:00 +00:00
overduerules.pl Bug 21746: Remove NO_LIBRARY_SET 2020-03-02 10:20:42 +00:00
picture-upload.pl Bug 9422: Don't allow access to 'Upload patron images' when patronimages syspref is off 2020-04-03 14:26:32 +01:00
quotes-upload.pl Bug 20017: use Modern::Perl in Tools perl scripts 2018-02-05 09:46:45 -03:00
quotes.pl Bug 20017: use Modern::Perl in Tools perl scripts 2018-02-05 09:46:45 -03:00
scheduler.pl Bug 20017: use Modern::Perl in Tools perl scripts 2018-02-05 09:46:45 -03:00
showdiffmarc.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
stage-marc-import.pl Bug 20415: Remove UseKohaPlugins system preference 2020-03-26 11:42:02 +00:00
stockrotation.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
tools-home.pl Bug 18403: Patron reviews 2018-02-12 15:41:41 -03:00
upload-cover-image.pl Bug 20564: Don't use system to unzip files 2018-09-19 13:54:26 +00:00
upload-file.pl Bug 17501: Rename Upload to Uploader 2017-01-20 14:20:06 +00:00
upload.pl Bug 19633: Use alphanumeric error codes in upload 2018-08-10 10:10:46 +00:00
viewlog.pl Bug 10352: Get add operations too 2020-01-10 08:37:19 +00:00