Bug 382035 - DBUS export filtered entries
Summary: DBUS export filtered entries
Alias: None
Product: tellico
Classification: Applications
Component: general (show other bugs)
Version: 3.0.2
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Robby Stephenson
Depends on:
Reported: 2017-07-06 01:03 UTC by Robby Stephenson
Modified: 2017-07-07 02:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: true


Note You need to log in before you can comment on or make changes to this bug.
Description Robby Stephenson 2017-07-06 01:03:19 UTC
From https://forum.kde.org/viewtopic.php?f=200&t=139755

I would like tellico to have a new Dbus interface function: exporting to an xml file only the currently filtered entries.
Nowaday, it is possible to have the IDs of the filtered entries, but this is not very convenient for me.

To give the context: Using tellico in a small school library, I need to do a pdf report of the book collection, in order to print index cards for the books. I did a special xslt report file, The outputed html is ok, but its printing on paper (or pdf) given by tellico is buggy. So I use another tool (wkhtmltopdf) to export to pdf from the html, and all is nice.
But the process of recording the html file and then using the other tool to convert html to pdf is a bit complicated for a normal user. So I would like to automate it in a script, using DBUS. User clic and pdf is ready! I can do this for the whole collection, but not for only the filtered entries. And sometimes user do not want to print index cards for the whole collection.

If I could easily access to an xml version of the filtered entries, then everything would be more simple.
Comment 1 Robby Stephenson 2017-07-07 02:15:25 UTC
Git commit 098d5fe1c57971aae98af6f9d4cfe6f6b2c44202 by Robby Stephenson.
Committed on 07/07/2017 at 02:13.
Pushed by rstephenson into branch 'master'.

Add a DBUS option for filtering exported entries.

Existing DBUS commands continue to work. The 'filtered' boolean
argument defaults to false, meaning no filter. If 'filtered' is true,
then the current filter is used to limit the exported entries.

Also update the documentation.
FIXED-IN: true

M  +4    -0    ChangeLog
M  +12   -6    doc/advanced.docbook
M  +2    -2    src/dbusinterface.cpp
M  +11   -11   src/dbusinterface.h
M  +2    -3    src/exportdialog.cpp
M  +1    -1    src/exportdialog.h
M  +3    -2    src/mainwindow.cpp
M  +1    -1    src/mainwindow.h