Bug 24210 - Export biblio returns empty file after update
Summary: Export biblio returns empty file after update
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-10 23:16 UTC by Bohdan
Modified: 2020-11-30 21:45 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
export options (52.58 KB, image/png)
2019-12-11 09:53 UTC, Bohdan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bohdan 2019-12-10 23:16:30 UTC
I have 17.11 Koha with UNIMARC and it does not export items, only record info. 
I tried updating to 18.11 and 19.11 hoping that this issue wont happen in newer releases. Instead export stopped working at all. The generated file is empty with no records.
However, if I create a fresh instance on 18.11 or 19.11 export works fine and with items.
Comment 1 Katrin Fischer 2019-12-11 07:26:01 UTC
You need to uncheck all item related filters in the export tool (especially branches/libraries at the top). Then you will be able to export items. The GUI will be changed in newer versions to make this easier to see:

See bug 23184.

*** This bug has been marked as a duplicate of bug 23184 ***
Comment 2 Bohdan 2019-12-11 09:04:24 UTC
I did uncheck all filters but the result is still the same - empty file with no data at all.
Comment 3 Katrin Fischer 2019-12-11 09:11:03 UTC
I know it's working fine in our 17.11 installations - please refer to the mailing list for help on this one. In addition, 17.11 is no longer maintained - there will be no bug fixes for this version.
Comment 4 Bohdan 2019-12-11 09:21:34 UTC
Items are not exported in 17.11.
After I updated to 19.11 nothing is exported, I get blank files.
Question is not about 17.11, it's about broken export after Koha update.
Comment 5 Katrin Fischer 2019-12-11 09:36:56 UTC
Please attach a screenshot of the options you selected on the export form.
Comment 6 Bohdan 2019-12-11 09:53:29 UTC
Created attachment 96184 [details]
export options

I tried with and without biblionumbers, with owned items checkbox active and without. The output is still empty.
Comment 7 Katrin Fischer 2019-12-11 11:28:02 UTC
Please try using MARC instead of XML as format.
Also verify that you have biblionumbers in the range given (1-500)
Comment 8 Bohdan 2019-12-11 12:46:42 UTC
Both MARC and XML give the same result.
Biblionumbers in that range exist.
But i cannot open them in Koha anymore.
I get the following error
No biblioitemnumber tag for framework "BOOK" at /usr/share/koha/lib/C4/Biblio.pm line 2779.
Comment 9 Katrin Fischer 2019-12-11 15:52:02 UTC
(In reply to b.pastern4k from comment #8)
> Both MARC and XML give the same result.
> Biblionumbers in that range exist.
> But i cannot open them in Koha anymore.
> I get the following error
> No biblioitemnumber tag for framework "BOOK" at
> /usr/share/koha/lib/C4/Biblio.pm line 2779.

It looks like you have an issue with your data there. Did you remove or change the tag for biblioitemnumber in your frameowrk? In MARC21 this would be 999, it could be something different in UNIMARC.
Comment 10 Katrin Fischer 2019-12-11 16:19:22 UTC
I really think this woudl be better on the mailing list - here it's only me and I am reaching the end of my knowledge. We know it does work in 17.11 as we are using it without issues, so we need to pin down why it's not working in your instance. I highly suspect a setup/configuration/data issue at this point, as you are not able to access the records in your installation either.

For example you could also try it in Biblibre's demo, which is using UNIMARC:
https://koha-community.org/demo/

I've just tested it there and it works pefectly including the item information.
Comment 11 Bohdan 2019-12-12 16:37:10 UTC
It appears the problem was in the default framework.
It did not have item field and biblioitemnumber defined there.
After I added those export worked.
Comment 12 Katrin Fischer 2019-12-12 21:49:20 UTC
(In reply to Bohdan from comment #11)
> It appears the problem was in the default framework.
> It did not have item field and biblioitemnumber defined there.
> After I added those export worked.

Thx for the feedback!