Search Issue in the Database Module

Search Issue in the Database Module

Graeme Boxwell發表於
Number of replies: 3

We are setting up a database activity in moodle (1.9.10). The database has embedded video players that use mms links to our windows media servers. The videos work great until we do a search.

For example, the path on the first video is: mms://videofiles/Tutorial/YoungJoblessAndLivingAtHome.wmv

but if I do a search for Jobless then the path to the video changes to mms://videofiles/Tutorial/Young<span class=

and obviously the video then wont work.

Its related to the highlighting of the search term. Is there any way of us removing the highlighting of search term. When we look at the source code of the searched page, the relevant link shows up like so:

<param name="URL" value="mms://videofiles/Tutorial/Young<span class="highlight">Jobless</span>AndLivingAtHome.wmv">

 

Thanks for any help,

Graeme

 

評比平均分數: -
In reply to Graeme Boxwell

Re: Search Issue in the Database Module

Andreas Glombitza發表於

Hi Graeme,

I had the same problem - I found a solution at http://tracker.moodle.org/browse/MDL-15550 (this worked fine for me - but note that it involves changing the PHP-code of the database module)

Hope this helps, Andi

In reply to Andreas Glombitza

Re: Search Issue in the Database Module

Graeme Boxwell發表於

Hi Andreas,

Thanks for you help there. It has solved the problem in that the <span class= is no longer being added to the URL of the video clip. But it has now added http://ourURL/mod/data/ in front of all the clips (where ourURL is the address of our test server). This is added to all the clips, including the main list (before applying a search).

So in the example above, it now becomes:

http://ourURL/mod/data/mms%3A%2F%2Fvideofiles%2FTutorial%2FYoungJoblessAndLivingAtHome.wmv

Any ideas?

Thanks for your help,

Graeme

In reply to Graeme Boxwell

Re: Search Issue in the Database Module

Andreas Glombitza發表於

Hi Graeme,

that's interesting... My guess would be, Moodle doesn't recognize mms-Links as valid links. I've also seen Moodle add the wwwroot in front of URLs that had no http:// in it.

Are you using a  URL-type field to store the server address? In that case, it might help to use a simple input-field instead, there should be no correction happening there?

Best,

Andi