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, 03: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, 03: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: 8,908
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: 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
 
Advertisement
Old 08-30-2011, 07: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, 09:59 AM   #4
theducks
Grand Sorcerer
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: 15,250
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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, 12:32 PM   #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: 65,452
Karma: 43770933
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
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 online now   Reply With Quote
Old 08-30-2011, 06:16 PM   #6
theducks
Grand Sorcerer
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: 15,250
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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, 11: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, 11:58 AM   #8
theducks
Grand Sorcerer
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: 15,250
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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, 04: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, 04: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, 08:35 PM   #11
jackie_w
Wizard
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: 2,907
Karma: 4329387
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
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 03:53 AM
Any way to show book number in series ? alophind Sony Reader 7 11-25-2010 12:25 PM
search for series number speakingtohe Calibre 4 08-29-2010 02:21 PM
Calibre series by number GeoffC Calibre 8 02-05-2010 07:36 AM
What is the number in series name? coredump Calibre 1 12-21-2009 11:51 AM


All times are GMT -4. The time now is 04:53 AM.


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