Code Monkey home page Code Monkey logo

dokuwiki-plugin-bookcreator's People

Contributors

a-gundy avatar alexgearbox avatar apppies avatar araname avatar bobzbobz avatar brilanto avatar cereva avatar cpesoft avatar danscho avatar dturkalj avatar epergo avatar erturner avatar fefcas avatar fukuyori avatar jacobpalm avatar jfmd21 avatar klap-in avatar larsgit223 avatar lpaulsen93 avatar lrdt avatar micgro42 avatar mprins avatar nfriedli avatar rneej avatar ronny-n avatar samo079 avatar sawachan avatar schplurtz avatar unixhex avatar vor-kosigan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dokuwiki-plugin-bookcreator's Issues

useslash and canonical config settings set a wrong cookie path

Hi,
if I have search engine friendly URLs activated and try to add the following pages to a book:

domain.com/author/name/page1
domain.com/author/name/page2
domain.com/author/name/page3

it seems like the cookies are set with Path: /author/name
(as opposed to only Path: /)

This means that if I go to

domain.com/wiki/ebook that contains: ~~BOOK~~ the cookies seem to be unavailable for the book. No pages seem to be selected.

If I, however, create the page

domain.com/author/name/ebook containing ~~BOOK~~ I can see the selected pages.

Is it possible to make sure that the cookies are always created with the path / (and nothing else)?

multiple namespaces for saved lists

request via the mail:

Also I have one suggestion for possible improvement:
Support for alias/wildcards in namespace where selections are saved (parameter save_namespace). For example to support entries like:

  • user:%USER%:ebook
  • %GROUP%:ebook

so every user or group have it’s own saved book collection.
(something like https://www.dokuwiki.org/acl#user_wildcards).

Ultimately it will be nice to have support for multiple saved lists: user specific, group specific and global (but that’s probably too much to ask).

Unable to enter pages

upon entering wiki:ebook page for the first time, the textbox under "Selected Pages" is not enabled. I installed all required plugins. The main wiki also has an issue with creating a new page so there may be a connection.

Adding only 'one' citation in entire pdf book.

When I tried to export pdf book using this plugin, I saw that citations are put in every sub-documents.
Can I add only one citation to last page of pdf file without changing template files of dw2pdf?

DokuWiki portable from USB stick: Images are not shown in pdf

Hello all,
i my case the images on the wikipages are not shown in the pdf. If I choose printable version instead the images are shown.
System:
Windows 7 64 bit
Browser Mozilla
Wiki: Release 2014-09-29d "Hrun"
Template: Arctic
Plugins installed:
Bookcreator Plugin 2015-06-11 by Gerrit Uitslag (previous: Luigi Micco)
Allow to make a book (PDF or text) from selected pages
Bureaucracy Plugin 2015-01-22 by Andreas Gohr
Create forms and generate pages or emails from them
Button Plugin 2015-05-03 by Remi Peyronnet
Add button links syntax
ckgedit 2015-06-02 by Myron Turner
WYSIWYG plugin for Dokuwiki
Structured Data Plugin 2015-05-16 by Andreas Gohr
Add and query structured data in your wiki
do plugin 2014-11-01 by Andreas Gohr
Assign tasks within the wiki
Dw2Pdf plugin 2015-06-10 by Andreas Gohr and Luigi Micco
DokuWiki to PDF converter
Gallery Plugin 2014-05-18 by Andreas Gohr
Creates a gallery of images from a namespace or RSS/ATOM feed
Info Plugin 2014-03-05 by Andreas Gohr
Displays information about various DokuWiki internals
log plugin 2015-02-26 by Adrian Lang
Provide simple logs
WikiCalendar Plugin by Michael Klier (chi)
Implements a simple Calendar with links to wikipages.

ACL Manager 2014-06-04 by Andreas Gohr
Manage Page Access Control Lists
Configuration Manager 2014-03-18 by Christopher Smith
Manage Dokuwiki's Configuration Settings
Structured Data Plugin 2015-05-16 by Andreas Gohr
Add and query structured data in your wiki
Extension Manager 2014-06-15 by Michael Hamann
Allows managing and installing plugins and templates
Revert Manager 2013-11-21 by Andreas Gohr
Allows you to mass revert recent edits to remove Spam or vandalism
sqlite plugin 2015-05-04 by Andreas Gohr
A helper plugin to easily access a SQLite database
DokuWiki Upgrade Plugin 2015-02-26 by Andreas Gohr
Automatically upgrade your DokuWiki install to the most recent stable release
User Manager 2014-03-05 by Chris Smith
Manage DokuWiki user accounts

ACL Manager 2014-06-04 by Andreas Gohr
Manage Page Access Control Lists
Bookcreator Plugin 2015-06-11 by Gerrit Uitslag (previous: Luigi Micco)
Allow to make a book (PDF or text) from selected pages
Bureaucracy Plugin 2015-01-22 by Andreas Gohr
Create forms and generate pages or emails from them
Button Plugin 2015-05-03 by Remi Peyronnet
Add button links syntax
ckgedit 2015-06-02 by Myron Turner
WYSIWYG plugin for Dokuwiki
Structured Data Plugin 2015-05-16 by Andreas Gohr
Add and query structured data in your wiki
do plugin 2014-11-01 by Andreas Gohr
Assign tasks within the wiki
Dw2Pdf plugin 2015-06-10 by Andreas Gohr and Luigi Micco
DokuWiki to PDF converter
Extension Manager 2014-06-15 by Michael Hamann
Allows managing and installing plugins and templates
log plugin 2015-02-26 by Adrian Lang
Provide simple logs
safefnrecode plugin 2012-07-28 by Andreas Gohr
Changes existing page and foldernames for the change in the safe filename encoding
WikiCalendar Plugin (action component) by Michael Klier
Implements a simple Calendar with links to wikipages.

ckgedit 2015-06-02 by Myron Turner
WYSIWYG plugin for Dokuwiki
Dw2Pdf plugin 2015-06-10 by Andreas Gohr and Luigi Micco
DokuWiki to PDF converter
text plugin 2015-04-19 by Michael Hamann
renders page as plain text. USAGE: <pagename>?do=export_text (Original author: Todd Augsburger)

Bureaucracy Plugin 2015-01-22 by Andreas Gohr
Create forms and generate pages or emails from them
ckgedit 2015-06-02 by Myron Turner
WYSIWYG plugin for Dokuwiki
Structured Data Plugin 2015-05-16 by Andreas Gohr
Add and query structured data in your wiki
do plugin 2014-11-01 by Andreas Gohr
Assign tasks within the wiki
Extension Manager 2014-06-15 by Michael Hamann
Allows managing and installing plugins and templates
sqlite plugin 2015-05-04 by Andreas Gohr
A helper plugin to easily access a SQLite database

handle non-english(utf-8) file name in cookies

===== ISSUE: handle non-english(utf-8) file name =====

If the file name is english, everything is OK. But when I try to add a page with Chinese file name, I get 400 Bad Request error. I checked the cookies stored, and find that cookie name is:

bookcreator[topic:linux-parallel:intel��Ñh��Õh�Å]

I think that's where the error comes.

I modified some JavaScript in the code and use urlencoded string in cookies. It seems that the problem is solved. You can check the code here

From: https://www.dokuwiki.org/plugin:bookcreator:discussion

Change maximum size of selctet pages

Hey mate, its me again.
my problem is, i wanted to create a pdf book with round about 180 pages but the selection stopped at 90 with kicking me out of the wiki and sending a cach failure, after clearing cach i could login again but the selection was gone.

Is there a possibility to change the size of selectet pages from 90 to 200?

regards
Zerremonde

can't do anything with selection

users can add normally the books, but when you choose between "export" or "save selection" it doesn't work also doesnt even show ~~ARCHIVEBOOK:number&sort~~ section at all.

The only error message i get is "You don't have pages selected yet." when trying to save selection, everything else, fails with a warning and no text.

Crosslinked pages inside the created pdf

Say, we have 3 pages:
http://somesite/docuwiki/page1 (contains some links to page2)
http://somesite/docuwiki/page2 (contains some links to page1)
http://somesite/docuwiki/index (contains some links to page1 and page2)

When we create a book from these 3 pages - the resulting PDF is OK, but all the links point to the "http://somesite..." URLs, ignoring the fact that all the linking pages ALREADY sit in the PDF.

How can we get all the local links on/to all exported pages "be processed", pointing to the pages if the resulting PDF - but not to the website? The links pointing to the wiki pages out of the book's selection (wiki pages whose won't be exported to the book) shall not "be processed" of course - those should be pointing to the website URLs.

Thanks,
SS

[localStorage] Can not recover saved lists

we were facing problems when saving a book with a long list of pages. We created a copy of our dokuwiki and replaced the files from pdfbook with the branch "localStorate". #72

Our setup is:

  • dokuwiki Release 2015-08-10a "Detritus"
  • dw2pdf: date 2016-04-17
  • other plugins.

We have no problems now when exporting books with many files but the problem now is we can not recover saved list (better said, we can recover the list but not continue editing). I dont see any related errors in apache or javascript console. How Can I debug further? Or what could I test?

##dokuwiki_1

relative links to media don't work

When using relative links to namespaces of images, the pdf-file can't find the media files. Instead of this, the link for this files in the pdf is an absolute path starting from the namespace "wiki:ebook".

Regards Juergen

PDF-template selection

Hi,

is there a possibility to select a specific template for the output? When using the dw2pdf plugin there is a command like &tpl=yourtemplate. So it would be nice if there were a way to do that similar, perhaps by URL.

Best regards
Juergen

'You don't have pages selected yet.'

Configuration:

Dokuwiki last stable versione Hrun
Bookcreator latest version (https://github.com/Klap-in/dokuwiki-plugin-bookcreator/archive/master.zip)
dw2pdf latest version (https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/tarball/master)

browser used:
Google Chrome Version 41.0.2272.89 m
Firefox 38.0.5

Content of cookie:

array(6) { ["bookcreator"]=> array(3)
{
["wiki:ebook"]=> string(1) "1"
["start"]=> string(1) "0"
["prova_argomento"]=> string(1) "1"
}
["DokuWiki"]=> string(26) "34vthdhc62rljdtbh4bofu77r3"
["PD_STATEFUL_1f048598-f654-11e0-9132-00215e895411"]=> string(9) "/jportal7"
["PD_STATEFUL_c97d4ad4-e3a6-11e0-baf3-00215e89578f"]=> string(25) "/clustermaila01.hbl.local"
["PD_STATEFUL_ca435198-e3a6-11e0-baf3-00215e89578f"]=> string(25) "/clustermaila01.hbl.local"
["IV_JCT"]=> string(9) "/jportal7"
}

Apache/2.2.17
php version 5.3.5
mysql 5.5.8

PDF export times out with large number of chapters

I've been trying to export a book to PDF. The chapters are short (around 400 words each with no pictures), but there are a lot of them, around 50 (my plan was to make books with hundreds of chapters). Unfortunately the process times out after 120 seconds and I get the following message:
Fatal error: Maximum execution time of 120 seconds exceeded in C:\wamp\www\commonplace\lib\plugins\dw2pdf\mpdf\classes\otl.php on line 5438

The Plugin did not accept the selectet Pages

Taken from discussingpage for the bookcreator plugin:

I can select and delete Pages, this is not the problem, but if i want to export or save my selection, the Plugin is telling me, that i did not select any pages.

I added “var_dump($_COOKIE)” to the syntax.php, the output is shown below.

array(3) {
["bookcreator"]=>
array(2) {
["start"]=>
string(1) "1"
["andere"]=>
string(1) "1" }
["DokuWiki"]=>
string(26) "a0d075bihtp4kvr476pr316ot0"
["DW84669e0b736a85c6eeda0cf5b0a2b382"]=>
string(27) "YWRtaW4=|0|cnVxUlAvTkdVR0E9" }

Dokuwiki is running on my local system, Ubuntu 12.04, by using the latest version of Firefox. DW2PDF and Text are running correctly. I am using the “Vector” Template

The cookie “list-pagelist” is used when saving pages. That cookie is missing in your dump. Are you sure your javascript is working correct?
Can you check whether the console of your Developer Toolbar has javascript errors?
(Please report this issue in the issuetracker, than i can better follow this conversation.)
— Klap-in 2014-07-01 11:54

    First of all, i dont have an account on Github so I cant use the IssueTracker.
    The second thing is, I checked out the Developers Toolbar and there appeared one errormassage for Javascript:
    ReferenceError: jQuery is not defined js.php:4013
    Is this problem about missing permissions on js.php? If you agree, which permissions should I give this script?

        js.php is reached, so permissions are ok. This message tells something about a certain line of js.php, but I cannot give a conclusive diagnose with this information.
        Is your wiki reachable via internet for me? Can you provide the url in that case, so that i can have a look?
        A general remedy could be to update all your plugins to their latest version. There are old version of plugins know to be incompatible with current DokuWiki releases. But i don't know yet if that is the case here…
        (You need to create a GitHub account indeed, then you can reach the issue tracker for this plugin, and many others as well. Open access tools are misused massively, therefore it is required for us to have a login-first tool in stead. Sorry for the extra registration it requires)
        — Klap-in 2014-07-01 16:15

Sometimes a empty message is displayed on missing title

If a book shall be exported to pdf or odt and the title is missing, then sometimes an empty message is displayed and sometimes the message "Please provide a title" ($lang ['needtitle']).

Here the sequence of actions in detail:

  • add pages to book
  • go to ebook page
  • select export format 'PDF'
  • click on 'export'
  • empty message appears
  • click on 'export' again
  • message "Please provide a title" appears

I assume this might be a DokuWiki problem not a bookcreator thing. I tested it with firefox and chromium. Both have the problem.

IE8 throws JavaScript error

As described on the Wiki page...

The fix is easy. IE8 does not tolerate the verb "do" - it is a reserved word. Change line 150 in script.js from

    document.bookcreator__selections__list.do.value = (action == 'read' ? 'readsavedselection' : 'show');

to

    document.bookcreator__selections__list['do'].value = (action == 'read' ? 'readsavedselection' : 'show');

'Page selection problem'

As reported at: https://www.dokuwiki.org/plugin:bookcreator:discussion

===== Page selection problem 1/8/2014 =====
I can select pages but when I go to save the selection I get the 
messages "You don't have pages selected yet."  I can delete pages 
selected successfully. I have verified cookies are created for each page. 
 I do not have a cookie listing the pages if it should exist.  I am wiki-admin 
with all permissions. 
FireFox 25.01
DokuWiki Weatherwax
bookcreator is current as of 1/8/2014 - no output for "Text", Printable Version or PDF
dw2pdf is current as of 8/16/2013 and works properly from URL and tab button

Edit: Same here, FF 27, fresh installation of DokuWiki, bookcreator and dw2pdf 
on XAMPP / Win7

Complete Namespace > book

We created a dokuwiki with some hundred articles. Going through these articles just to add them to a new book is not funny. A really cool thing would be a dropdown where you can choose which namespace should be saved and then exported to a new book.
Best regards
Martin

Forbidden Pages has been output.

Hi,

There are forbidden pages in load saved selection.
Forbidden pages isn't displayed in Selected Pages list.

However, these forbidden pages has been output.
I see the ”Skip Forbidden Pages” check box on the book screen, but it doesn't work.

Update is 2016-08-11.

Best regards,
Junko

Wrap Plugin CSS works only for the first page.

So I use the wrap plugin with bookcreator. I have tried adding multiple pages from my wiki, each with some notification/info/alert via the wrap plugin. The first wiki page generates just fine. However after that, the CSS drops. I may be seeing a square border instead of a round or all the wrap CSS disappears and it looks like regular text.

I have tried disabling all plugins except for the bookcreator and its dependent plugins and the wrap plugin, but still the same thing.

Here is the print and pdf output as you can see in the PDF, this wiki page is lacking the wrap styling. However the wiki page before it will show the styling just fine.

print
pdf


UPDATE: I have tested this and it appears to be an issue with dw2pdf itself as it happens when I output an entire namespace as well.

Error 400 due to excessively long cookies

I tried to create a book of over 50 chapters and I started getting
`Bad Request

Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
Cookie`

Deleting my cookies got things working again.

object not found

when i want to add a page to a book, i get an 'object not found' - Error

No PDF after download

When I start exporting a PDF in Chrome and IE there is a message, that something ist downloading:
2016-11-25 14_32_15-ebook-erstellung schutte-wiki
But subsequently the process ends without any success. There is no downloaded file.

In my firefox-installation I have no problem. However, my colleague has this problem even with this browser.

What can I do?

Regards Juergen

installing via plugin manager crashes wiki, returns 500

When i clicked download it crashed with a 500 in the /wiki part of my server, while the other parts remained fine.
Nothing was written to nginx's logs and once i deleted the plugin dir it worked fine again.

I am running weatherwax on debian under nginx and fastcgi. I can provide more debugging info if needed, just tell me how to produce it.

Use local storage instead of cookies (to avoid limited # pages in selection)

Cookies are part of headers, which have memory limits.

Look for alternatives, that are not limited.

See for example issue: #29
Some report selections of just 40 pages, other about 80-90 pages. Depends strong on size of other cookies, and length of pageids.

(Small workaround: Save the book ("Save Selection"), delete all dokuwiki-cookies, log back in and load saved the book. You have lost some cookies and now it might work (depending on no. of pages in your book, though).

Support of further exportplugins

Hi,
I use a couple of export plugins but only a few are supported by this very helpful plugin.
If e.g. the LatexIt-, Open-Document- and epub- plugin would be supported by this plugin many users could benefit from it.
I would prefer a solution using "global documents" (like a book template which includes all wanted articles) but this is just an optional idea.

Wrap plugin column layout is broken once bookcreator enabled

On a wikipage that uses the 'wrap' plugin to format content into two columns (e.g. <WRAP column half>content</WRAP>), once bookcreator has been installed, columns are the correct width but stack vertically instead of appearing side-by-side. (This does not happen in 'preview' mode, where the columns display correctly.)

There appears to be a conflict between the two plugins. I have identified the cause.

Wrap uses div containers for each column and index-based 'Nth of type' div selectors for CSS styling. There is an extra div inserted by bookcreator (for it's toolbar), which breaks wrap's styling.

If "Show toolbar" in the bookcreator configuration settings is set to Never, the div is still present in the HTML but has style="display: none", so still messes up columns. (If the toolbar div was omitted from the markup, rather than hidden, a workaround to this plugin conflict would be to set Never display toolbar.)

Disabling the bookcreator plugin fixes wrap.

Changing the element type from div to nav in the browser, also fixes the issue, i.e.

<nav id="bookcreator__memory" style="display: none;" data-isselected="false"></nav>

Plugin don't work

I am using dokuwiki hrun (linux on synology nas) and wheaterwax (windows server 2008R2),
Browser Firefox 33, Chrome or IE 9, cookies enabled and i have this problems with the bookcreator plugin:
Adding pages to the book works fine, when i go the wiki:ebook page i can not :
-reorder the entries,
-delete the entries
I can delete the whole selection.
After adding one page to the book the bar with "add and delete this page " appears on every page, but clicking on the links/symbols, doesn't have any effect.
Has somebody an idea?

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.