Hello all!

 

Following a personal request from a member of our great VuFind Community, I am hereby sharing the solution with all this list’s members , refactored after Demian’s suggestion in today’s Developers Call --- well not so fancy and ideal --  nevertheless (best I can do for the time being)… :)

 

:: Some else may be interested or suggest a better solution… ::

 

/web/interface/themes/blueprint/js/lightbox.js  --- it captures screen resolution to show a window that can be handle and occupies the right amount of “space” – PDF one is restricted to the width of the blueprint layout (950px):

 

 

++++ ( = add below others alike)

 

function getLightboxexternal(link, title) {

   

    // create a new modal dialog

    $dialog = $('<div id="modalDialog"><div class="dialogLoading">&nbsp;</div></div>')

        .load(path + '/services/External/Generic.php?url=' + link)

                .dialog({

                modal: true,

                autoOpen: false,

                closeOnEscape: true,

                title: title,

                width: screen.width-300,

                height: screen.height-250,

                close: function () {

                      $(this).remove();

                }

            });

 

  

    // done

    return $dialog.dialog('open');

}              

 

 

function getLightboxexternalPDF(link, title) {

   

    // create a new modal dialog

    $dialog = $('<div id="modalDialog"><div class="dialogLoading">&nbsp;</div></div>')

        .load(path + '/services/External/Generic.php?url=' + link)

.dialog({

                modal: true,

                autoOpen: false,

                closeOnEscape: true,

                title: title,

                width: 948,

                height: screen.height-200,

                close: function () {

                      $(this).remove();

                }

            });

 

  

    // done

    return $dialog.dialog('open');

}

 

------ having -----

 

./web/services/External/Generic.php

 

                <?php

                               echo "<div class=dialogLoading><iframe id=content src=" . $_GET['url'] . " frameborder=0 width='100%' height='100%'></iframe></div>";

                ?>

 

 

Ø  How I call them (in some related .tpl: result.tpl, core.tpl, holdings.tpl, etc.):

 

1)        result.tpl:

 

<a href="javascript: void(0)" onClick="getLightboxexternal('{$recordurl|escape:"url"}','{$summTitle}')" class="fulltext"> {translate text='Get full text online'} </a>

 

2)        core.tpl:

 

{foreach from=$coreURLs item=desc key=currentUrl name=loop}

<a href="javascript: void(0)" onClick="getLightboxexternal('{$currentUrl|escape:"url"}','{$coreShortTitle}')">{$desc|escape}</a><br/>

        {/foreach}   

 

Please let me know if you have further questions (native multimedia support: yes, tried everything, since http://www.jquerypopup.com/ to…. you name it… about 6 or 7 of them and none work (locally in my laptop = ok, along with jquery-1.4.4.min.js and jquery-ui-1.8.7.custom from blueprint theme =nothing opened as a new windows or nothing happened at all (I don’t recall all the projects, because after trying and not succeeding, deleted them from web/interface/themes/blueprint/js/  >> all with references to open external pages within those popups – none of the .js worked).

 

But if you put the embedded code of the video or swf or whatever you want to display, instead of the iframe, it should be ok… else, iframe it to the original page (full-screen view of if like in youtube: http://www.youtube.com/watch_popup?v=bZEWA71U3nI :)

 

All the best from Aveiro, Portugal,

 

Filipe

 
--------------------------

Filipe Manuel S. Bento  |  http://about.filipebento.pt/

 

Going Beyond the Bibliographic Catalog: 
The Basis for a New Participatory Scientific Information Discovery and Sharing Model

Filipe Bento and Lídia Silva (University of Aveiro, Portugal)

IGI Global, 2013. ISBN 9781466619128, p. 1-38

http://www.igi-global.com/chapter/going-beyond-bibliographic-catalog/69262

 

… part of a book that shall be really a reference to all of us (has a lot of VuFind related entries): 
Library Automation and OPAC 2.0: Information Access and Services in the 2.0 Landscape
http://www.igi-global.com/book/library-automation-opac/63870 

(read it for free: request your free 60-day e-book exam copy)

 

Computer Science Specialist | University of Aveiro, Portugal

Electronic & Telecommunication Engineering (5 yrs degree, UA) * MSc in Electronic Information Management (U.Sheffield, UK)

ESA – European Space Agency Industrial Placement (IRS / ESRIN – European Space Research Institute, Frascati [Rome], Italy)

ICPD Doctorate Candidate (UA | U.Porto) * PhD Researcher (UA/CETAC.Media), grant by FCT - Portuguese Foundation for Science and Technology

President/Chair of USE.pt Steering Committee (Portuguese Ex Libris Users’ National Association), http://metis.fe.up.pt/use/