Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 08-30-2011, 02:29 AM   #1
M4cc45
Member
M4cc45 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: Kindle
Show series number but not if they aren't in a series?

I hope this makes sense!

Basically I have:

Spoiler:
#{series_index} - {title}


This works fine however it numbers everything even if the books aren't in a series (i.e. one offs).

I wondered if there was a way to do the above if it has a series attached to it but ignore it if it doesn't?

Thanks



M4cc45
M4cc45 is offline   Reply With Quote
Old 08-30-2011, 02:55 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by M4cc45 View Post
I wondered if there was a way to do the above if it has a series attached to it but ignore it if it doesn't?
Why you would want to have just a series number is beyond me but here ya go.

Just series number and Title
Code:
{series_index:05.2f||-}{title}
Series and series # and Title
Code:
{series:||-}{series_index:05.2f||-}{title}
DoctorOhh is offline   Reply With Quote
Advert
Old 08-30-2011, 06:21 AM   #3
M4cc45
Member
M4cc45 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: Kindle
Thanks - the reason why is because I put them all in folders.

Something along these lines:

Series A \ #1 - Book Name
Author Name \ Book Name

I'll give it a whirl when I get home!



M4cc45
M4cc45 is offline   Reply With Quote
Old 08-30-2011, 08:59 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by M4cc45 View Post
Thanks - the reason why is because I put them all in folders.

Something along these lines:

Series A \ #1 - Book Name
Author Name \ Book Name

I'll give it a whirl when I get home!



M4cc45
Calibre can folderize based upon any data field (that exists in your DB).

Code:
{series[0]}-series/{series}/{series_index:0>2s}-{title}_{id}/{title}_{authors}
(note the mix of Literals and field data) Calibre Rocks with flexibility
theducks is offline   Reply With Quote
Old 08-30-2011, 11:32 AM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by theducks View Post
Calibre can folderize based upon any data field (that exists in your DB).

Code:
{series[0]}-series/{series}/{series_index:0>2s}-{title}_{id}/{title}_{authors}
(note the mix of Literals and field data) Calibre Rocks with flexibility
I'm impressed - you've invented a new word .
HarryT is offline   Reply With Quote
Advert
Old 08-30-2011, 05:16 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by HarryT View Post
I'm impressed - you've invented a new word .
It's my inventive spirit
theducks is offline   Reply With Quote
Old 09-03-2011, 10:23 AM   #7
M4cc45
Member
M4cc45 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: Kindle
Hi,

Well I've now got around to using the code. The only problem I now have is that the code does:

01.00-Name of book

Is there any way to change this to be #1 or 01 - rather than having the .00 ?

Many thanks,



M4cc45
M4cc45 is offline   Reply With Quote
Old 09-03-2011, 10:58 AM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by M4cc45 View Post
Hi,

Well I've now got around to using the code. The only problem I now have is that the code does:

01.00-Name of book

Is there any way to change this to be #1 or 01 - rather than having the .00 ?

Many thanks,



M4cc45
What code, Walts?

the 5.2f says: 5 digits including the decimal point with 2 of those digits on the right

use the: >02s notation for 2 digits and a leading 0 pad if needed (if you device sorts on file name, you want the lead 0 on 1-9
theducks is offline   Reply With Quote
Old 09-03-2011, 03:06 PM   #9
M4cc45
Member
M4cc45 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: Kindle
Ah okay

{series_index:05.2f||-}{title}

Was the code I was referring to - it kinda makes sense now!


Thanks,


M4cc45
M4cc45 is offline   Reply With Quote
Old 09-03-2011, 03:17 PM   #10
M4cc45
Member
M4cc45 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: Kindle
{series_index:02.0f||-}{title}

If I changed it to the above should that just give me:

01-Book Name?

Using a Kindle by the way!



M4cc45
M4cc45 is offline   Reply With Quote
Old 09-03-2011, 07:35 PM   #11
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,171
Karma: 16228536
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by M4cc45 View Post
{series_index:02.0f||-}{title}

If I changed it to the above should that just give me:

01-Book Name?
If you want 2 digits with a leading zero and without the decimal places, I think the usual recommended solution is
Code:
{series_index:0>2s||-}{title}
jackie_w is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
search series number Stampercam Calibre 2 05-30-2011 02:53 AM
Any way to show book number in series ? alophind Sony Reader 7 11-25-2010 11:25 AM
search for series number speakingtohe Calibre 4 08-29-2010 01:21 PM
Calibre series by number GeoffC Calibre 8 02-05-2010 06:36 AM
What is the number in series name? coredump Calibre 1 12-21-2009 10:51 AM


All times are GMT -4. The time now is 07:09 PM.


MobileRead.com is a privately owned, operated and funded community.