<div>What are we doing, programming away at half past ten at night? <br></div><div><br></div><div>Since my last email I have created two pages using the modification discussed in my previous email. </div><div><br></div><div>
Once there are more than one page using the modification side effects start to kick in.</div><div><br></div><div>With a project with a standard page, a page based on a standard page wizard and then two pages using wizards with the new mods I found I could open the project in preview mode, use next to move each of the four pages in turn and each page displayed correctly, however once you started using the previous button to back track to earlier pages the pages based on the modified wizard were displayed as blank with respect to displaying data that was derived from the XML. Also if you used the TOC to go from the first standard page to the first modified wizard page and then back to the standard page and then the first modified wizard page again the page displayed as blank.</div>
<div><br></div><div>So unfortunately I don't think your suggestion is going to work. Pity really as it would have kept a much closer association between the rlm files of the pageTemplates and the wizards.</div><div><br>
</div><div>Kind regards</div><div><br></div><div>Johnathan</div><br><div class="gmail_quote">On 28 May 2010 22:21, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div dir="ltr">
<div dir="ltr"><font face="Arial" color="#000000" size="2">Let me know if you hit any issues. I was really just thinking aloud, and Mary's mail made something clear I hadn't seen before. Maybe it should have been more obvious, I do remember the discussion,</font></div>
<div dir="ltr"> </div>
<div dir="ltr"><font face="Arial" size="2">thanks,</font></div>
<div dir="ltr"> </div>
<div dir="ltr"><font face="Arial" size="2">J</font></div></div>
<div dir="ltr"><br>
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> on behalf of Kemp Johnathan<br><b>Sent:</b> Fri 28/05/2010 22:07<div>
<div class="h5"><br><b>To:</b> Xerte discussion list<br><b>Subject:</b> Re: [Xerte] Annotated Diagram page wizard in Xerte 2 desktop<br></div></div></font><br></div><div><div class="h5">
<div>
<div>Hello Julian and Mary,<br></div>
<div><br></div>
<div>Up till now it has been necessary to edit the rlm files that are used by the page templates project wide template in order to make them usable in page wizards.</div>
<div><br></div>
<div>The key issues were in the script named "getPageId" which contains the lines</div>
<div><br></div>
<div>myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]);</div>
<div>pageIcon.templateData = myXML.toObject();<br>rootIcon.setTitleText(templateData.learningObject[0].name);<br><br></div>
<div>The first two lines above told the rest of the code where to find the xml data.</div>
<div>The solution that you suggested to me at the time Julian was to comment out the first two lines and replace them with</div>
<div><br></div>
<div>pageIcon.templateData = pageIcon.extXML.toObject();</div>
<div><br></div>
<div>This had the side effect that all lines in the rlm file that referred to the template data e.g. </div>
<div><br></div>
<div>col = pageIcon.templateData.annotatedDiagram[0].colour;</div>
<div><br></div>
<div>had to be modified by inserting "learningObject[0]" e.g.</div>
<div><br></div>
<div>col = pageIcon.templateData.learningObject[0].annotatedDiagram[0].colour;</div>
<div><br></div>
<div>Julian if I understand you correctly you are now suggesting that instead of using the above I should replace the first two lines with</div>
<div><br></div>
<div>pageIcon.templateData = pageIcon.templateData.learningObject[0];</div>
<div><br></div>
<div>I have tried this out by </div>
<div>1. create a new folder to hold the wizard files for a page</div>
<div>2. save to this folder an xml and xwd file from another page created using the annotated page wizard</div>
<div>3. Insert into the project a model - your new Annotated Page rlm file</div>
<div>4. Set the page template property to point to the folder created in 1 above.</div>
<div>5. Edited the getPageID script to comment out the two lines discussed above and to add a new line "pageIcon.templateData = pageIcon.templateData.learningObject[0];"</div>
<div><br></div>
<div>It appears to work, in that there is no need to modify any other lines that reference templateData.</div>
<div><br></div>
<div>Note the issue of pageTitle remains as the page title still needs to be set as a property of the page, so that it is picked up by the TOC and the page header display.</div>
<div><br></div>
<div>Not having to insert learningObject[0] into new models would save me a lot of time when creating new wizards, also editing the current wizards to use this format would make them easier to maintain when incorporating changes to the standard models.</div>
<div><br></div>
<div>I am working on page wizards to incorporate the changes you have made to Annotated Diagram and DragDropLabel. I will try out the new way of defining pageIcon.templateData and see how things work out. In the event of any maintenance work needed on any of the existing page wizards I will then move them to the new approach - assuming all works as expected.</div>
<div><br></div>
<div>There is still some work to be done on the DragDropLabel as your model does not display the feedback in the event of an incorrect drop, but I am working on it.</div>
<div><br></div>
<div>Kind regards</div>
<div><br></div>
<div>Johnathan</div>
<div><br></div>
<div class="gmail_quote">On 27 May 2010 20:43, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
<div>
<div dir="ltr">
<div dir="ltr"><font face="Arial" color="#000000" size="2">I think if Jonathan switched</font></div>
<div dir="ltr"> </div>
<div dir="ltr"><font face="Arial" size="2">pageIcon.templateData = pageIcon.templateData.learningObject[0];</font></div>
<div dir="ltr"> </div>
<div dir="ltr"><font face="Arial" size="2">somewhere near the top of his files, they ought to be interchangeable?</font></div></div>
<div dir="ltr"><br>
<hr>
<font face="Tahoma" size="2">
<div><b>From:</b> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> on behalf of Mary Ann Ahearn<br></div><b>Sent:</b> Thu 27/05/2010 19:57<br><b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] Annotated Diagram page wizard in Xerte 2 desktop<br></font><br></div>
<div>
<div>
<div>Figured it out!<br><br>You need to go through the model file and substitute:<br> <br><font color="#0000ff"> pageIcon.templateData.learningObject[0].annotatedDiagram[0]<br><br></font>for every instance of <br>
<br><font color="#0000ff"> pageIcon.templateData.annotatedDiagram[0]<br><br></font>And it works like a charm.<br><br>Thanks again for the improvement to the template.<br>ma<br><br><br>At 12:00 PM 5/27/2010 -0400, you wrote:<br>
<blockquote type="cite">Thanks so much for the new models, Julian. <br><br>I must be doing something drastically wrong in trying to use them. <br><br>I have substituted each model file you sent, slightly renamed to match the old rlm file, in the xcp file that lives in my Xerte Program Files wizards Interactivity folder. <br>
<br>Next, I opened Xerte and added the AnnotatedDiagram Page Template with the proper file structure like I always do.<br><br>The wizard opens and I build my AnnotatedDiagram page with no problem.<br><br>When I go to run it, all I get is a blank panel!<br>
<br>This also happened with the first set of updated model files you sent several day ago.<br><br>If I close Xerte, put the old rlm file back, and re-build an AnnotatedDiagram page all is fine.<br><br>Does this make any sense? I'm baffled. Haven't been able to test the new models because I'm getting nothing.<br>
<br>Duh<br><br>Thanks<br>ma<br><br><br>At 09:33 AM 5/27/2010 +0100, you wrote:<br>
<blockquote type="cite">Thanks – that’s well spotted, and thanks for the info on how to fix it, new models attached,<br> <br><b>From:</b> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [ <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">mailto:xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> 26 May 2010 15:56<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> Re: [Xerte] Annotated Diagram page wizard in Xerte 2 desktop<br> <br>Hello Julian,<br> <br>Thanks for the updated models, I took a quick look at them with a view to updating the page wizards.<br>
<br>Annotated diagram <br>The new model fails to show the descriptive text for a hotspot group unless an ordinary hotspot has first been <br>actioned so that the yellow text area has been displayed.<br><br>This appears to be because in the original model the text icon named "information" was not a child of the <br>
clickHandler, but was outside of the protoLabel and protoGroupLabel icon structure, so that it could be referenced <br>both by a single annotation or a group annotation. <br> <br>By bringing it inside the protoLabel structure it is not displayed until a standard hotspot has been used. In an example where all the hotspots are contained in hotspot groups no descriptive text will ever be displayed.<br>
<br>Drag drop label<br>Colour highlighting of hotspots is no longer registering - hotspots are now boxed in black rather than yellow, so do not show up well, and when a label is dragged onto the wrong location no error message is displayed (Try again use to be displayed)<br>
<br>Kind regards<br> <br>Johnathan<br> <br>On 24 May 2010 10:43, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank"> Julian.Tenney@nottingham.ac.uk</a>> wrote:<br>Replace your models with the attached: let me know if there are any problems,<br>
<br>J<br> <br><b>From:</b> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [ <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">mailto:xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Mary Ann Ahearn<br>
<b>Sent:</b> 21 May 2010 23:07<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> Re: [Xerte] Annotated Diagram page wizard in Xerte 2 desktop<br> <br>Just tested both Annotated Diagram and Drag & Drop in the original Page Template project wide template, and the problem is there as well.<br>
<br>Interesting note is that the Hot Spot page template and the Hot Spot Page Wizard both work correctly - scrolling the too long annotation if necessary. <br><br>Hope this helps.<br><br>Thanks<br>ma<br><br>At 08:47 PM 5/21/2010 +0100, you wrote:<br>
Mary,<br><br>Have you tried creating a Xerte project based on the Page Templates project wide template and then duplicating the pages that are causing you the problem, in the corresponding page types.<br><br>It would help to know if the problems exist in the original Page Templates code or are limited to the Page Wizard based version of the page.<br>
<br>Kind regards<br><br>Johnathan<br><br>On 21 May 2010 16:21, Mary Ann Ahearn <<a href="mailto:maryann@moberg.com" target="_blank">maryann@moberg.com</a>> wrote:<br>Thank so much. <br>In the meantime, I've also discovered it's the same for the Drag & Drop page wizard.<br>
BTW, Congratulations on the award!!!! You guys are phenomenal.<br>At 03:39 PM 5/21/2010 +0100, you wrote:<br>Content-class: urn:content-classes:message<br>Content-Type: multipart/related;<br> boundary="----_=_NextPart_001_01CAF8F3.71D6CA9B";<br>
type="text/html"<br>I need to fix that - bear with me,<br>
<hr>
From: <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> on behalf of Mary Ann Ahearn<br>Sent: Fri 21/05/2010 02:32<br>To: <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a><br>
Subject: [Xerte] Annotated Diagram page wizard in Xerte 2 desktop<br>I've been using the Annotated Diagram page wizard and have come upon a problem I can't figure out how to solve and wonder if anyone can help.<br>
The annotation is quite long and extends past the bottom of the text box and beyond the bottom of the window, even though scrolling is set to auto for this text icon.<br>I've tried a number of workarounds to no avail. Could it have something to do with the fact that no text is actually assigned on the text icon itself but only in the code? Could that cause the auto scrolling option to be confused about how much screen height is needed and whether or not to scroll?<br>
Thanks hugely!<br>ma<br><br><br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br><br><br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a></blockquote>
_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a></blockquote>
</div></div></div></div><br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div><br>