|
|
View Full Version : Insert Metadata As Page At Start Of Book
JayLaFunk 02-05-2011, 09:21 AM Hi,
When converting for an EPUB output I have ticked Structure Detection > Insert metadata as page at start of book, so far so good but I always strip the publisher from my metadata, so how do I stop the Unknown publisher from showing up, see below
Gone, Baby, Gone
Patrick Kenzie & Angela Gennaro [4]
Dennis Lehane
Unknown publisher (1998)
theducks 02-05-2011, 10:25 AM Hi,
When converting for an EPUB output I have ticked Structure Detection > Insert metadata as page at start of book, so far so good but I always strip the publisher from my metadata, so how do I stop the Unknown publisher from showing up, see below
Gone, Baby, Gone
Patrick Kenzie & Angela Gennaro [4]
Dennis Lehane
Unknown publisher (1998)
Publisher is a required field (to pass validation) Unknown is the printed value for 'publisher is blank' Put some name in the Publisher field.
DoctorOhh 02-05-2011, 10:41 AM Hi,
When converting for an EPUB output I have ticked Structure Detection > Insert metadata as page at start of book, so far so good but I always strip the publisher from my metadata, so how do I stop the Unknown publisher from showing up,
Find the style.css file in found in either your the calibre program directory something like the following:
C:\Program Files\Calibre2\resources\jacket\
or in your
calibre config directory under \resources\jacket\
Edit this file in a text editor and follow the instructions inside the css file. Find this line and uncomment the display:none line like below and the Publisher info will be removed from future conversions.
table.cbj_header tr.cbj_pubdate {
/* Uncomment the next line to remove 'Published' from banner section */
display:none;
}
JayLaFunk 02-05-2011, 11:14 AM Find the style.css file in found in either your the calibre program directory something like the following:
C:\Program Files\Calibre2\resources\jacket\
or in your
calibre config directory under \resources\jacket\
Edit this file in a text editor and follow the instructions inside the css file. Find this line and uncomment the display:none line like below and the Publisher info will be removed from future conversions.
table.cbj_header tr.cbj_pubdate {
/* Uncomment the next line to remove 'Published' from banner section */
display:none;
}
Have edited with your info, result showing
table.cbj_header tr.cbj_pubdate {
/* Uncomment the next line to remove 'Published' from banner section */
display:none;
}
The unknown publisher is still showing
DoctorOhh 02-05-2011, 11:53 AM The unknown publisher is still showing
Your right, I just tried it and the publisher was still listed in the insert metadata page. It used to work, put in a bug report (http://calibre-ebook.com/bugs).
JayLaFunk 02-05-2011, 12:06 PM Your right, I just tried it and the publisher was still listed in the insert metadata page. It used to work, put in a bug report (http://calibre-ebook.com/bugs).
Have raised a ticket - Ticket #8780
Thanks for the help...
Jay
Perkin 02-05-2011, 12:17 PM If it's only a few books, as a workaround, open them in Sigil, and delete 'Unknown publisher'
in jacket.xhtml
OR
As publisher, in metadata, instead of leaving it blank, give it 'Published'
Then it'll at least look reasonable.
JayLaFunk 02-05-2011, 12:32 PM If it's only a few books, as a workaround, open them in Sigil, and delete 'Unknown publisher'
in jacket.xhtml
OR
As publisher, in metadata, instead of leaving it blank, give it 'Published'
Then it'll at least look reasonable.
My first thought was something like this, it's in all my books so the Sigil way would be too time consuming, I have just inserted a full stop and it looks better than the full "Unknown Publisher"
GRiker 02-05-2011, 01:44 PM table.cbj_header tr.cbj_pubdate {
/* Uncomment the next line to remove 'Published' from banner section */
display:none;
} The unknown publisher is still showing
This was a typo, should have been 'table.cbj_header tr.cbj_pubdata. Patch submitted.
I've submitted a patch to remove 'Unknown Publisher' in the jacket.
G
|