Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-22-2014, 06:30 PM   #1
OldSoldier
Junior Member
OldSoldier began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2014
Device: none
Calibre Catalog Published Date

I finally figured out that the date showing in the calibre catalog (right after the book title) is coming from the date published field. Is there any way to change that?

I'd really like to use my custom field "date written" since it is of much more interest to me and my book group as to when a book was written rather than when the current version was published.

I did search for help on this but couldn't seem to find anything. Of course, it might be that I'm terrible at searching <g>.
OldSoldier is offline   Reply With Quote
Old 06-22-2014, 07:27 PM   #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,558
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@OldSoldier - You should see your Date Written column in the Generate Catalogue->E-Book options>Extra Description note pull down menu. Its in Other Options, at the bottom of the dialogue box, you may have to scroll down to see it.

BR
BetterRed is offline   Reply With Quote
Advert
Old 06-22-2014, 11:54 PM   #3
OldSoldier
Junior Member
OldSoldier began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2014
Device: none
Thank you for your reply, BetterRed. That seems to generate the full descriptions as well which is much more information than I want. All I want to do is generate the simple list of authors and titles but, instead of having the publishing year showing after each title, I want to have the "written" year showing.

I did learn something new from your reply, though, even if it doesn't do what I need right now.
OldSoldier is offline   Reply With Quote
Old 06-23-2014, 12:41 AM   #4
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,558
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@OldSoldier - Aaah, if its just a simple list you're after then use the CSV format, you select the columns you want in the CSV Options tab. It will create a CSV file that you can read with MS Excel or Open Office Calc, Google Docs etc

BR
BetterRed is offline   Reply With Quote
Old 06-23-2014, 01:03 AM   #5
OldSoldier
Junior Member
OldSoldier began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2014
Device: none
I guess I should have provided the background for my question. I keep all of my books on the PC (managed by Calibre). Those that I have yet to read are the only books I keep on my iPad in iBooks. What I was trying to do was generate an ePub listing of the books I have which was easy enough. But then I noticed the date on the listing and was trying to figure out a way to change from the publication year (which is what shows) to a custom date or else a way to remove the date. A .csv file would certainly accomplish showing the custom date but would be less convenient for use. For now I guess I'll just live with it. Maybe the programmers will add a customizable feature for this in the future.

I do thank you for your responses, BR. I have been on the Internet since the mid-80's and yet I am still pleasantly surprised at how many nice people I encounter when asking questions.
OldSoldier is offline   Reply With Quote
Advert
Old 06-23-2014, 01:30 AM   #6
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,558
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@OldSoldier - it can be done, you need to copy the folder ..\Calibre2\resources\catalog from the calibre install directory to the \resources directory in the calibre configuration directory.

On my setup that's copy C:\Program Files\Calibre2\resources\catalog into E:\CalibreData\calibre\resources (yes, I moved the config data out of %APPDATA%)

In the catalog folder you'll find a file template.xhtml. In there you can tailor the catalog to your requirements - eg replace the pubdate column with your #datewritten column. You'll probably want to format the date, you can do that via the template, see format_date in the template tutorial ==>> The calibre template language

The way the 'resources' folder seems to work is that calibre looks for things in the config folder first, and if its not there, it uses the default in the install folder. Very simple, and effective solution.

BR

Last edited by BetterRed; 06-23-2014 at 01:53 AM. Reason: mistake
BetterRed is offline   Reply With Quote
Old 06-23-2014, 04:26 PM   #7
OldSoldier
Junior Member
OldSoldier began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2014
Device: none
I copied my template.xhtml file to my
%UserID%/AppData/Roaming/caliber/resources/catalog directory. I then edited the template.xhtml file to show:

<td class="date">{written}</td> instead of <td class="date">{pubyear}</td>.

I ran Calibre and created a catalog and it is still showing the year published instead of the contents of the "written" field. I know nothing of .xhtml and was just trying a simple substitution. I did try {#written} as well (remembering to close and reopen caliber) but with no effect.

Am I changing the right portion of the template? Should I be changing something else? FWIW, my "written" field is a text field so that I can enter dates like "1308-1321" for "The Divine Comedy" or "1962, 1964" for an omnibus edition of two novels.

Thank you again for your assistance.
OldSoldier is offline   Reply With Quote
Old 06-23-2014, 04:31 PM   #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,785
Karma: 54830978
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 OldSoldier View Post
I copied my template.xhtml file to my
%UserID%/AppData/Roaming/caliber/resources/catalog directory. I then edited the template.xhtml file to show:

<td class="date">{written}</td> instead of <td class="date">{pubyear}</td>.

I ran Calibre and created a catalog and it is still showing the year published instead of the contents of the "written" field. I know nothing of .xhtml and was just trying a simple substitution. I did try {#written} as well (remembering to close and reopen caliber) but with no effect.

Am I changing the right portion of the template? Should I be changing something else? FWIW, my "written" field is a text field so that I can enter dates like "1308-1321" for "The Divine Comedy" or "1962, 1964" for an omnibus edition of two novels.

Thank you again for your assistance.
1) I am not sure if you can use custom fields
2) You might have a datatype clash if you use a text field and it expects a datetype
theducks is offline   Reply With Quote
Old 06-23-2014, 05:51 PM   #9
OldSoldier
Junior Member
OldSoldier began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2014
Device: none
TD, I thought the second issue might be a problem and it seems as if #1 is true too. I guess I can always kludge it by copying the year written into the publication year and just not bothering with an entry for an omnibus (or else just using the date for the first novel in the collection).

Thanks for the reply.
OldSoldier is offline   Reply With Quote
Old 06-23-2014, 07:20 PM   #10
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,558
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
1) I am not sure if you can use custom fields
2) You might have a datatype clash if you use a text field and it expects a datetype
You're right of course - what's in the resources is global, whereas custom columns are library specific. Thus the only columns that one can use in that file are the 'standard columns'

But you can edit that file to remove the columns you don't want (eg I've removed the thumbnail, ratings & comments) and then use the Generate Catalogue->E-Book options>Extra Description note pull down menu to add one extra column, in the OP's case his #datewritten column.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Companion - sort by published date? sherbs Calibre Companion 4 05-14-2014 07:52 AM
ePub Date of publication -> calibre Published? seanos Calibre 6 08-31-2012 11:45 AM
'Published date' and 'originally published date' Arrghus Calibre 2 07-29-2011 12:43 AM
Bulk Changing Published Date To Date hmf Calibre 4 10-19-2010 10:19 PM
Calibre, calibre2opds,and NOOK - best way to keep catalog up to date? rubyv Calibre 8 09-01-2010 12:16 AM


All times are GMT -4. The time now is 10:54 PM.


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