add more debug logging for pdf outline logic
only show long title expansion when title is long enough to need it

[#77410142]
unit tests for single-volume search

[#67575752]
clean up unused imports