I adapted
Frostschutz' AutoShelf beta for usage with KSM. The difference to the original is that the user decides when to update the collections rather then having them updated each time the reader is unplugged.
Installation:
copy the script autoshelf_on_demand.sh to .kobo\kbmenu\scripts_intern\returntests (under KSM 8 copy the script to .adds\kbmenu_user\returntests)
Usage:
select (KSM home) scripts > tests > returntests.msh > autoshelf on demand.sh (under KSM 08: select (KSM home) user scripts > tests > returntests user.msh > autoshelf on demand 03.sh)
(During the update the kobo update animation is shown! Don't worry! [This is not the case with later versions.])
Note [only for older versions of AutoShelf]: If after AutoShelf has created the shelves/collections, you replace the newly modified database by the previously backed up version and want AutoShelf to do the job again (for playing around/testing), you have first to delete the file autoshelf_md5sum in .kobo\kbmenu\log (You can do this on the reader via "scripts > browse > browse kbmenu.msh > log", toggle to "delete" and select "autoshelf_md5sum")
Only for KSM version 06.
Edit: I added an updated version (based on KoboRoot-AutoShelf-3.16.10.zip). I expect it to work on KSM 06, 07, 08 (path name differs in 07 and 08 from that in the above description, of course). I left the .autoshelf-uninstall thing as it is, even though this is a little strange for a menu driven approach.
Before using this package, deinstall the regular AutoShelf correctly in order to avoid conflicts.