GwR updates to catalog

This commit is contained in:
GRiker 2010-11-17 03:58:40 -07:00
parent 179f8853dc
commit 6cca4b4d97
2 changed files with 17 additions and 17 deletions

View File

@ -41,12 +41,11 @@ p.formats {
text-indent: 0.0in; text-indent: 0.0in;
} }
/*
div.description > p:first-child { div.description > p:first-child {
margin: 0 0 0 0; margin: 0 0 0 0;
text-indent: 0em; text-indent: 0em;
} }
*/
div.description { div.description {
margin: 0 0 0 0; margin: 0 0 0 0;
text-indent: 1em; text-indent: 1em;
@ -133,5 +132,5 @@ td.rating {
text-align: center; text-align: center;
} }
td.thumbnail img { td.thumbnail img {
-webkit-box-shadow: 6px 6px 6px #888; -webkit-box-shadow: 4px 4px 12px #999;
} }

View File

@ -1870,7 +1870,7 @@ class EPUB_MOBI(CatalogPlugin):
ptc = 0 ptc = 0
# book with read|reading|unread symbol or wishlist item # book with read|reading|unread symbol or wishlist item
if self.opts.wishlist_tag in book['tags']: if self.opts.wishlist_tag in book.get('tags', []):
pBookTag['class'] = "wishlist_item" pBookTag['class'] = "wishlist_item"
pBookTag.insert(ptc,NavigableString(self.MISSING_SYMBOL)) pBookTag.insert(ptc,NavigableString(self.MISSING_SYMBOL))
ptc += 1 ptc += 1
@ -2177,7 +2177,7 @@ class EPUB_MOBI(CatalogPlugin):
ptc = 0 ptc = 0
# book with read|reading|unread symbol or wishlist item # book with read|reading|unread symbol or wishlist item
if self.opts.wishlist_tag in new_entry['tags']: if self.opts.wishlist_tag in new_entry.get('tags', []):
pBookTag['class'] = "wishlist_item" pBookTag['class'] = "wishlist_item"
pBookTag.insert(ptc,NavigableString(self.MISSING_SYMBOL)) pBookTag.insert(ptc,NavigableString(self.MISSING_SYMBOL))
ptc += 1 ptc += 1
@ -2228,7 +2228,7 @@ class EPUB_MOBI(CatalogPlugin):
ptc = 0 ptc = 0
# book with read|reading|unread symbol or wishlist item # book with read|reading|unread symbol or wishlist item
if self.opts.wishlist_tag in new_entry['tags']: if self.opts.wishlist_tag in new_entry.get('tags', []):
pBookTag['class'] = "wishlist_item" pBookTag['class'] = "wishlist_item"
pBookTag.insert(ptc,NavigableString(self.MISSING_SYMBOL)) pBookTag.insert(ptc,NavigableString(self.MISSING_SYMBOL))
ptc += 1 ptc += 1
@ -2682,7 +2682,7 @@ class EPUB_MOBI(CatalogPlugin):
book['read'] = False book['read'] = False
# book with read|reading|unread symbol or wishlist item # book with read|reading|unread symbol or wishlist item
if self.opts.wishlist_tag in book['tags']: if self.opts.wishlist_tag in book.get('tags', []):
pBookTag['class'] = "wishlist_item" pBookTag['class'] = "wishlist_item"
pBookTag.insert(ptc,NavigableString(self.MISSING_SYMBOL)) pBookTag.insert(ptc,NavigableString(self.MISSING_SYMBOL))
ptc += 1 ptc += 1
@ -3975,7 +3975,7 @@ class EPUB_MOBI(CatalogPlugin):
for x in output_profiles(): for x in output_profiles():
if x.short_name == self.opts.output_profile: if x.short_name == self.opts.output_profile:
# .9" width aspect ratio: 3:4 # .9" width aspect ratio: 3:4
self.thumbWidth = int(x.dpi * .9) self.thumbWidth = int(x.dpi * 1)
self.thumbHeight = int(self.thumbWidth * 1.33) self.thumbHeight = int(self.thumbWidth * 1.33)
if 'kindle' in x.short_name and self.opts.fmt == 'mobi': if 'kindle' in x.short_name and self.opts.fmt == 'mobi':
# Kindle DPI appears to be off by a factor of 2 # Kindle DPI appears to be off by a factor of 2
@ -4180,7 +4180,8 @@ class EPUB_MOBI(CatalogPlugin):
pBookTag = Tag(soup, "p") pBookTag = Tag(soup, "p")
ptc = 0 ptc = 0
# book with read|reading|unread symbol or wishlist item '''
# This if clause does not display MISSING_SYMBOL for wishlist items
# If this is the wishlist_tag genre, don't show missing symbols # If this is the wishlist_tag genre, don't show missing symbols
# normalized_wishlist_tag = self.genre_tags_dict[self.opts.wishlist_tag] # normalized_wishlist_tag = self.genre_tags_dict[self.opts.wishlist_tag]
if self.opts.wishlist_tag in book['tags'] and \ if self.opts.wishlist_tag in book['tags'] and \
@ -4188,6 +4189,13 @@ class EPUB_MOBI(CatalogPlugin):
pBookTag['class'] = "wishlist_item" pBookTag['class'] = "wishlist_item"
pBookTag.insert(ptc,NavigableString(self.MISSING_SYMBOL)) pBookTag.insert(ptc,NavigableString(self.MISSING_SYMBOL))
ptc += 1 ptc += 1
'''
# book with read|reading|unread symbol or wishlist item
if self.opts.wishlist_tag in book.get('tags', []):
pBookTag['class'] = "wishlist_item"
pBookTag.insert(ptc,NavigableString(self.MISSING_SYMBOL))
ptc += 1
else: else:
if book['read']: if book['read']:
# check mark # check mark
@ -4252,32 +4260,25 @@ class EPUB_MOBI(CatalogPlugin):
<p class="formats">&nbsp;</p> <p class="formats">&nbsp;</p>
<table width="100%" border="0"> <table width="100%" border="0">
<tr> <tr>
<td class="thumbnail" rowspan="7"></td> <td class="thumbnail" rowspan="7" width="40%"></td>
<!--td>&nbsp;</td-->
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<!--td>&nbsp;</td-->
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<!--td>Publisher</td-->
<td class="publisher"></td> <td class="publisher"></td>
</tr> </tr>
<tr> <tr>
<!--td>Published</td-->
<td class="date"></td> <td class="date"></td>
</tr> </tr>
<tr> <tr>
<!--td>Rating</td-->
<td class="rating"></td> <td class="rating"></td>
</tr> </tr>
<tr> <tr>
<!--td class="notes_label">Notes</td-->
<td class="notes"></td> <td class="notes"></td>
</tr> </tr>
<tr> <tr>
<!--td>&nbsp;</td-->
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
</table> </table>