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 10-07-2014, 02:00 AM   #1
millan
Enthusiast
millan began at the beginning.
 
millan's Avatar
 
Posts: 35
Karma: 10
Join Date: Oct 2014
Device: none
Question How to format pubdate so I only get year in the catalog output please?

How to format pubdate so I only get year in the catalog output please?

not like:
PHP Code:
'2014-03-04T00:00:00+02:00
'
2003-05-13T00:00:00+03:00 
I want just :
2014
2003
etc

Thank you in advance
millan is offline   Reply With Quote
Old 10-07-2014, 06:12 AM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,532
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
From ===>>> The calibre template language — Using functions in templates

{pubdate:format_date(yyyy)}

BR

Last edited by BetterRed; 10-07-2014 at 06:14 AM.
BetterRed is offline   Reply With Quote
Advert
Old 10-08-2014, 06:23 AM   #3
millan
Enthusiast
millan began at the beginning.
 
millan's Avatar
 
Posts: 35
Karma: 10
Join Date: Oct 2014
Device: none
Quote:
Originally Posted by BetterRed View Post
From ===>>> The calibre template language — Using functions in templates

{pubdate:format_date(yyyy)}

BR
Thank you for your prompt reply, BetterRed

I don't even know where to start.

The page link has 19 page of info and doesn't tell me where the editing template is, if there's one

Would you please tell me step by step how to get to functions in templates such as:

1) Go to "Preferences"
2) do this in "change calibre behavior"
3) do that in "import/export"
millan is offline   Reply With Quote
Old 10-08-2014, 09:48 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,761
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
By 'Catalog output' you mean the one created using the right click option on the conversion icon?

or do you mean 'On the Spreadsheet' view? Preferences: Tweaks: (it is one of the Date format tweaks
theducks is online now   Reply With Quote
Old 10-08-2014, 12:02 PM   #5
millan
Enthusiast
millan began at the beginning.
 
millan's Avatar
 
Posts: 35
Karma: 10
Join Date: Oct 2014
Device: none
Question

Quote:
Originally Posted by theducks View Post
By 'Catalog output' you mean the one created using the right click option on the conversion icon?

or do you mean 'On the Spreadsheet' view? Preferences: Tweaks: (it is one of the Date format tweaks
on the Spreadsheet output, I get long pubdate like:

Code:
'2014-03-04T00:00:00+02:00
'2003-05-13T00:00:00+03:00
and I'd like to have like:
Code:
2014
2003
since I have more than few hundred book/articles list and growing every so often which also means I update the catalog output so often, I need a permanent solution if possible in the output file which I then save .xls as html and search the contents via that html file
millan is offline   Reply With Quote
Advert
Old 10-08-2014, 02:02 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,761
Karma: 54401244
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 millan View Post
on the Spreadsheet output, I get long pubdate like:

Code:
'2014-03-04T00:00:00+02:00
'2003-05-13T00:00:00+03:00
and I'd like to have like:
Code:
2014
2003
since I have more than few hundred book/articles list and growing every so often which also means I update the catalog output so often, I need a permanent solution if possible in the output file which I then save .xls as html and search the contents via that html file
you must be using the CSV output of the Catalog out.
That is a 'timestamp' format

You will probably have to clean it up using the substring function of your spreadsheet.
theducks is online now   Reply With Quote
Old 10-08-2014, 04:09 PM   #7
millan
Enthusiast
millan began at the beginning.
 
millan's Avatar
 
Posts: 35
Karma: 10
Join Date: Oct 2014
Device: none
Question

Quote:
Originally Posted by theducks View Post
you must be using the CSV output of the Catalog out.
That is a 'timestamp' format

You will probably have to clean it up using the substring function of your spreadsheet.
There are hundreds of hundreds lines "to be cleaned"

I'm trying to avoid that.

Any other options like editing the output template or something please?
millan is offline   Reply With Quote
Old 10-08-2014, 04:23 PM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,728
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Create a new custom column "built from other columns" (not like tags). Set the template for that column to what BetterRed suggested:
Code:
{pubdate:format_date(yyyy)}
Then export that column instead of pubdate
chaley is offline   Reply With Quote
Old 10-08-2014, 04:59 PM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,532
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@millan - chaley beat me to it

But my bad I should have deduced you were referring to a CSV catalogue

BR

Last edited by BetterRed; 10-08-2014 at 05:39 PM. Reason: ack chaley
BetterRed is offline   Reply With Quote
Old 10-09-2014, 01:16 PM   #10
millan
Enthusiast
millan began at the beginning.
 
millan's Avatar
 
Posts: 35
Karma: 10
Join Date: Oct 2014
Device: none
Arrow

Thank you all again.
I think I'll be able to start doing it.
Would you please tell me how to get to the interface for the below point please:

Code:
Create a new custom column "built from other columns"
millan is offline   Reply With Quote
Old 10-09-2014, 06:58 PM   #11
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,532
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by millan View Post
Thank you all again.
I think I'll be able to start doing it.
Would you please tell me how to get to the interface for the below point please:

Code:
Create a new custom column "built from other columns"
@millan - see attachment

BR
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	826
Size:	96.5 KB
ID:	129442  
BetterRed is offline   Reply With Quote
Old 10-10-2014, 12:05 AM   #12
millan
Enthusiast
millan began at the beginning.
 
millan's Avatar
 
Posts: 35
Karma: 10
Join Date: Oct 2014
Device: none
Quote:
Originally Posted by BetterRed View Post
@millan - see attachment

BR
Thank you the perfect visual, BetterRed

All the best from an ex Sydney, NSW Resident
millan is offline   Reply With Quote
Old 10-31-2014, 02:47 AM   #13
millan
Enthusiast
millan began at the beginning.
 
millan's Avatar
 
Posts: 35
Karma: 10
Join Date: Oct 2014
Device: none
It was working Ok.
I have checked it today
some of the items under Year Published Column comes up as "BAD DATE" as shown below.

Any solution please?



Last edited by millan; 10-31-2014 at 02:56 AM.
millan is offline   Reply With Quote
Old 10-31-2014, 03:06 AM   #14
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,532
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@millan - could you put the database published date into the book list alongside your Year Published - right click column headings and select Show Column->Published, and post a screen shot showing both.

Also have a look at the Published Date in Metadata edit for one of those BAD DATE's

I suspect the Year Published template needs to be adjusted to cope with undefined dates or something like that

BR
BetterRed is offline   Reply With Quote
Old 10-31-2014, 03:33 AM   #15
millan
Enthusiast
millan began at the beginning.
 
millan's Avatar
 
Posts: 35
Karma: 10
Join Date: Oct 2014
Device: none
Thank you for your prompt response BetterRed

I added the published date into the book list alongside my Year Published -

had a look at the Published Date in Metadata changed the days of the month for one of those BAD DATE's

I have even deleted the Year Published column and recreated again

Do you think it might be something to do with my installation of the Calibre's new update I have installed today?

posting the screen shot showing both


millan 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
Any way to change the title output for the catalog? MiniMouse Library Management 2 03-02-2014 10:31 AM
New Feature Request - Save Catalog Output Options nynaevelan Library Management 0 02-11-2012 12:33 PM
Calibre catalog format skipray Library Management 1 02-17-2011 01:10 AM
Problem making catalog ePub output slantybard Library Management 6 02-04-2011 07:27 PM
Calibre Catalog Output Now Flags Wishlist Tom SKP Library Management 0 11-20-2010 09:10 AM


All times are GMT -4. The time now is 11:55 AM.


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