Bug 6936 - Allow to limit on multiple itemtypes when exporting bibliographic records
Summary: Allow to limit on multiple itemtypes when exporting bibliographic records
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: David Cook
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 02:27 UTC by Galen Charlton
Modified: 2023-12-28 20:42 UTC (History)
6 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
This allows multiple item types to be chosen when exporting bibliographic records from the export catalog tool.
Version(s) released in:
22.11.00


Attachments
Bug 6936: Allow multiple itemtypes for bib record export (3.20 KB, patch)
2022-08-08 02:30 UTC, David Cook
Details | Diff | Splinter Review
Bug 6936: Allow multiple itemtypes for bib record export (3.25 KB, patch)
2022-08-18 17:43 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 6936: Allow multiple itemtypes for bib record export (3.30 KB, patch)
2022-08-21 22:01 UTC, Katrin Fischer
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Galen Charlton 2011-09-29 02:27:10 UTC
Currently, when selecting a set of bibs to export by item library or item location, your choices are to export:

[1] Records in all libraries/locations
[2] Records in a given library or location

For example, if the Koha database has locations A, B, and C, you cannot export all bibs that have items in either location B or location C without running the export twice.

Change the export criteria to allow multi-select by library or location would add a small UI efficiency.
Comment 1 Galen Charlton 2011-09-29 02:33:45 UTC
And by "location" I mean item type, currently.
Comment 3 Marc Véron 2016-09-29 18:09:22 UTC
Currently, one ore more libraries can be selected with checkboxes.
However you can only export all or one item type(s) (dropdown list)
Comment 4 Jeremy Evans 2017-09-08 10:13:51 UTC
We would support this.  I just had to run the report 8 times to get the export files needed for 8 item types.
It would be much easier to be able to multi-select the item types and get just one output file.  
In some cases I would also want to be able to filter by shelf location or ccode as well as library/item type.
Comment 5 Jeremy Evans 2017-09-08 10:14:41 UTC
We would support this.  I just had to run the report 8 times to get the export files needed for 8 item types.
It would be much easier to be able to multi-select the item types and get just one output file.  
In some cases I would also want to be able to filter by shelf location or ccode as well as library/item type.
Comment 6 Katrin Fischer 2019-05-04 10:51:02 UTC
Since this bug has been filed multi-select for libraries has been added, multi-select for itemtypes is still missing. Resetting asignee and changing bug title.
Comment 7 David Cook 2022-08-08 02:30:27 UTC
Created attachment 138765 [details] [review]
Bug 6936: Allow multiple itemtypes for bib record export

This patch allows multiple item types to be chosen when exporting
bib records from the Tools module.

Test plan:
0. Apply patch and koha-plack --restart kohadev
1. Go to http://localhost:8081/cgi-bin/koha/tools/export.pl
2. Select "All" for "Item type" and note 435 bibs are exported
3. Select "Books" and note 360 bibs are exported
4. Select "Books" and "Visual Materials" and note 380 bibs are exported
Comment 8 David Cook 2022-08-08 02:32:56 UTC
We might want to show the "Item type" options the same way we show the library branches or the item types on http://localhost:8081/cgi-bin/koha/catalogue/search.pl

I'm going to deploy the current version locally, but open to alternatives for the Bugzilla patch.
Comment 9 Owen Leonard 2022-08-18 17:43:19 UTC
Created attachment 139411 [details] [review]
Bug 6936: Allow multiple itemtypes for bib record export

This patch allows multiple item types to be chosen when exporting
bib records from the Tools module.

Test plan:
0. Apply patch and koha-plack --restart kohadev
1. Go to http://localhost:8081/cgi-bin/koha/tools/export.pl
2. Select "All" for "Item type" and note 435 bibs are exported
3. Select "Books" and note 360 bibs are exported
4. Select "Books" and "Visual Materials" and note 380 bibs are exported

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 10 Katrin Fischer 2022-08-21 22:01:38 UTC
Created attachment 139563 [details] [review]
Bug 6936: Allow multiple itemtypes for bib record export

This patch allows multiple item types to be chosen when exporting
bib records from the Tools module.

Test plan:
0. Apply patch and koha-plack --restart kohadev
1. Go to http://localhost:8081/cgi-bin/koha/tools/export.pl
2. Select "All" for "Item type" and note 435 bibs are exported
3. Select "Books" and note 360 bibs are exported
4. Select "Books" and "Visual Materials" and note 380 bibs are exported

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 11 Katrin Fischer 2022-08-21 22:03:17 UTC
Always amazing to see one of those old 4 digit bugs resolved!
Comment 12 David Cook 2022-08-22 05:31:06 UTC
(In reply to Katrin Fischer from comment #11)
> Always amazing to see one of those old 4 digit bugs resolved!

Agreed!

I did a bit of bug wrangling this morning, and it looks like we have about 500 open bugs with 3-4 digit IDs. (I was surprised that there are still 6 bugs with 3 digit IDs!)
Comment 13 Tomás Cohen Arazi 2022-08-22 16:43:12 UTC
Pushed to master for 22.11.

Nice work everyone, thanks!
Comment 14 Lucas Gass 2022-10-14 22:00:16 UTC
Enhancement will not be backported to 22.05.x series
Comment 15 Caroline Cyr La Rose 2023-05-09 21:05:20 UTC
Manual seems to be already updated for this.