By default, Koha will not export bibs without items as the "owned by libraries" check boxes are selected. This is unclear to users. If I upload a file of bibs to export, and don't uncheck the library boxes, the resulting mrc file will only contain records that have items, all bib records without items will not be included. The check boxes should either be empty by default, or a clarification note should be added stating that itemless bibs will not be exported.
We get quite some support requests about this. If you want to export records that don't have items (electronic resources, serials, set records) you need to explicitly uncheck the already checked branches. From the feedback we receive in support, I'd suggest that we uncheck all branches by default. This means by default you export all records, unless you limit your export. Which seems more logical. I've taken a look at the logic of the script but got quite confused, some help changing this would be appreciated!
This is *bug* even if that box is checked and there are no items, the bibliographic record *should* be exported.
*** Bug 23921 has been marked as a duplicate of this bug. ***
Created attachment 95002 [details] [review] Bug 23184: Don't select branches for export by default This patch changes the include to require passing "selectall=1" to select all items This include is only used in this page, so changes should not have side effects git grep "branch-selector\.inc" This patch also corrects a mismatch in the class names To test: 1 - Browse to Tools->Export data 2 - Note all branches are selected 3 - Note this will exclude records wiuthout items if you click 'Export bibiographic records' 4 - Apply patch 5 - Visit page again 6 - Note no branches are selected by default 7 - Confirm 'Select all/Clear all' still work 8 - Note record with no items are exported by default now
Created attachment 95590 [details] [review] Bug 23184: Don't select branches for export by default This patch changes the include to require passing "selectall=1" to select all items This include is only used in this page, so changes should not have side effects git grep "branch-selector\.inc" This patch also corrects a mismatch in the class names To test: 1 - Browse to Tools->Export data 2 - Note all branches are selected 3 - Note this will exclude records wiuthout items if you click 'Export bibiographic records' 4 - Apply patch 5 - Visit page again 6 - Note no branches are selected by default 7 - Confirm 'Select all/Clear all' still work 8 - Note record with no items are exported by default now Signed-off-by: Myka Kennedy Stephens <mkstephens@lancasterseminary.edu>
Patch works as expected/described.
Created attachment 95647 [details] [review] Bug 23184: Don't select branches for export by default This patch changes the include to require passing "selectall=1" to select all items This include is only used in this page, so changes should not have side effects git grep "branch-selector\.inc" This patch also corrects a mismatch in the class names To test: 1 - Browse to Tools->Export data 2 - Note all branches are selected 3 - Note this will exclude records wiuthout items if you click 'Export bibiographic records' 4 - Apply patch 5 - Visit page again 6 - Note no branches are selected by default 7 - Confirm 'Select all/Clear all' still work 8 - Note record with no items are exported by default now Signed-off-by: Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
I think this could still use an updated description, but that would cause a string change during string freeze ;) Change: With items owned by the following libraries To: Only include records having items from selected libraries Or something in that direction ?
Nice work! Pushed to master for 19.11.00
*** Bug 24210 has been marked as a duplicate of this bug. ***