From 6980ebe3aae0bc1354ca8958f5922e785aba776b Mon Sep 17 00:00:00 2001 From: Anna Gerber Date: Wed, 25 Mar 2009 05:53:40 +0000 Subject: [PATCH] More tweaking of SMIL: - repeat slideshow more times - added function to launch in new window with controlled size. - added footer text with current time to generated page --- oaiorebuilder/content/init.js | 2 +- oaiorebuilder/content/stylesheets/ORE2SMIL.xsl | 2 +- oaiorebuilder/content/uifunctions.js | 16 ++++++++++++---- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/oaiorebuilder/content/init.js b/oaiorebuilder/content/init.js index 2908a3e3..916fbe67 100644 --- a/oaiorebuilder/content/init.js +++ b/oaiorebuilder/content/init.js @@ -168,7 +168,7 @@ function init(){ propertytabs.activate("remgrid"); loreInfo("Welcome to LORE"); updateSourceLists(window.top.getBrowser().selectedBrowser.contentWindow.location.href); - welcometab.body.update("

LORE: Literature Object Re-use and Exchange

"); + welcometab.body.update("

LORE: Literature Object Re-use and Exchange

This page will provide basic getting started information

"); } diff --git a/oaiorebuilder/content/stylesheets/ORE2SMIL.xsl b/oaiorebuilder/content/stylesheets/ORE2SMIL.xsl index caf82f96..3f3abcea 100644 --- a/oaiorebuilder/content/stylesheets/ORE2SMIL.xsl +++ b/oaiorebuilder/content/stylesheets/ORE2SMIL.xsl @@ -28,7 +28,7 @@ - + diff --git a/oaiorebuilder/content/uifunctions.js b/oaiorebuilder/content/uifunctions.js index a18d1f8c..e925e85d 100644 --- a/oaiorebuilder/content/uifunctions.js +++ b/oaiorebuilder/content/uifunctions.js @@ -50,6 +50,10 @@ function showCompoundObjectSummary() { newsummary += ""; summarytab.body.update(newsummary); } +function launchWindow(url) { + newwindow=window.open(url,'name','height=650,width=800,top=200,left=250,resizable'); + if (window.focus) {newwindow.focus()} +} function showSMIL(){ var allfigures = oreGraph.getDocument().getFigures(); var numfigs = allfigures.getSize(); @@ -58,7 +62,8 @@ function showSMIL(){ var smilpath = createSMIL(); // generate the new smil file into oresmil.xsl //var smilcontents = "

SMIL:

"; - smilcontents += "

A SMIL slideshow has been generated from the contents of the current compound object.

Click here to launch the slideshow in a new window"; + smilcontents += "

A SMIL slideshow has been generated from the contents of the current compound object.

" + + "Click here to launch the slideshow in a new window"; @@ -690,6 +695,7 @@ function _updateCompoundObjectsSourceList(contextURL) { var xmldoc = req.responseXML; var result = {}; if (xmldoc) { + _clearTree(remstreeroot); result = xmldoc.getElementsByTagNameNS( "http://www.w3.org/2005/sparql-results#", "uri"); @@ -824,9 +830,11 @@ function createSMIL(){ var serializer = new XMLSerializer(); writeFile(serializer.serializeToString(resultDoc), "oresmil.smil"); var htmlwrapper = "SMIL Slideshow" + - "

" + - "" + - "
"; + "
" + + "" + + "

SMIL presentation generated by LORE on " + + "" + + "

"; return writeFile(htmlwrapper, "playsmil.html"); } catch (e){