This started at #1321774: [meta] Media integration

There seems like there is no way to identify an issuu document url without making an http request, so I guess we should go with the embed code only to start.

This involves mainly to things:

  • A read-only stream wrapper for issuu documents.
  • Integrate with file_entity for display.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marvil07’s picture

Status: Active » Needs work

Initial version on media-integration topic branch.

freblasty’s picture

How's the progress on the media integration?

mallezie’s picture

I started working from the code in the branch. Normally i have a working version by tomorrow.

marvil07’s picture

I do not really remember what was the state of the branch, but I see in the code that it looks ready to review.

It would be great to receive your feedback/patches :-)

mallezie’s picture

I'm looking to find a way to put all the work in a patch. But my git-skills aren't very good.
worst case i'll upload a zip.

First some feedback:
-I rewrote some of the embed code. So it's possible to embed the url (for example http://issuu.com/chirojeugd-vlaanderen/docs/2011_2012sb_begeleidingsbundel) instead of the embed code.
-It reorders some of the code. (I worked from media_vimeo)
-Removed some of the youtube-code (seems you started there, which was the reason why i started from vimeo, to combine best of both worlds).
-I dont use the issuu-API but get info through embed.ly (to do this through the issuu api is work for today)
-created an image for on the embed from web media page ;-)

First zip now attached, to check, i'll give it a try for a real patch during the day.

Note: issuu has a link in the form of http://issuu.com//docs/
Currently this version still has user hardcoded in for chirojeugd-vlaanderen, so test with documents from following list.
http://issuu.com/chirojeugd-vlaanderen/docs

Greatings

mallezie’s picture

FileSize
20.97 KB

forgot to add code off cours ;-)

mallezie’s picture

FileSize
25.25 KB

Patching was easier than i thought.
It's a patch against the media-integration branch

mallezie’s picture

FileSize
38.19 KB

Here is a second patch which does some more.
First testing shows it's completerly working (for the read-only part).
It uses the link of the vimeo page instead of the embed code.

Todo's:
-It uses embed.ly to get the information from the link. Best is to change this to use the issuu_api
-I copied and adjusted the styles code form media_vimeo, but probably this needs to be removed. see http://drupal.org/node/1503158

mallezie’s picture

Status: Needs work » Needs review
FileSize
38.01 KB

And a last patch for now.
Changed embed.ly to issuu search api.

Styles probably needs being removed. But i would do that in a follow-up issuu.
Setting needs review for now

aspilicious’s picture

If you got some time, try to optimize your editor. It needs to remove trailing whitespaces ;).
I also advise to look at drupal.org/node/1354 to learn how to write proper and correct documentation for drupal7 code.

ISSUU integration is awesome btw

mallezie’s picture

mallezie’s picture

Status: Needs review » Fixed

I'm closing this issue. I commited my sandbox to this code. so basic code is in dev now. Some follow-up issues comming.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.