Git Product home page Git Product logo

seblucas / cops Goto Github PK

View Code? Open in Web Editor NEW
1.4K 98.0 227.0 7.98 MB

Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)

Home Page: http://blog.slucas.fr/en/oss/calibre-opds-php-server

License: GNU General Public License v2.0

PHP 73.90% HTML 2.78% CSS 3.30% JavaScript 19.56% Shell 0.19% Perl 0.27%
opds php ebook ebook-manager eink

cops's Issues

Problem with links

Hi,
The links (Tags, Authors) don't work on the book page displayed by the permalink. I don't find the problem. The problem is the same in your demo.

Add HTML pages

Should in the end be usable on :

  • smartphone
  • tablet
  • Kobo browser

cops drops subdirectories in links, and what I've 'done' about it

I've had to put cops in a subdirectory: localhost/opds

In the feed, the fetch links and half of the feed links lose the subdirectory. This leaves me able to browse around, but trying to download any book points it to /fetch.php?yadda, which is 404.

A chunk of the xml looks like this:

Sébastien Lucas http://blog.slucas.fr [email protected] <title>A Study of Practical Deduplication</title> 2012-09-02T23:08:03+02:00 urn:uuid:25208019-ef43-4a69-8f2f-16a227f0444e ##

I modified line 98 of data.php as follows:
from

    if (preg_match ('/^\//', $config['calibre_directory']))
    {
        if ($type != "jpg") $textData .= "&type=" . $type;
        return new Link ("fetch.php?id=$book->id" . $textData, $mime, $rel, $title);
    }

to (just adding the 'cops_full_url' prefix)

    if (preg_match ('/^\//', $config['calibre_directory']))
    {
        if ($type != "jpg") $textData .= "&type=" . $type;
        return new Link ($config['cops_full_url'] . "fetch.php?id=$book->id" . $textData, $mime, $rel, $title);
    }

That block of xml now looks like this:

Sébastien Lucas http://blog.slucas.fr [email protected] <title>A Study of Practical Deduplication</title> 2012-09-02T23:54:56+02:00 urn:uuid:25208019-ef43-4a69-8f2f-16a227f0444e ##

I'm not certain that cops_full_url is the correct thing to use, here, but it works, at least as far as letting me use the system.

it still leaves image and search links in a questionable state, but that's what I've got, right now.

config_default

is there a reason why config_default.php is updated through git?
it prevents a git pull when you use it and have made local changes

error in the "all book" in parsing title

i got something like this :

<a href="/cops/index.php?page=5&id="" class="navigation">nav

i think it's cause by title of book starting by ", error in escaping of char probably

Add Wiki to the GIT repository?

Hi,

Thanks for your efforts on COPS. Maybe it is nice to enable the Wiki for this repository? In that case the community can add additional information on COPS?

Handle locale better

  • Stop using string from Calibre2OPDS
  • build / find some tool to handle cleanly
  • Add all missing strings (about, checkconfig, ...)

Add feature: Authors sort by 1st letter

I have 3800 authors in my database. The list becomes quite large. Is it possible to add the 'sort by first author letter', the same way as is done by 1st book title letter?

Better search

Search author
search series
search tag
search ISBN
etc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.