View Single Post
Old 09-01-2019, 04:33 PM   #1
evank
Junior Member
evank began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2018
Device: android phone
Custom sort template for authors and titles?

I suspect I may just be missing it, but is there a place I can put a template (or, failing that, some Python code) to customize how the Title sort and Author sort for books is computed?

Here's my situation:

For authors, I've been adding a "tag" onto the author name for non-author names. For example
Carlos Garcia & Bob Jones (tr) & Carol Smith (intro)
meaning that the book was writting by Carlos Garcia and translated by Bob Jones, with an introduction written by Carol Smith. When sorting the book by author, I just want "Garcia, Carlos". Currently, it gives "Garcia, Carlos & Jones, Bob & Smith, Carol", so I know it's doing some processing, but I'd like to completely ignore any tagged names (unless there are no untagged names, in which case I'd like to use all that have the same tag as the first, usually "ed" for "editor").

For titles, I've got a separate "#edition" column, and I'd like to add that and suppress any subtitle. That is, for
  • title: The Title: With a Subtitle
  • #edition: 2nd ed.

I'd like the sort title to be "The Title (2nd ed.)".

I know that I can create computed columns, but that makes the UI tricky to use, since I can't edit the computed column directly. It would be easier if I could just add a value somewhere in the tweaks.

Any ideas?
evank is offline   Reply With Quote