|
|
#871 |
|
Addict
![]() ![]() ![]() Posts: 202
Karma: 245
Join Date: Aug 2009
Location: USA
Device: Kobo Libra 2
|
|
|
|
|
|
|
#872 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,475
Karma: 81408765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
When I view composite column with this template in list view, the first entry preceded by a comma. (Doesn't appear in book details or template tester.) Any idea why?
Code:
program: subjects = $#subjects; admintags = $#admintags; new_colls = strcat( if $#booktype=='Fanfiction' then 'Fanfiction, ' fi, if '^Mystery|Cozy Mystery$' inlist subjects then 'Mysteries, ' fi, if '(Juvenile|Young Adult)' inlist subjects then 'Juvenile & Young Adults, ' fi, if '^(Fantasy|Paranormal|Science Fiction)$' inlist subjects && !'Star Trek' inlist subjects then 'Fantasy & Sci-Fi, ' fi, if '^Star Trek$' inlist subjects then 'Star Trek, ' fi, if 'Omnibus' in admintags then 'Omnibuses, ' fi, ); |
|
|
|
|
|
#873 | |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,475
Karma: 81408765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
|
|
|
|
|
#874 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 954
Karma: 1004846
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Let's see try this:
Code:
program:
subjects = $#subjects;
admintags = $#admintags;
new_colls = list_join(', ',
if $#booktype=='Fanfiction' then 'Fanfiction' fi,
if '^Mystery|Cozy Mystery$' inlist subjects then 'Mysteries' fi,
if '(Juvenile|Young Adult)' inlist subjects then 'Juvenile & Young Adults' fi,
if '^(Fantasy|Paranormal|Science Fiction)$' inlist subjects && !'Star Trek' inlist subjects then 'Fantasy & Sci-Fi' fi,
if '^Star Trek$' inlist subjects then 'Star Trek' fi,
if 'Omnibus' in admintags then 'Omnibuses' fi
);
|
|
|
|
|
|
#875 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,475
Karma: 81408765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I had to add a ',' to the end of each line but it worked! thank you
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Library Management: various questions not worth their own thread | ownedbycats | Library Management | 253 | 10-21-2025 09:15 AM |
| [Metadata Source Plugin] Questions regarding parse select, docs and ref templates | Boilerplate4U | Development | 13 | 07-07-2020 03:35 AM |
| Questions on Kobo [Interfered with another thread topic] | spdavies | Kobo Reader | 8 | 10-12-2014 12:37 PM |
| [OLD Thread] Some questions before buying the fire. | darthreader13 | Amazon Fire | 7 | 05-10-2013 10:19 PM |
| Thread management questions | meme | Feedback | 6 | 01-31-2011 06:07 PM |