[Koha-bugs] [Bug 36272] Exporting too many items from item search to barcode file gives "Request-URI Too Long"

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 7 13:46:28 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36272

--- Comment #1 from Magnus Enger <magnus at libriotech.no> ---
Relevant code in
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt:

            $("body").on("click", "#barcodesExportLink", function(e){
                e.preventDefault();
                exportItems('barcodes');
            });

        function exportItems(format) {
            let item_search_selections = JSON.parse(
localStorage.getItem("item_search_selections") ) || [];
            if (item_search_selections.length > 0) {
            var href = '/cgi-bin/koha/catalogue/item-export.pl?format=' +
format;
                href += '&itemnumber=' + Array.from( item_search_selections
).join('&itemnumber=');
                location = href;
            } else {
                $('#format-' + format).prop('checked', true);
                $('#itemsearchform').submit();
                $('#format-html').prop('checked', true);
            }
        }

Export to CSV has the same problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list