Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-03-2010, 06:43 AM   #1
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: 12,362
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Possible content server changes (@starson17)

After our discussion about the OPDS server, I made some changes to the normal and mobile content servers. I haven't yet submitted these changes to Kovid because I wanted to check to see if they are useful.

I added custom field values to both servers. The result is similar for both, so I will show the mobile one here. The text shown for one book with several custom fields is below. The output does not contain <br> elements, so it wraps wherever the browser wants to wrap it.
Code:
1632 [1632 - 1] by Flint, Eric - 768.5 KB - 2010/01/05 23:00:00
Tags=[Alternate history,SRC:BaenFree,foobar,a,c,b,e,d,g,f,ffff1] Another Date=[00] 
My Bool=[Yes] My Date=[2010-Jan-21] My Float=[1.0] My Int=[2] My Rating=[2] 
My Series=[SomeSeries [4]] My Text=[flapper] Text Multiple=[9, 8, 5, 6]
Is this helpful? Should it be changed in some (possible) way?
chaley is offline   Reply With Quote
Old 09-03-2010, 10:56 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by chaley View Post
After our discussion about the OPDS server, I made some changes to the normal and mobile content servers. I haven't yet submitted these changes to Kovid because I wanted to check to see if they are useful.
Yes, they are useful. Very useful! I know what custom fields I've added, and their format, but family does not. I have to leave little messages in index.html for the content server with recommended searches to find, e.g. books with literary awards, then they ask me where they can see which award and what year. Mobile and normal can both use this treatment.

Quote:
The output does not contain <br> elements, so it wraps wherever the browser wants to wrap it.
That's exactly what I would recommend.

Quote:
Code:
1632 [1632 - 1] by Flint, Eric - 768.5 KB - 2010/01/05 23:00:00
Tags=[Alternate history,SRC:BaenFree,foobar,a,c,b,e,d,g,f,ffff1] Another Date=[00] 
My Bool=[Yes] My Date=[2010-Jan-21] My Float=[1.0] My Int=[2] My Rating=[2] 
My Series=[SomeSeries [4]] My Text=[flapper] Text Multiple=[9, 8, 5, 6]
Is this helpful? Should it be changed in some (possible) way?
As usual, it's easier to make suggestions after some hands-on interaction, but it looks good to me as-is. If you decide to set up a separate source branch, for testing, let me know, but I doubt it needs it. Any tweaking that might occur later should be easy to do without much disruption I can see.

I'm still in the middle of adding data to some new custom fields, but I was close to looking at some way to do this myself. Thanks!

On a related note, the multiple field new search term tweak is working well. I have a new multisearch term of Awards that searches custom series-like fields #award1 and #award2.

For reasons unrelated to the tweak, I've found that if I know there's an overlap (e.g. Nebula and Hugo), it works best to try to keep all of the Hugos and Hugo Nominated in #award1 and all the Nebula related awards in #award2.
Starson17 is offline   Reply With Quote
Advert
Old 09-03-2010, 11:35 AM   #3
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: 12,362
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I pushed the changes to Kovid for his perusal/approval. As the changes are very similar to what he already approved for the OPDS version, I don't expect a long or complicated cycle.
chaley is offline   Reply With Quote
Old 09-03-2010, 02:36 PM   #4
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: 12,362
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Code is in the trunk release. Kovid asked me to by default limit the number of tags displayed for the standard and custom tags fields to 5. A tweak exists to change that number, should someone want to.
chaley is offline   Reply With Quote
Old 09-03-2010, 02:55 PM   #5
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by chaley View Post
Code is in the trunk release. Kovid asked me to by default limit the number of tags displayed for the standard and custom tags fields to 5. A tweak exists to change that number, should someone want to.
I'll test it when I get access to my main content server. Again, thanks!
Starson17 is offline   Reply With Quote
Advert
Old 09-04-2010, 10:43 AM   #6
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Starson17 View Post
I'll test it when I get access to my main content server. Again, thanks!
It works great!
Starson17 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help - content server Sydney's Mom Calibre 0 08-28-2010 04:07 PM
Content server question EvilWayz Calibre 5 08-14-2010 05:40 PM
Content Server edit help selfdestroyer Calibre 2 08-06-2010 04:47 AM
content server in calibre bruceOz Calibre 1 04-16-2010 04:23 AM
Content Server thibaulthalpern Calibre 5 04-28-2009 12:56 PM


All times are GMT -4. The time now is 09:55 PM.


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