Hi,
First of all,
I'm still using MH 1.3 (I'll install MH 1.4) so I hope this was not changed,
but this would be a huge change.
1. I would like to point out a problem
2. Learn about why it's like that
3. Propose a solution & get a ticket.
4. Implement it.
Problem
================
I would like help people organizing/understanding Search results in Media
Gallery. It's really simple task to build customized Media Gallery. It takes
hours for experienced jQuery programmer.
It's a great advantage of Matterhorn using XML, JSON Endpoints.
But I have noticed, that search result fields are doubled/trippled.
Is there any purpose for it?
Notice:
Endpoint:
GET /search/episode.json/xml
An the return JSON/XML is:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<search-results>
<query>...</query>
<result>...</result>
<result>...</result>
<result>...</result>
<result>...</result>
</search-result>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
It's very clear.
But when I looked at single search result it's:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<mediapackage>
<title>Rec 1</title>
</mediapackage>
<dcTitle>Rec 1</dcTitle>
<ocMediapackage>----text of mediapackage---</ocMediapackage>
</mediapackage>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<,,
What is the difference between:
result.mediapackage.title
result.dcTitle
and:
why there is a field ocMediaPackage
result.ocMediaPackage == result.mediapackage->toXml()
When I use those fields, I am confused if I should use values from MediaPackage
(mediapackage.title) or from result.dcTitle.
It's even more complex, when it comes to fields like "creator":
Mediapackage there is an option to put plenty of creators (I think so):
<creators>
<creator>A Person</creator>
</creators>
and there is a single field:
<dcCreator>A Person</dcCreator>
So.... I assume (I haven't checked it) that in case:
<creators>
<creator>Person A</creator>
<creator>Person B</creator>
</creators>
Field dcCreator equals:
<dcCreator>Person A,Person B</dcCreator>
================================================
Proposal of a solution:
========================================================================================
I have a propoal of solution:
remove everything that is inside mediapackage, from search result:
<search-results>
<query>...</query>
<result>...</result>
<result>...</result>
<result>...</result>
<result>...</result>
</search-result>
and
result is:
<result>
<mediapackage>
<score>4.3</score>
</result>
since: title creator etc are inside mediapackage, and is a part of a result.
Document in details what fields in MediaPackage are (like "score"), and that
those will be there.
OR:
If those values may differ, then - I would like to have them documented in a
ODT or HTML file somewhere (I will of course document it, and post it here).
===========
I think those are copies of the same value (at least those look like).
What do you think about it?
-Pawel
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn
To unsubscribe please email
[email protected]
_______________________________________________