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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-06-2013, 10:36 AM   #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: 265
Karma: 724240
Join Date: Aug 2013
Device: KyBook
Customizing Calibre's OPDS output

Hi there,

I've been going through the resources folder but seem to be out of luck. I would like to make some minor customization to the final stage of opds output so that it displays series and series_index below the author name when viewing a list of books.

Seems that I can customize the webinterface but not the feed
At_Libitum is offline   Reply With Quote
Old 10-06-2013, 11:32 AM   #2
chaley
Grand Sorcerer
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: 11,703
Karma: 6658935
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by At_Libitum View Post
I've been going through the resources folder but seem to be out of luck. I would like to make some minor customization to the final stage of opds output so that it displays series and series_index below the author name when viewing a list of books.

Seems that I can customize the webinterface but not the feed
Calibre's OPDS server provides XML output intended to be consumed by an OPDS client. It is the client that chooses how to display the information provided. Clients care about the structure of the information in the XML, but they do not (or at least should not) care about the order of information.

To explain a bit more fully, here is an example of the XML sent by the calibre's OPDS server:
Code:
  <entry>
    <title>1632</title>
    <author>
      <name>Flint, Eric</name>
    </author>
    <id>urn:uuid:d00834a3-dfdc-4bfd-9193-ff37315c3483</id>
    <updated>2013-10-06T15:06:23+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">RATING: ★★★★<br/>
TAGS: Adventure, Alternate History, Fantasy, Historical, Science Fiction, War<br/>
SERIES: 1632 [1]<br/>
<p class="description">SUMMARY:<br/>When part of West Virginia is transported to 1632 East Germany during the Thirty Year's War, the new citizens repel marauding mercenaries, house German refugees, determine citizenship, and establish relationships and identities.</p></div>
    </content>
    <link href="/get/epub/74" type="application/epub+zip" rel="http://opds-spec.org/acquisition"/>
    <link href="/get/cover/74" type="image/jpeg" rel="http://opds-spec.org/cover"/>
    <link href="/get/thumb/74" type="image/jpeg" rel="http://opds-spec.org/thumbnail"/>
  </entry>
As you can see, much of the information is in a structured form defined by the OPDS spec, for example the links, authors, ids, etc. The OPDS spec does not define an official structure for tags, ratings, series, or several other metadata fields. To work around this, calibre includes them in the "content" section as lines starting with distinctive labels and ending in <br/>. The order of these special elements in the content section is not guaranteed. Calibre provides no way to change how these fields are written to the content section, both because it wants to guarantee the structure and expects any formatting to be done by the client.
chaley is offline   Reply With Quote
Old 10-06-2013, 12:25 PM   #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: 265
Karma: 724240
Join Date: Aug 2013
Device: KyBook
I stand corrected completely overlooked the possibility the information might simply not be extracted by the client.
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
Software Marvin, iBooks, Calibre et OPDS... Gurvan Forum Français 3 06-02-2013 06:40 AM
How to connect to OPDS catalog from Calibre Pogzy Calibre 15 05-17-2013 08:45 PM
ShuBook and Calibre's OPDS questions Shykat Apple Devices 4 11-11-2012 01:31 PM
External OPDS catalogue in Calibre bolton Calibre 1 09-05-2012 06:14 AM
Customizing Calibre lunixer Calibre 5 08-23-2010 01:21 PM


All times are GMT -4. The time now is 02:44 AM.


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