03-06-2019, 08:07 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Mar 2019
Device: none
|
Customising Calibre Content Server
Hello all!
Has anyone customized their content server site? Any tips? I really love Calibre, but it would be excellent if I could design my own first page, where I can add some intro text and give links to parts of my library. Also, is it possible to skip the "Choose the calibre library to browse" step if there is only one library? Thanks so much for any help! Jessica |
03-06-2019, 08:50 PM | #2 | |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Delete anything you don't want to change - e.g. locales.zip, calibre.png, calibre.appcache (I don't know what that is). The files have a Read Only disposition, so they may copy as that, in which case you will have to turn that off. That's the theoretical bit, I have not tried editing the HTML or CSS files myself, so I can offer no practical advice - happy hacking BR |
|
Advert | |
|
03-06-2019, 08:56 PM | #3 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
I recently looked into modifying the HTML but it's pretty much pure javascript. Hence, I'm sticking to COPS and Calibre-PHP server.
|
03-06-2019, 10:11 PM | #4 |
creator of calibre
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Simply bookmark the library page instead of the start page if you would like to skip the choose library page.
As for customization, not really. The server is essentially a program, it does everything via javascript. |
03-06-2019, 10:13 PM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Mar 2019
Device: none
|
Thanks, BetterRed! I'll try that!
Thanks also, ilovejedd. Can you tell me a bit about COPS and Calibre-PHP server? I haven't heard of them. I've been using Calibre for many years, but haven't delved too deep into any third-party stuff. Thanks again! Jessica |
Advert | |
|
03-07-2019, 12:03 AM | #6 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Mar 2019
Device: none
|
Quote:
Jessica |
|
03-07-2019, 12:16 AM | #7 |
creator of calibre
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I doubt you give them the home page URL verbally either, so just share the library page URL instead.
|
03-07-2019, 01:25 AM | #8 | |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
COPS: https://www.mobileread.com/forums/sh...d.php?t=170903 https://blog.slucas.fr/projects/cali...ds-php-server/ Calibre-PHP server (no longer maintained): https://www.mobileread.com/forums/sh...d.php?t=104188 http://charles.the-haleys.org/calibre/ I use both - COPS for OPDS and Calibre-PHP for HTML. It was easier changing the templates/layout on the latter to play nice with the experimental browser on the PW3/PW4 so I don't have to zoom in all the time. Despite not having been updated since 2012, Calibre-PHP server still works quite well and it's got more robust support for custom columns compared to COPS. |
|
03-07-2019, 05:47 AM | #9 |
Grand Sorcerer
Posts: 10,129
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Is it supposed to work with password-protected user accounts? I bookmarked the list view sorted by author and series, but it didn't work with password protection (gave an error message which I cannot remember right now, have to try again.) This was with the latest Calibre on Windows 10, both Chrome and Firefox.
|
03-07-2019, 07:15 AM | #10 |
creator of calibre
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes, password protection should not make any difference.
|
03-07-2019, 07:41 AM | #11 |
Grand Sorcerer
Posts: 10,129
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Well, I tried again now. Sometimes it gave the following error message:
Failed to load books from calibre library, with error: Failed to communicate with "/interface-data/books-init?library_id=Kirjandus&sort=author_sort.asc%2C% 20series.asc&1551961695483", with status: [401] Unauthorized Go back to the home page And sometimes there was no error message, I could log in, but the home page was totally unsorted and displayed the cover grid instead of book list. When I disabled the password protection, the bookmark worked as it should. The server log said An established connection was aborted by the software in your host machine. I tried with two different computers, same result and the same message in the log. |
03-07-2019, 07:55 AM | #12 |
creator of calibre
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just hitting refresh in the browser should take care fo that error.
|
03-07-2019, 08:48 AM | #13 | |
Grand Sorcerer
Posts: 10,129
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
Another thing. I wrote in a previous post that the bookmark worked without password, but I found now that it works only when I have already been there before and have the cookies saved. When I delete the cookies or go to the bookmarked page in a different browser, then it doesn't work (takes me to the default unsorted home page). So if I hypothetically give the URL to a person who has not used the content server before (no cookies from previous sessions), then he or she won't get the bookmarked page even without password. |
|
03-07-2019, 09:32 AM | #14 |
creator of calibre
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Can you post one of these URLs you are trying to bookmark?
|
03-07-2019, 09:37 AM | #15 |
Grand Sorcerer
Posts: 10,129
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
Tags |
customise content server |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibredb does not work with content server running (content server is using --enable | Irvin | Server | 3 | 01-08-2019 02:47 AM |
installing Calibre content server 3 on ubuntu server 16_04 | khyox | Calibre | 22 | 01-06-2018 11:34 PM |
Calibre Content Server and Windows Home Server 2011 | HughMcC | Calibre | 8 | 10-01-2014 07:26 AM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 06:08 PM |
Feature Request: Customising metadata.calibre file content | mornington | Calibre | 5 | 12-22-2010 05:51 AM |