![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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] |
![]() |
![]() |
![]() |
#2 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
Quote:
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. |
|||
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
I'll test it when I get access to my main content server. Again, thanks!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |