GwR wip catalog revisions

This commit is contained in:
GRiker 2010-11-14 03:16:12 -07:00
parent 66aa330f12
commit 686b1e80b1
2 changed files with 35 additions and 11 deletions

View File

@ -12,8 +12,8 @@ p.title {
p.author { p.author {
margin-top:0em; margin-top:0em;
margin-bottom:0em; margin-bottom:0em;
text-align: left; text-align: center;
text-indent: 1em; text-indent: 0em;
font-size:large; font-size:large;
} }
@ -27,17 +27,29 @@ p.author_index {
} }
p.tags { p.tags {
margin-top:0em; margin-top:0.5em;
margin-bottom:0em; margin-bottom:0em;
text-align: left; text-align: left;
text-indent: 1em; text-indent: 0.0in;
font-size:small;
} }
p.description { p.formats {
text-align:left; font-size:90%;
font-style:normal; margin-top:0em;
margin-top: 0em; margin-bottom:0.5em;
text-align: left;
text-indent: 0.0in;
}
/*
div.description > p:first-child {
margin: 0 0 0 0;
text-indent: 0em;
}
*/
div.description {
margin: 0 0 0 0;
text-indent: 1em;
} }
p.date_index { p.date_index {

View File

@ -1666,7 +1666,8 @@ class EPUB_MOBI(CatalogPlugin):
elif self.opts.connected_kindle and title['id'] in self.bookmarked_books: elif self.opts.connected_kindle and title['id'] in self.bookmarked_books:
authorTag.insert(0, NavigableString(self.READING_SYMBOL + " by ")) authorTag.insert(0, NavigableString(self.READING_SYMBOL + " by "))
else: else:
authorTag.insert(0, NavigableString(self.NOT_READ_SYMBOL + " by ")) #authorTag.insert(0, NavigableString(self.NOT_READ_SYMBOL + " by "))
authorTag.insert(0, NavigableString("by "))
authorTag.insert(1, aTag) authorTag.insert(1, aTag)
''' '''
@ -1695,6 +1696,7 @@ class EPUB_MOBI(CatalogPlugin):
tagsTag = body.find(attrs={'class':'tags'}) tagsTag = body.find(attrs={'class':'tags'})
ttc = 0 ttc = 0
'''
# Insert a spacer to match the author indent # Insert a spacer to match the author indent
fontTag = Tag(soup,"font") fontTag = Tag(soup,"font")
fontTag['style'] = 'color:white;font-size:large' fontTag['style'] = 'color:white;font-size:large'
@ -1703,6 +1705,7 @@ class EPUB_MOBI(CatalogPlugin):
fontTag.insert(0, NavigableString(" by ")) fontTag.insert(0, NavigableString(" by "))
tagsTag.insert(ttc, fontTag) tagsTag.insert(ttc, fontTag)
ttc += 1 ttc += 1
'''
for tag in title['tags']: for tag in title['tags']:
aTag = Tag(soup,'a') aTag = Tag(soup,'a')
@ -1711,11 +1714,19 @@ class EPUB_MOBI(CatalogPlugin):
aTag.insert(0,escape(NavigableString(tag))) aTag.insert(0,escape(NavigableString(tag)))
emTag = Tag(soup, "em") emTag = Tag(soup, "em")
emTag.insert(0, aTag) emTag.insert(0, aTag)
if ttc < len(title['tags']): if ttc < len(title['tags'])-1:
emTag.insert(1, NavigableString(' &middot; ')) emTag.insert(1, NavigableString(' &middot; '))
tagsTag.insert(ttc, emTag) tagsTag.insert(ttc, emTag)
ttc += 1 ttc += 1
# Insert formats
if 'formats' in title:
formatsTag = body.find(attrs={'class':'formats'})
formats = []
for format in sorted(title['formats']):
formats.append(format.rpartition('.')[2].upper())
formatsTag.insert(0, NavigableString(' &middot; '.join(formats)))
# Insert the cover <img> if available # Insert the cover <img> if available
imgTag = Tag(soup,"img") imgTag = Tag(soup,"img")
if 'cover' in title: if 'cover' in title:
@ -4238,6 +4249,7 @@ class EPUB_MOBI(CatalogPlugin):
<p class="author"></p> <p class="author"></p>
<!--p class="series"></p--> <!--p class="series"></p-->
<p class="tags">&nbsp;</p> <p class="tags">&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"></td>