Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 03-06-2019, 08:07 PM   #1
deadfly
Junior Member
deadfly began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2019
Device: none
Thumbs up 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
deadfly is offline   Reply With Quote
Old 03-06-2019, 08:50 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by deadfly View Post
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.
In the install folder there's this sub folder .../app/resources/content-server. If you copy that folder to the .../resources folder within the calibre configuration folder you can edit the various files.

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
BetterRed is offline   Reply With Quote
Advert
Old 03-06-2019, 08:56 PM   #3
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
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:
Originally Posted by BetterRed View Post
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
I recently looked into modifying the HTML but it's pretty much pure javascript. Hence, I'm sticking to COPS and Calibre-PHP server.
ilovejedd is offline   Reply With Quote
Old 03-06-2019, 10:11 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is online now   Reply With Quote
Old 03-06-2019, 10:13 PM   #5
deadfly
Junior Member
deadfly began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2019
Device: none
Thumbs up

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
deadfly is offline   Reply With Quote
Advert
Old 03-07-2019, 12:03 AM   #6
deadfly
Junior Member
deadfly began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2019
Device: none
Quote:
Originally Posted by kovidgoyal View Post
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.
Thanks, kovidgoyal, I can certainly bookmark the library page for when I access it myself, but the library URL is a bit of a mouthful when giving it to other people...


Jessica
deadfly is offline   Reply With Quote
Old 03-07-2019, 12:16 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is online now   Reply With Quote
Old 03-07-2019, 01:25 AM   #8
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
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:
Originally Posted by deadfly View Post
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.
Both are PHP-based, lightweight alternatives to Calibre content server. You'd need a web server to run these.

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.
ilovejedd is offline   Reply With Quote
Old 03-07-2019, 05:47 AM   #9
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 10,129
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by kovidgoyal View Post
I doubt you give them the home page URL verbally either, so just share the library page URL instead.
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.
Sirtel is offline   Reply With Quote
Old 03-07-2019, 07:15 AM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes, password protection should not make any difference.
kovidgoyal is online now   Reply With Quote
Old 03-07-2019, 07:41 AM   #11
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
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.
Sirtel is offline   Reply With Quote
Old 03-07-2019, 07:55 AM   #12
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is online now   Reply With Quote
Old 03-07-2019, 08:48 AM   #13
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 10,129
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by kovidgoyal View Post
Just hitting refresh in the browser should take care fo that error.
Unfortunately not. No matter what I try, I cannot get the bookmark to work with password either in Chrome or Firefox. I always get the error message or the default home page (unsorted). I even tried logging in to the server, going back to the browser home page, going to the bookmarked page again. Nope. Still the default unsorted front page. The only way I could get the bookmark to work was to manually sort everything again, then going back to the browser home page, and then going to the bookmarked page again. Then it worked, but it's pretty pointless doing it this way, when I have to sort everything manually anyway every time I log in.

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.
Sirtel is offline   Reply With Quote
Old 03-07-2019, 09:32 AM   #14
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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?
kovidgoyal is online now   Reply With Quote
Old 03-07-2019, 09:37 AM   #15
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 10,129
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by kovidgoyal View Post
Can you post one of these URLs you are trying to bookmark?
http://xxx.xxx.x.xx:8080/#library_id...asc,series.asc
Sirtel is offline   Reply With Quote
Reply

Tags
customise content server


Forum Jump

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


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


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