10-29-2018, 08:55 AM | #1666 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@ilovejedd
From one enthusiastic user to another: 1 - No, not that I know of. You can help code it yourself on the github page of COPS. 2 - are you using "custom columns"? For the standard categories if it's empty/does not exist, it's skipped. Maybe handling of "custom columns" is different or "no value" is NOT equal to "empty". (Just guessing here.) 3 - what's displayed (in my setup) is only one tag. This can be just one word or a whole list all clickable from the detailed book view. 4 - If the value is blue, you can click on it. 5 - I don't know. |
10-29-2018, 09:55 AM | #1667 |
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
|
@mariosipad
Thank you very much for your response!
|
10-29-2018, 11:00 AM | #1668 | |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Quote:
You cannot connect to the Synology webserver through quickconnect (as far as I understand it). You need to setup portforwarding in your router (and optionally a DDNS service). See this: https://www.synology.com/en-global/k...r_the_Internet Report back if you have more questions. |
|
10-29-2018, 11:08 AM | #1669 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@ilovejedd
Try: http://cops-demo.slucas.fr/index.php?page=10 then click on Alice's Adventures .... to go to the detailed book view; then click on "fiction" [Tags: Fiction , Mystery & Detective , Short Stories] and ....... or did you mean something else? |
10-29-2018, 12:31 PM | #1670 | |
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:
Looks like I'll be able to fix just the html templates to stop it from displaying custom columns with null values. Making tag-like custom columns work like Tags is a much more difficult undertaking. Last edited by ilovejedd; 10-29-2018 at 12:38 PM. |
|
10-29-2018, 04:27 PM | #1671 |
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
|
Update:
Skipping display of empty custom columns was a pleasantly trivial fix. Updated templates are attached. As for HTML comments, it looks like the code specifically looks for div, p, a or span tags. So something like this will work: Code:
<div class="description">Published: 2018-10-29 Chapters: 1/? Words: 12345<br><br><b>Summary</b><br>Summary here.<br><br><b>Author Notes</b><br>Author notes here.</div> Code:
Published: 2018-10-29 Chapters: 1/? Words: 12345<br><br><b>Summary</b><br>Summary here.<br><br><b>Author Notes</b><br>Author notes here. I also managed to add urls to custom columns. Alas, the way I did it was probably not the recommended/standardized way. As I expected, returning multiple values for tag-like custom columns would be difficult for me to code. |
10-30-2018, 10:07 PM | #1672 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2018
Device: Kindle (5 years old)
|
Quote:
Thanks again for any help you can offer. Last edited by victorn; 10-30-2018 at 10:28 PM. |
|
10-31-2018, 11:00 AM | #1673 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@victorn
I use the "manual" method. 0 - I assume you can connect to cops on your Synology in your lan? 1 - find the WAN-ip of your LAN https://www.whatismyip.com/ The WAN-ip is your public IPv4 address : 123.456.789.123 (example) 2 - find the LAN-ip of your Synology That's the ip you use to go to the Synology DSM page. Example = 192.168.0.101 3 - login on your router (example http://192.168.0.1) 4 - Find port forwarding in one of the menu's then forward port 80 (WAN) to port 80 (LAN) to your Synology LAN-ip = 192.168.0.101 5 - in a browser enter (example): http://<WAN-ip>/cops http://123.456.789.123/cops This should work, it does for me. If not, report back. If it works, then undo step 4 and first read up on internet security. Do not open up port 80 to access from the internet if you do not know what you are doing and the security risks that come with it. At least put a password on COPS. |
10-31-2018, 12:30 PM | #1674 | |
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:
http://<WAN-ip>:1234/cops Regardless, any outward facing server is an additional security risk. |
|
11-03-2018, 12:17 AM | #1675 |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2018
Device: Kindle (5 years old)
|
Thank you ilovejedd and mariosipad, I had already tried your suggestions as described earlier, but with no luck. I have reached the conclusion the problem is a combination of my router and my ISP, not Synology and definitely not COPS. But I reached that conclusion only because I excluded everything else I could think of, not because I have clear evidence. At least I can get to the list of books via the File Station, so not all is lost...
|
11-23-2018, 04:17 PM | #1676 |
Guru
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
|
browser spins and spins...
I recently moved COPS to a new server on my LAN and now I'm unable to fully browse the database, check the fifty most recent, etc. I can access individual books or list of books with small numbers of items (under 20 or so). Otherwise the browser just spins.
checkconfig.php reports all is well, all prereqs installed. The machine is running Mint 19 (Ubuntu 18.04). COPS previously ran fine using this same configuration. https://youtu.be/mzocDq6Zl0c The link above shows the issue occurring. I'm pretty much stumped. Last edited by JeffElkins; 11-23-2018 at 04:19 PM. |
11-26-2018, 07:55 AM | #1677 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
I've never seen that kind of behavior of COPS unless on a very slow server (old raspberry pi) with avery large database, and even then......
Have you reinstalled COPS from source or just copied the files over from an old server (usually works)? Maybe a new(er) version of PHP is to blame? Have you checked the calibre database with calibre? |
12-30-2018, 04:59 AM | #1678 |
Member
Posts: 11
Karma: 10
Join Date: Dec 2013
Device: Kobo Glo
|
I am currently running Cops 1.0.1 on my Synology. It works good enough, and I don't think something is not working. But ... should I put effort in updating it? For now it works.
|
12-30-2018, 12:48 PM | #1679 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
If it aint broeken, don’t fix it!
If you do mot need the (bug)fixes, then leave it as is. |
01-03-2019, 12:47 AM | #1680 |
Member
Posts: 24
Karma: 7938
Join Date: Oct 2010
Location: Ottawa, Ontario, Canada
Device: Onyx Note Air3, Kobo Aura HD, Nexus 7 (2013)
|
Help, Class 'DOMXPath' not found error
I have a LAMP server running on Ubuntu 18.04 LTS. PHP is enabled and working on Apache2. https://server.com/cops/checkconfig.php shows all OK and client-side rendering. PHP version is 7.0.32-0ubuntu0.16.04.1 When I load the URL I get a blank screen and see this in the Apache error log: PHP Fatal error: Class 'DOMXPath' not found in /var/www/html/cops/resources/php-epub-meta/epub.php on line 775 phpinfo() shows that libxml support is active I've seen the previous thread from several years back about this error. For them, the fix was to install php-xml, which I do have installed. I expect I'm missing something obvious and simple. Any help is appreciated. Regards, Douglas |
Tags |
calibre opds, dns, kobo aura, synology |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre OPDS server with windows apps? | nickdma | Related Tools | 10 | 03-03-2024 02:53 PM |
[Old Thread] Android FBreader and Calibre OPDS server question | kalex | Calibre | 5 | 12-24-2015 10:16 PM |
PHP+Apache web server for calibre ... | chaley | Related Tools | 254 | 04-28-2014 08:18 PM |
External OPDS catalogue in Calibre | bolton | Calibre | 1 | 09-05-2012 06:14 AM |
Calibre Command Line usage with PHP | artoros | Related Tools | 13 | 07-01-2010 09:57 AM |