aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper/EntriesExport.php
Commit message (Collapse)AuthorAgeFilesLines
* epub: fix exception when articles have the same titleKevin Decherf2019-03-171-1/+1
| | | | | | | | | | This commit fixes an exception occuring when exporting as epub several articles with the same title. The chapter filename is now derived from title and url. Fixes #3642 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* epub export: fix missing cover image, only for exports of one articleKevin Decherf2019-02-181-7/+9
| | | | | | Fixes #3602 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport: avoid else on $authorsKevin Decherf2019-01-091-4/+2
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport: sanitize filename and fix testsKevin Decherf2019-01-081-10/+18
| | | | | | | | Filename will now only use a-zA-Z0-9-' and space. Fixes remaining filename issue on #3811 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/pdf: move notice to the end, add metadata coverKevin Decherf2019-01-071-8/+25
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: add metadata to each entry's coverKevin Decherf2019-01-071-1/+16
| | | | | | | | | | | | | Add metadata to the cover of each entry: - Publishers - Estimated reading time - Date of creation ("Added on") - Address (URL) Related to #2821 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport: change authors and title when not single entry exportKevin Decherf2019-01-071-1/+1
| | | | | | | | | | Change '{method} authors' (which gives 'Tag_entries authors' when exporting a tag) to 'Various authors'. When exporting a tag (tag_entries), change the title from 'Tag_entries articles' to 'Tag {tag} articles'. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: revert c779373f, move exportinfo to the end of the bookKevin Decherf2019-01-071-1/+3
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: use sha1 sums for filenames, fix and rename title chaptersKevin Decherf2019-01-071-6/+6
| | | | | | | | This commit renames entry chapters file using a sha1 sum of their title for simplicity. Also we fix the 'Title' chapter duplicate issue by using the hash of the related entry and the suffix '_title'. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: remove TOC pageKevin Decherf2019-01-071-2/+0
| | | | | | | | | This change only remove the rendered page of the TOC at the end of the book, the TOC remains available to readers. Fixes #3603 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: replace epub identifier with unique urnKevin Decherf2019-01-061-2/+8
| | | | | | | | | | | | | | We replace the title used as the unique identifier of the epub file with a urn following the format: urn:wallabag:{sha1("wallabagUrl:listOfEntryIdsSeparatedByComma")} This format is repeatable: it always gives the same uid for the same list of entries. Fixes #3811 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* php-cs-fixerKevin Decherf2018-09-051-2/+2
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Properly run php-cs-fixerJeremy Benoist2017-10-281-23/+23
|
* php-cs-fixerMartin Trigaux2017-10-281-24/+24
| | | | php bin/php-cs-fixer fix src/Wallabag/CoreBundle/Helper/EntriesExport.php
* Set the title in a separated chapterMartin Trigaux2017-10-281-5/+4
| | | | | Set the export option on the same page, same as done in producePdf Move the ToC at the end of the book so the title page is the first one
* add a title pageMartin Trigaux2017-10-281-1/+2
| | | | The first page of the book is the title
* CSJeremy Benoist2017-10-111-3/+3
|
* Fixed @j0k3r's reviewNicolas Lœuillet2017-10-111-0/+1
|
* Fixed @tcitworld's reviewNicolas Lœuillet2017-10-111-6/+2
|
* Translated first page of exported articleNicolas Lœuillet2017-10-111-2/+7
|
* better entry txt export using html2textNicolas Hart2017-08-271-1/+3
|
* Fix some namespaces and phpdocNicolas Hart2017-07-291-2/+2
|
* Make updateAuthor code simpler to readÉtienne Gilli2017-07-101-8/+10
|
* Use the article publisher as author for exportÉtienne Gilli2017-07-091-2/+9
| | | | | When exporting an entry, use the publishedBy field as author name for epub, mobi and pdf formats. Fallback to domain name if empty.
* Use the article domain as author for export filesÉtienne Gilli2017-07-081-6/+22
| | | | | | | When exporting an entry, use the domain name as author name for epub, mobi and pdf formats, instead of 'wallabag'. Change the author from array to string, because for now, there is always only one author.
* Add a real configuration for CS-FixerJeremy Benoist2017-07-011-23/+23
|
* Add export notice at the end of the epubMartin Trigaux2017-04-051-2/+2
| | | | | | | | | The text "Produced by wallabag with PHPePub" is the first page of any epub. On ebooks reader, it is common (e.g. kobo) to use the first page as the cover of unread books, which makes it more difficult to differentiate the books. Move the Notices chapter at the end of the book.
* add cli exportThomas Citharel2017-01-221-0/+5
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Inject parameter instead of serviceJeremy Benoist2016-10-301-4/+3
| | | | | We are injecting CraueConfig service when we only need to retrieve one or two values from it. Instead I discovered we can directly inject a value from a service in the service definition!
* Fix tag testJeremy Benoist2016-10-071-1/+0
|
* Fix relations export for EntryJeremy Benoist2016-10-071-8/+4
| | | | | Tags & Annotations weren’t really well exported. This is now fixed (+ tests)
* Merge remote-tracking branch 'origin/master' into 2.1Jeremy Benoist2016-10-021-1/+1
|\
| * Remove error message when creating ePub versionsPaulino Michelazzo2016-10-021-1/+1
| | | | | | | | | | | | Trying to create a ePub version, the first page shows a message of a “missing >”. This change solve this problem (and, for sure, in any download version that’s use HTML).
* | Merge remote-tracking branch 'origin/master' into 2.1Jeremy Benoist2016-09-191-1/+5
|\|
| * Fix issue #2296: epub export with `+` in the title.Étienne Gilli2016-09-181-1/+5
| |
* | Export dates from entriesJeremy Benoist2016-09-081-1/+2
|/
* Convert array + phpDocJeremy Benoist2016-04-121-23/+52
| | | | Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
* Remove some complexicity in InstallCommandJeremy Benoist2016-03-281-0/+2
|
* Tags were not imported in wallabag v2 importJeremy Benoist2016-03-271-26/+8
| | | | Also, simplify exportAs matching format
* Exported entries were added twice in export fileNicolas Lœuillet2016-02-051-7/+8
|
* CSJeremy Benoist2016-02-041-4/+4
|
* put the equals bar outside the loopThomas Citharel2016-02-041-1/+2
|
* remove old dependancyThomas Citharel2016-02-041-1/+0
|
* better display for txtThomas Citharel2016-02-041-2/+2
|
* add txt exportThomas Citharel2016-02-041-0/+22
|
* Add CraueConfig for internal settingsJeremy Benoist2016-01-311-3/+4
|
* Symfony Upgrade Fixer FTWJeremy Benoist2016-01-151-3/+3
| | | | symfony-upgrade-fixer fix src/Wallabag/
* Fix route parametersJeremy Benoist2015-11-091-2/+10
| | | | | Improve export tests Improve CSV export
* use JMS SerializerThomas Citharel2015-11-091-12/+5
|
* use the groups annotation instead of setIgnoredAttributesThomas Citharel2015-11-091-4/+7
|