From Fay.Cross at nottingham.ac.uk Wed Feb 1 11:50:59 2012 From: Fay.Cross at nottingham.ac.uk (Fay Cross) Date: Wed, 1 Feb 2012 11:50:59 +0000 Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) In-Reply-To: References: Message-ID: There was a bug - it only worked if you had at least 4 things in the diagram. It's fixed in the attached version. On a different point, I hadn't looked at this page type before and it took me a ridiculously long time to work out how to add the text to go with each part of the diagram. I was convinced there was a new nodes bit missing until I found where to put it. Am I just being a bit slow this morning and is it clear to everyone else? Or do you think it needs to have some instructions with it - can you add explanatory text to a page in the wizard? From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan Sent: 30 January 2012 13:24 To: Xerte Developers Discussion List Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) I am about to start extracting the language strings from the rlm file but find during prior testing that if I select the mcq option that the page just stops responding on preview. Is this a known bug? What is supposed to happen? I have tested this both in a Page Templates project and in an individual page template project using the customHotspots.rlm file and an xwd derived from the contents in templates.xwd. Kind regards Johnathan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: customHotspots.rlm Type: application/octet-stream Size: 20221 bytes Desc: customHotspots.rlm URL: From Julian.Tenney at nottingham.ac.uk Wed Feb 1 13:03:37 2012 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 1 Feb 2012 13:03:37 +0000 Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) In-Reply-To: References: Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0BA1682B28@EXCHANGE1.ad.nottingham.ac.uk> Add info using in the xwd. It shows in blue text at the bottom of the wizard. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Fay Cross Sent: 01 February 2012 11:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) There was a bug - it only worked if you had at least 4 things in the diagram. It's fixed in the attached version. On a different point, I hadn't looked at this page type before and it took me a ridiculously long time to work out how to add the text to go with each part of the diagram. I was convinced there was a new nodes bit missing until I found where to put it. Am I just being a bit slow this morning and is it clear to everyone else? Or do you think it needs to have some instructions with it - can you add explanatory text to a page in the wizard? From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan Sent: 30 January 2012 13:24 To: Xerte Developers Discussion List Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) I am about to start extracting the language strings from the rlm file but find during prior testing that if I select the mcq option that the page just stops responding on preview. Is this a known bug? What is supposed to happen? I have tested this both in a Page Templates project and in an individual page template project using the customHotspots.rlm file and an xwd derived from the contents in templates.xwd. Kind regards Johnathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Fay.Cross at nottingham.ac.uk Wed Feb 1 14:05:00 2012 From: Fay.Cross at nottingham.ac.uk (Fay Cross) Date: Wed, 1 Feb 2012 14:05:00 +0000 Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0BA1682B28@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0BA1682B28@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: Thanks, I'll add in a brief instruction for this page From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 01 February 2012 13:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) Add info using in the xwd. It shows in blue text at the bottom of the wizard. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Fay Cross Sent: 01 February 2012 11:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) There was a bug - it only worked if you had at least 4 things in the diagram. It's fixed in the attached version. On a different point, I hadn't looked at this page type before and it took me a ridiculously long time to work out how to add the text to go with each part of the diagram. I was convinced there was a new nodes bit missing until I found where to put it. Am I just being a bit slow this morning and is it clear to everyone else? Or do you think it needs to have some instructions with it - can you add explanatory text to a page in the wizard? From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan Sent: 30 January 2012 13:24 To: Xerte Developers Discussion List Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) I am about to start extracting the language strings from the rlm file but find during prior testing that if I select the mcq option that the page just stops responding on preview. Is this a known bug? What is supposed to happen? I have tested this both in a Page Templates project and in an individual page template project using the customHotspots.rlm file and an xwd derived from the contents in templates.xwd. Kind regards Johnathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnathan.kemp at ntlworld.com Wed Feb 1 19:32:24 2012 From: johnathan.kemp at ntlworld.com (Kemp Johnathan) Date: Wed, 1 Feb 2012 19:32:24 +0000 Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) In-Reply-To: References: <12C67A1EEC419342AF5E59DA31562C3F0BA1682B28@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: Thank you for figuring out what was wrong with the mcq part of the page. If you check your model file you will find a couple of references to "hotspotImage" that should be "customHotspots". The format of the xwd newNode line with the inclusion of CDATA (shown in blue) to receive the drawing information is different to most other xwd files CDATA ]]> Compared for example to the quiz page equivalent in which there is no CDATA entry between the main block and the ending tag. ]]> I have performed tests, trying to remove the CDATA but it appears essential for holding the drawing data. However this in itself appears to be creating an issue in that the presence of the CDATA entry prevents the addition of any child data items to the page. I have tried adding a child item and what happens in the display of the xwd form is that the child item is preceded in the page structure display at the left of the form by a prior entry which lists as [type Function][type Function] The child entry is displayed below this and the child data is displayed in the form's right-hand panel. However on closing the form the information for the child item is lost. If you re-order the sequence so that the child item is above the [type Function][type Function] entry, then on closing the form the child data is saved but the drawing data is lost. Do you know of any way we could get around this so that a child item can be added? The page contains quite a number of display text that is built into the model. e.g. "question 1 of 3", "Explore the diagram, click on the various parts to learn more". To internationalise the page I need to put this text in an author modifiable format in the xwd form. I would prefer to have a newNode item that could present a form for this data. There are to many entries to add them to the main form without producing a very lengthy form. I know I can just add the data items to the newNode line for the page but I want also to allow the Author to be able to change the default values. I cannot make them simply optional properties as they will all display in the main form as soon as I include the default values in the newNodes line that creates the page. Further I don't want the author to be able to delete the values. Anyone any ideas how a child node could be added to this page? Kind regards Johnathan On 1 February 2012 14:05, Fay Cross wrote: > Thanks, I?ll add in a brief instruction for this page > > > > *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Julian Tenney > *Sent:* 01 February 2012 13:04 > > *To:* For Xerte technical developers > *Subject:* [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) > > > > Add info using in the > xwd. > > > > It shows in blue text at the bottom of the wizard. > > > > *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Fay Cross > *Sent:* 01 February 2012 11:51 > *To:* For Xerte technical developers > *Subject:* [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) > > > > There was a bug ? it only worked if you had at least 4 things in the > diagram. It?s fixed in the attached version. > > > > On a different point, I hadn?t looked at this page type before and it took > me a ridiculously long time to work out how to add the text to go with each > part of the diagram. I was convinced there was a new nodes bit missing > until I found where to put it. Am I just being a bit slow this morning and > is it clear to everyone else? Or do you think it needs to have some > instructions with it ? can you add explanatory text to a page in the wizard? > > > > *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Kemp Johnathan > *Sent:* 30 January 2012 13:24 > *To:* Xerte Developers Discussion List > *Subject:* [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) > > > > I am about to start extracting the language strings from the rlm file but > find during prior testing that if I select the mcq option that the page > just stops responding on preview. > > > > Is this a known bug? What is supposed to happen? > > > > I have tested this both in a Page Templates project and in an individual > page template project using the customHotspots.rlm file and an xwd derived > from the contents in templates.xwd. > > > > Kind regards > > > > Johnathan > > This message and any attachment are intended solely for the addressee and > may contain confidential information. If you have received this message in > error, please send it back to me, and immediately delete it. Please do not > use, copy or disclose the information contained in this message or in any > attachment. Any views or opinions expressed by the author of this email do > not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an > attachment may still contain software viruses which could damage your > computer system: you are advised to perform your own checks. Email > communications with the University of Nottingham may be monitored as > permitted by UK legislation. > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > This message and any attachment are intended solely for the addressee and > may contain confidential information. If you have received this message in > error, please send it back to me, and immediately delete it. Please do > not use, copy or disclose the information contained in this message or in > any attachment. Any views or opinions expressed by the author of this > email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Julian.Tenney at nottingham.ac.uk Thu Feb 2 08:34:05 2012 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Thu, 2 Feb 2012 08:34:05 +0000 Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) In-Reply-To: References: <12C67A1EEC419342AF5E59DA31562C3F0BA1682B28@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0BA178B83C@EXCHANGE1.ad.nottingham.ac.uk> Hmm. Not sure. That's a bit tricky. The CDATA is needed - it's there as a placeholder to force the node to be a text node; without it, you can push xml into the nodeValue, and the custom hotspots is xml data. It can't be stored as an attribute because of the formatting. The answer is to re-jig the nodes slightly, but this might break existing stuff... CDATA //a text node for the xml describing the drawing. //children get added to this, not the page ...and I'm not sure how that's going to work in the wizard. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan Sent: 01 February 2012 19:32 To: For Xerte technical developers Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) Thank you for figuring out what was wrong with the mcq part of the page. If you check your model file you will find a couple of references to "hotspotImage" that should be "customHotspots". The format of the xwd newNode line with the inclusion of CDATA (shown in blue) to receive the drawing information is different to most other xwd files CDATA]]> Compared for example to the quiz page equivalent in which there is no CDATA entry between the main block and the ending tag. ]]> I have performed tests, trying to remove the CDATA but it appears essential for holding the drawing data. However this in itself appears to be creating an issue in that the presence of the CDATA entry prevents the addition of any child data items to the page. I have tried adding a child item and what happens in the display of the xwd form is that the child item is preceded in the page structure display at the left of the form by a prior entry which lists as [type Function][type Function] The child entry is displayed below this and the child data is displayed in the form's right-hand panel. However on closing the form the information for the child item is lost. If you re-order the sequence so that the child item is above the [type Function][type Function] entry, then on closing the form the child data is saved but the drawing data is lost. Do you know of any way we could get around this so that a child item can be added? The page contains quite a number of display text that is built into the model. e.g. "question 1 of 3", "Explore the diagram, click on the various parts to learn more". To internationalise the page I need to put this text in an author modifiable format in the xwd form. I would prefer to have a newNode item that could present a form for this data. There are to many entries to add them to the main form without producing a very lengthy form. I know I can just add the data items to the newNode line for the page but I want also to allow the Author to be able to change the default values. I cannot make them simply optional properties as they will all display in the main form as soon as I include the default values in the newNodes line that creates the page. Further I don't want the author to be able to delete the values. Anyone any ideas how a child node could be added to this page? Kind regards Johnathan On 1 February 2012 14:05, Fay Cross > wrote: Thanks, I'll add in a brief instruction for this page From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 01 February 2012 13:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) Add info using in the xwd. It shows in blue text at the bottom of the wizard. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Fay Cross Sent: 01 February 2012 11:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) There was a bug - it only worked if you had at least 4 things in the diagram. It's fixed in the attached version. On a different point, I hadn't looked at this page type before and it took me a ridiculously long time to work out how to add the text to go with each part of the diagram. I was convinced there was a new nodes bit missing until I found where to put it. Am I just being a bit slow this morning and is it clear to everyone else? Or do you think it needs to have some instructions with it - can you add explanatory text to a page in the wizard? From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan Sent: 30 January 2012 13:24 To: Xerte Developers Discussion List Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) I am about to start extracting the language strings from the rlm file but find during prior testing that if I select the mcq option that the page just stops responding on preview. Is this a known bug? What is supposed to happen? I have tested this both in a Page Templates project and in an individual page template project using the customHotspots.rlm file and an xwd derived from the contents in templates.xwd. Kind regards Johnathan This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnathan.kemp at ntlworld.com Thu Feb 2 11:22:54 2012 From: johnathan.kemp at ntlworld.com (Kemp Johnathan) Date: Thu, 2 Feb 2012 11:22:54 +0000 Subject: [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0BA178B83C@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0BA1682B28@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0BA178B83C@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: Assuming the approach you refer to above could be made to work, what would be the preference for the Xerte project? a) The page as it operates now, offering backward compatibility with existing toolkit projects customHotspot pages, but at a cost of having a rather long form with all the display text strings listed at the bottom of the form so that the author can edit them. b) A redesigned form that kept the display text in a separate sub form, but at a cost of losing backward compatibility with existing toolkit project based customHotspot pages, due to structural changes in the pages xml data. I'm guessing option a) but its not my call to make. Kind regards Johnathan On 2 February 2012 08:34, Julian Tenney wrote: > Hmm. Not sure. That?s a bit tricky. The CDATA is needed ? it?s there as a > placeholder to force the node to be a text node; without it, you can push > xml into the nodeValue, and the custom hotspots is xml data. It can?t be > stored as an attribute because of the formatting. > > > > The answer is to re-jig the nodes slightly, but this might break existing > stuff? > > > > > > CDATA //a text node for the xml describing the > drawing. > > //children get added to this, not the page > > > > > > ?and I?m not sure how that?s going to work in the wizard. > > > > *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Kemp Johnathan > *Sent:* 01 February 2012 19:32 > > *To:* For Xerte technical developers > *Subject:* [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) > > > > Thank you for figuring out what was wrong with the mcq part of the page. > > > > If you check your model file you will find a couple of references to > "hotspotImage" that should be "customHotspots". > > > > The format of the xwd newNode line with the inclusion of CDATA (shown in > blue) to receive the drawing information is different to most other xwd > files > > > > > text="Enter text for the page here" highlightColour="0xFFFF00" > lineWidth="1" interactivity="Hotspots" showShapes="true">CDATA > ]]> > > > > > Compared for example to the quiz page equivalent in which there is no > CDATA entry between the main block and the ending tag. > > > > > numQuestions="All" align="left" panelWidth="Medium" instructions="Provide > instructions here" judge="true" feedback="Provide feedback here"/>]]> > > > > > I have performed tests, trying to remove the CDATA but it appears > essential for holding the drawing data. > > > > However this in itself appears to be creating an issue in that the > presence of the CDATA entry prevents the addition of any child data items > to the page. > > > > I have tried adding a child item and what happens in the display of the > xwd form is that the child item is preceded in the page structure display > at the left of the form by a prior entry which lists as > > > > [type Function][type Function] > > > > The child entry is displayed below this and the child data is displayed in > the form's right-hand panel. However on closing the form the information > for the child item is lost. If you re-order the sequence so that the child > item is above the [type Function][type Function] entry, then on closing the > form the child data is saved but the drawing data is lost. > > > > Do you know of any way we could get around this so that a child item can > be added? > > > > The page contains quite a number of display text that is built into the > model. e.g. "question 1 of 3", "Explore the diagram, click on the various > parts to learn more". > > To internationalise the page I need to put this text in an author > modifiable format in the xwd form. I would prefer to have a newNode item > that could present a form for this data. There are to many entries to add > them to the main form without producing a very lengthy form. I know I can > just add the data items to the newNode line for the page but I want also to > allow the Author to be able to change the default values. I cannot make > them simply optional properties as they will all display in the main form > as soon as I include the default values in the newNodes line that creates > the page. Further I don't want the author to be able to delete the values. > > > > Anyone any ideas how a child node could be added to this page? > > > > Kind regards > > > > Johnathan > > > > On 1 February 2012 14:05, Fay Cross wrote: > > Thanks, I?ll add in a brief instruction for this page > > > > *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Julian Tenney > *Sent:* 01 February 2012 13:04 > > > *To:* For Xerte technical developers > *Subject:* [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) > > > > Add info using in the > xwd. > > > > It shows in blue text at the bottom of the wizard. > > > > *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Fay Cross > *Sent:* 01 February 2012 11:51 > *To:* For Xerte technical developers > *Subject:* [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) > > > > There was a bug ? it only worked if you had at least 4 things in the > diagram. It?s fixed in the attached version. > > > > On a different point, I hadn?t looked at this page type before and it took > me a ridiculously long time to work out how to add the text to go with each > part of the diagram. I was convinced there was a new nodes bit missing > until I found where to put it. Am I just being a bit slow this morning and > is it clear to everyone else? Or do you think it needs to have some > instructions with it ? can you add explanatory text to a page in the wizard? > > > > *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Kemp Johnathan > *Sent:* 30 January 2012 13:24 > *To:* Xerte Developers Discussion List > *Subject:* [Xerte-dev] Re: Interactive Diagram Page (customHotspots.rlm) > > > > I am about to start extracting the language strings from the rlm file but > find during prior testing that if I select the mcq option that the page > just stops responding on preview. > > > > Is this a known bug? What is supposed to happen? > > > > I have tested this both in a Page Templates project and in an individual > page template project using the customHotspots.rlm file and an xwd derived > from the contents in templates.xwd. > > > > Kind regards > > > > Johnathan > > > > This message and any attachment are intended solely for the addressee and > may contain confidential information. If you have received this message in > error, please send it back to me, and immediately delete it. Please do not > use, copy or disclose the information contained in this message or in any > attachment. Any views or opinions expressed by the author of this email do > not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an > attachment may still contain software viruses which could damage your > computer system: you are advised to perform your own checks. Email > communications with the University of Nottingham may be monitored as > permitted by UK legislation. > > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > This message and any attachment are intended solely for the addressee and > may contain confidential information. If you have received this message in > error, please send it back to me, and immediately delete it. Please do > not use, copy or disclose the information contained in this message or in > any attachment. Any views or opinions expressed by the author of this > email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. > > > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > This message and any attachment are intended solely for the addressee and > may contain confidential information. If you have received this message in > error, please send it back to me, and immediately delete it. Please do > not use, copy or disclose the information contained in this message or in > any attachment. Any views or opinions expressed by the author of this > email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronm at mitchellmedia.co.uk Thu Feb 2 11:53:40 2012 From: ronm at mitchellmedia.co.uk (Ron Mitchell) Date: Thu, 2 Feb 2012 11:53:40 -0000 Subject: [Xerte-dev] Re: [Xerte] Re: Embed content page In-Reply-To: References: <12C67A1EEC419342AF5E59DA31562C3F0BA1682459@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0BA168245C@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0BA16824E4@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <004201cce1a1$507c7620$f1756260$@co.uk> Hi all firstly apologies for what will be a long message and also I decided it would be better to continue to discuss this on the dev list rather than the main list hope that's ok... I'm a big fan of the embed content page because it addresses one of the barriers a lot of people come up with about not being able to embed their favourite web 2 sites/resources etc to big thanks to whoever contributed to this! So anyway to continue this thread and Jonthan's tests I've been testing and comparing files and versions and I think Julian indicated the most up-to-date embedDiv.rlm is in the xerte svn rather than xot svn. However I could easily be wrong but from my tests I don't think that's the case. I'm assuming that the code in embedDiv.rlm and it's dependencies evolved since it was first added and I think at first the window size was fixed regardless of LO screen size setting and at some point Julian or Pat or someone else? improved this so that the embed window reflected the LO screen size setting. From my tests this works great with one possible caveat that I'll cover below but first the difference between the current xerte embedDiv.rlm and the current XOT embedDiv.rlm. I think the latter is newer and the correct/best version and the crucial difference is shown in the attached txt file. The other key issue from my tests is what happens when an XOT LO using the embed content or new window page is exported. Here's the result of my tests: \website_code\php\scorm\scorm_library.php is what creates the index.htm which is part of the normal zip export As far as I can tell it does this by opening \modules\xerte\player\rloObject.htm and renaming that as index.htm and adding to the zip When exporting as scorm a similar thing happens but in this case it's \modules\xerte\scorm\scormRLO.htm that get's opened and made part of the exported zip So at the moment when exporting from XOT as either normal zip or scorm zip the embed content and new window pages don't work because \modules\xerte\player\rloObject.htm and \modules\xerte\scorm\scormRLO.htm don't currently contain the relevant window code. When previewing or playing via xot the embed content and new window pages work because the required window code is in \modules\xerte\preview_xerte_top The quickest solution is to add the relevant code from \modules\xerte\preview_xerte_top to both \modules\xerte\player\rloObject.htm and \modules\xerte\scorm\scormRLO.htm These then get exported as part of the zip and include the code to make the pages work. As well as the window and div code there's a line towards the end of the files that also needs to be in place: