Bug 289283 - HTMLExport: add keyboard navigation and image preloading to floating_cards theme [patch]
Summary: HTMLExport: add keyboard navigation and image preloading to floating_cards th...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-HTMLGallery (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-18 14:34 UTC by Jiri Bohac
Modified: 2017-05-04 18:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.6.0
Sentry Crash Report:


Attachments
proposed patch (4.31 KB, patch)
2011-12-18 14:34 UTC, Jiri Bohac
Details
refreshed patch against current git (8.32 KB, patch)
2011-12-18 21:24 UTC, Jiri Bohac
Details
refreshed patch against current git (4.31 KB, patch)
2011-12-18 21:25 UTC, Jiri Bohac
Details
patch fixed to produce valid XHTML (4.35 KB, patch)
2011-12-28 22:02 UTC, Jiri Bohac
Details
patch that applies on top of current git, without patch from Bug 149269 (4.38 KB, patch)
2012-01-01 20:27 UTC, Jiri Bohac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Bohac 2011-12-18 14:34:58 UTC
Created attachment 66865 [details]
proposed patch

Version:           1.4.0 (using Devel) 
OS:                Linux

Please see the attached patch:

    HTML Export: improve floating_cards theme
    
    - adds optional javascript-based keyboard navigation
      (left arrow = previous image, right arrow = next image)
    
    - adds optional preloading of next image

The patch applies on top of my patch in Bug#149269, but the fuzz in the .desktop file is trivial to resolve, in case the other patch does not get accepted.


Reproducible: Always



Expected Results:  
.
Comment 1 caulier.gilles 2011-12-18 16:02:54 UTC
Thanks Jiri.

Your patch is processed against code from git/master i hope ? I would to include it to next 2.5.0 release.

Look details here : 

http://digikam.org/drupal/contrib

This remark is also valid for Bug #149269

Gilles Caulier
Comment 2 Jiri Bohac 2011-12-18 21:24:03 UTC
Created attachment 66884 [details]
refreshed patch against current git

umm, no, it was against 1.4.0 (lame, I know ... obviously, I have been looking at a rather outdated page http://www.kipi-plugins.org/drupal/node/5 )
This is a refreshed patch against current git - the only difference was some whitespace cleanup, fortunately. Compile-tested.
Comment 3 Jiri Bohac 2011-12-18 21:25:51 UTC
Created attachment 66885 [details]
refreshed patch against current git

eek - this is the correct refreshed patch (the previous one was for the other bug)
Comment 4 Jiri Bohac 2011-12-28 22:02:14 UTC
Created attachment 67206 [details]
patch fixed to produce valid XHTML

one more update: the original version of the patch produced invalid XHTML. I now reshuffled the newly added elements to pass XHTML validation.
Comment 5 caulier.gilles 2011-12-31 14:04:29 UTC
Patch failed to be applied to git master :

[gilles@localhost kipi-plugins]$ pwd
/mnt/data/Devel/GIT/2.x/extra/kipi-plugins

[gilles@localhost kipi-plugins]$ patch -p1 < floating_cards_add_keyboard_navigation_and_image_preloading.patch

patching file htmlexport/themes/floating_cards/floating_cards.desktop
Hunk #1 FAILED at 137.
1 out of 1 hunk FAILED -- saving rejects to file htmlexport/themes/floating_cards/floating_cards.desktop.rej
patching file htmlexport/themes/floating_cards/image_nav.js
patching file htmlexport/themes/floating_cards/style.css
patching file htmlexport/themes/floating_cards/template.xsl

Please make patch as it's described here :

http://www.digikam.org/drupal/contrib

Gilles Caulier
Comment 6 Jiri Bohac 2012-01-01 20:24:20 UTC
(In reply to comment #5)
> [gilles@localhost kipi-plugins]$ patch -p1 <
> floating_cards_add_keyboard_navigation_and_image_preloading.patch
> 
> patching file htmlexport/themes/floating_cards/floating_cards.desktop
> Hunk #1 FAILED at 137.
> 1 out of 1 hunk FAILED -- saving rejects to file
> htmlexport/themes/floating_cards/floating_cards.desktop.rej

As I wrote in Comment #0, this patch applies on top of my patch in Bug #149269.
If you decide not to accept the patch form Bug #149269, I'll attach a version of this patch that applies on top of current git.
Comment 7 Jiri Bohac 2012-01-01 20:27:55 UTC
Created attachment 67309 [details]
patch that applies on top of current git, without patch from Bug 149269

(please consider applying patch from Bug #149269 first and using attachment #67206 [details] instead of this patch).
Comment 8 caulier.gilles 2012-01-03 14:47:05 UTC
Git commit e68d3076748a362e595a66af0370256d9536d0ac by Gilles Caulier.
Committed on 03/01/2012 at 15:45.
Pushed by cgilles into branch 'master'.

apply patch #67206 from Jiri Bohac

M  +30   -0    htmlexport/themes/floating_cards/floating_cards.desktop
M  +4    -0    htmlexport/themes/floating_cards/style.css
M  +10   -4    htmlexport/themes/floating_cards/template.xsl

http://commits.kde.org/kipi-plugins/e68d3076748a362e595a66af0370256d9536d0ac