[Xerte-dev] Re: SCORM 1.2 export
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Mon Jul 14 15:47:27 BST 2014
I've committed a change, but please could someone make sure this is correct / sensible etc,
Thanks,
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 14 July 2014 15:45
To: For Xerte technical developers
Subject: [Xerte-dev] Re: SCORM 1.2 export
Thanks Niko. We're not sure where this needs to go in setup, so it's probably a good idea if someone who does can put it straight,
Thanks,
Julian
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Nikodem Miranowicz
Sent: 14 July 2014 15:33
To: For Xerte technical developers
Subject: [Xerte-dev] Re: SCORM 1.2 export
It seems that the order of rewriteRules in htaccess is responsible for this (One can export scorm 2004 but not scorm 1.2).
The order of rules is now:
rewriteRule ^scorm2004_([0-9]+)?(.*)$ */website_code/php/scorm/export.php?template_id=$1&scorm=2004&$2
rewriteRule ^scorm_([0-9]+)?(.*)$ */website_code/php/scorm/export.php?template_id=$1&scorm=true&$2
rewriteRule ^scorm_rich_([0-9]+)?(.*)$ */website_code/php/scorm/export.php?template_id=$1&data=rich&scorm=true&$2
Where greedy "scorm_([0-9]" apparently spoils "scorm_rich_([0-9]".
My suggestion -
1. (tested): change this order (in \setup\htaccess.conf ) to:
rewriteRule ^scorm2004_([0-9]+)?(.*)$ */website_code/php/scorm/export.php?template_id=$1&scorm=2004&$2
rewriteRule ^scorm_rich_([0-9]+)?(.*)$ */website_code/php/scorm/export.php?template_id=$1&data=rich&scorm=true&$2
rewriteRule ^scorm_([0-9]+)?(.*)$ */website_code/php/scorm/export.php?template_id=$1&scorm=true&$2
2. or (untested): use [L] flag.
The same should be with lines:
rewriteRule ^export_...
rewriteRule ^export_full_...
rewriteRule ^export_local_...
Niko
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 11 July 2014 13:38
To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>)
Subject: [Xerte-dev] SCORM 1.2 export
SCORM 1.2 export isn't working here: nothing happens, nothing exports.
Any idea?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20140714/7af69458/attachment.html>
More information about the Xerte-dev
mailing list