This forum has been archived. All content is frozen. Please use KDE Discuss instead.

To print a catalogue

Tags: None
(comma "," separated)
User avatar
annew
Manager
Posts
1155
Karma
11
OS

To print a catalogue

Thu Mar 01, 2012 5:06 pm
Is it possible to print a catalogue using the Image View, but arranging by author rather than by title?


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: To print a catalogue

Thu Mar 01, 2012 8:05 pm
I think you'd need to modify the image report xsl file for your needs /usr/share/kde/apps/tellico/report-templates/Image_List.xsl

from the handbook:
Generating Reports
Tellico can generate various reports about your current collection. The Report Dialog checks for all XSLT templates in the installation path and in $KDEHOME/share/apps/tellico/report-templates/. So you can create new ones, and they are automatically found and included as options in the Report Dialog. Some complex reports may take a while to generate for large collections.
The templates that are installed with Tellico include a list of titles only, the default column view, a group view, a summary of all of the groups and the most popular values in those groups, a loan report, and a large report with cover images. Select the desired template and click the Generate button. Any report may also be printed or saved to an HTML file.


OpenSuse Leap 42.1 x64, Plasma 5.x

robbystephenson
KDE Developer
Posts
384
Karma
1
OS

Re: To print a catalogue

Sat Mar 03, 2012 7:46 pm
annew wrote:Is it possible to print a catalogue using the Image View, but arranging by author rather than by title?
Copy the Image_List.xsl file to ~/.kde/share/apps/tellico/report-templates/ (or wherever your KDE home folder is, and you may have to create the directory) and rename it to Image_List_by_author.xsl. Edit line 138 or so and change it from

Code: Select all
<xsl:sort lang="$lang" select=".//tc:title[1]"/>
to
Code: Select all
<xsl:sort lang="$lang" select=".//tc:author[1]"/>

See if that works for you.
User avatar
annew
Manager
Posts
1155
Karma
11
OS

Re: To print a catalogue

Tue Mar 06, 2012 7:03 pm
That doesn't sound too onerous - I'll have a play with it as soon as I have caught up. I think that a couple more sort templates could be useful. If I'm successful I'll pass them on.


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org
robbystephenson
KDE Developer
Posts
384
Karma
1
OS

Re: To print a catalogue

Wed Mar 07, 2012 5:51 am
annew wrote:That doesn't sound too onerous - I'll have a play with it as soon as I have caught up. I think that a couple more sort templates could be useful. If I'm successful I'll pass them on.
Secondary sorting by title, after sorting by author, can be done by putting the title sort line after the author sort line in the XSL file.
User avatar
annew
Manager
Posts
1155
Karma
11
OS

Re: To print a catalogue

Thu Mar 08, 2012 5:27 pm
Thanks. The other thing that would be really helpful is to be able to add a pagebreak when the author changes. This would make it easy to keep the catalogue up to date without reprinting everything.

So far I haven't worked out how to do that. XML is not a language I've actually worked with, so I'm grokking it slowly :-) and I haven't had much time to spend on it yet.


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell