RSS order

Asked by James Hartley

Hi all,

Long time Xibo user, first time question asker!

We have our room bookings exported to RSS in the order that we want them on screen, but when the ticker displays them they are not in order. I can't even work out what order they are displaying, as it isn't alphabetical!

We have:

Lecture Room 108
Lecture Room 109
Lecture Room 111
Lecture Room 113
Grooming Parlour

as the [Title]

[Description] is the room booking details, time of the day first(not ordering on this either, as it goes 09:00 then 13:15 then 09:30)

It displays as:

Lecture Room 113
Lecture Room 109
Lecture Room 108
Lecture Room 111
Grooming Parlour

My RSS:

<rss version="2.0">
<channel>
<title>Computer Rooms</title>
<link>www.caw.ac.uk</link>
<description>Computer Rooms</description>
<lastBuildDate>Thu, 13 Nov 2014 12:00:03 GMT</lastBuildDate>
<item>
<title>Conference Room 013</title>
<description>-</description>
<pubDate>Thu, 13 Nov 2014</pubDate>
</item>
<item>
<title>Computer Room 110</title>
<description>
14:30 - Exam Functional Skills Exam<br>09:00 - Exam Mock Exam
</description>
<pubDate>Thu, 13 Nov 2014</pubDate>
</item>
<item>
<title>Computer Room 112</title>
<description>
09:00 - Level 3 Diploma in Veterinary Nursing Day Release - CVN3DR1409
</description>
<pubDate>Thu, 13 Nov 2014</pubDate>
</item>
<item>
<title>Computer Room 114</title>
<description>08:30 - Exam</description>
<pubDate>Thu, 13 Nov 2014</pubDate>
</item>
</channel>
</rss>

Any pointers or insights would be appreciated.

Thanks

James

Question information

Language:
English Edit question
Status:
Answered
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

I've not checked but I would imagine they're sorted by publication date.
Since yours are all the same then they'll be considered equivalent.

I'm pretty sure that the specification for RSS requires a full date and
time in the pubDate field so try adding that in the appropriate format?

Revision history for this message
James Hartley (jhartley-f) said :
#2

Thank you for that Alex, it seems like a feasible explanation.

I will try some testing in the morning, removing the pub date and see if starts sorting by another field.

Not sure if it needs the pub date, if it does, I could always make them static to put the items in the right order.

Lots to think about!

I will report back in the interests of completeness.

Thanks

James

Revision history for this message
James Hartley (jhartley-f) said :
#3

Ok, removed pubDate to give me;

<rss version="2.0">
<channel>
<title>Lecture Rooms</title>
<link>www.caw.ac.uk</link>
<description>Lecture Rooms</description>
<lastBuildDate>Fri, 14 Nov 2014 06:00:03 GMT</lastBuildDate>
<item>
<title>Lecture Room 108</title>
<description>-</description>
</item>
<item>
<title>Lecture Room 109</title>
<description>
09:00 - Level 2 Diploma in Veterinary Care Assistants - Full Time - CVCAFT1409
</description>
</item>
<item>
<title>Lecture Room 111</title>
<description>
09:30 - Level 3 Extended Diploma in Animal Management - ACL3DP14
</description>
</item>
<item>
<title>Lecture Room 113</title>
<description>
09:00 - Level 3 Diploma in Veterinary Nursing Full Time - CVN3FT1409
</description>
</item>
<item>
<title>Grooming Parlour</title>
<description>-</description>
</item>
</channel>
</rss>

and still it orders them wrong, last one then second one then first then third!

Any other ideas?

thanks

james

Revision history for this message
Dan Garner (dangarner) said :
#4

If you don't have any date items it should leave them alone... so it is odd that it isn't.

You could try and disable the date parsing altogether to see if that is an issue, you'd need to edit modules/ticker.module.php on Line: 650.

You'd add:
$feed->enable_order_by_date(false);

Failing that... You don't need a pubDate to be a valid feed, but it might be better to put that date in there, with it set to the order you want them to appear. It will response to any of these element types: <atom:published>, <atom:updated>, <atom:issued>, <atom:modified>, <pubDate> or <dc:date>

Revision history for this message
James Hartley (jhartley-f) said :
#5

Bit of an update on this, its been ages since I had a look!

Ok, I made that change in ticker.module.php and on the Design window in Xibo, it is in order, but on the client it isnt!

Is there any properties to change on the client?

Thanks

James

Can you help with this problem?

Provide an answer of your own, or ask James Hartley for more information if necessary.

To post a message you must log in.