Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-08-2013, 09:48 PM   #1
At_Libitum
Addict
At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.
 
Posts: 266
Karma: 724240
Join Date: Aug 2013
Device: KyBook
Hierachical tags in opds feed

Hi,

I am not sure where to post this so feel free to move if incorrectly posted.

I seem to have stumbled over a problem but am not sure where the cause may lie.

I have a custom column #subgenre which is build from two other columns

the first is again a custom column #collection and the second is the tags column.

content of these two columns is joined using this pattern

#collection.#subgenre

if #collection contains more than 1 entry these are concatenated again using a period as separator.

For every entry in tags, whatever comes out of #collection, is prefixed to each tag.

Works like a charm in the tag browser, but not in the OPDS feed.

for instance. one such a #subgenre is present in the feed as follows

Code:
  <entry>
    <title>Classics</title>
    <id>calibre:category:Classics</id>
    <updated>2013-10-09T08:46:02+00:00</updated>
    <content type="text">5 books</content>
    <link href="/stanza/category/2373756267656e7265/49436c6173736963733a2373756267656e7265" type="application/atom+xml;type=feed;profile=opds-catalog"/>
  </entry>
And this happens to be a simple one, no tags present and just the one #collection entry.

so when I try navigating to the link to show me the 5 books , I get this.

Code:
GET /stanza/category/2373756267656e7265/49436c6173736963733a2373756267656e7265

----
reply:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
    <title>404 Not Found</title>
    <style type="text/css">
    #powered_by {
        margin-top: 20px;
        border-top: 2px solid black;
        font-style: italic;
    }

    #traceback {
        color: red;
    }
    </style>
</head>
    <body>
        <h2>404 Not Found</h2>
        Tag u'Classics:#subgenre' not found
        <pre id="traceback"></pre>
    <div id="powered_by">
    <span>Powered by <a href="http://www.cherrypy.org">CherryPy 3.2.2</a></span>
    </div>
    </body>
</html>
edit: FIXED

Last edited by At_Libitum; 10-09-2013 at 05:51 AM.
At_Libitum is offline   Reply With Quote
Old 10-09-2013, 04:52 AM   #2
chaley
"chaley", not "charley"
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: 5,770
Karma: 1212746
Join Date: Jan 2010
Location: France
Device: Many android devices
There is a bug in OPDS where categories made from composite columns don't work. I have submitted changes to fix it.
chaley is offline   Reply With Quote
Old 10-09-2013, 05:52 AM   #3
At_Libitum
Addict
At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.
 
Posts: 266
Karma: 724240
Join Date: Aug 2013
Device: KyBook
Thanks for the update and compliments on being able to identify it even with that mangled report. Post is fixed now.
At_Libitum 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
Changing <div> tags to <p> tags townsend Sigil 23 04-07-2013 09:07 AM
Searching tags to show tags I want even when it has a tag I do not Jade Aislin Library Management 2 04-25-2012 02:01 PM
Calibre Tags & Aldiko Tags Not the Same Themus Calibre 3 03-21-2012 09:23 PM
View custom hierachical columns Jade Aislin Library Management 6 10-17-2011 01:57 AM
Amazon Tags - Popular tags vs Unique tags. chrisanthropic Writers' Corner 6 09-20-2011 12:18 AM


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


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