yaz/commit

FIX

authorMichiel Hildebrand
Mon Jan 9 11:23:12 2012 +0100
committerMichiel Hildebrand
Mon Jan 9 11:23:12 2012 +0100
commit558989a486c395bfaa3032b080c9570aa81305dc
treec97477231b09ce897726fb79336d6ba99d950e78
parent1fb5d13edf069676df37803c351aef30a4db6a3e
Diff style: patch stat
diff --git a/applications/yaz_player.pl b/applications/yaz_player.pl
index f414d46..c8af2bd 100644
--- a/applications/yaz_player.pl
+++ b/applications/yaz_player.pl
@@ -547,7 +547,7 @@ js_search -->
 	js_function([e],
 		    \[
 '    var delay = 200,
-	 minQueryLength = 3,
+	 minQueryLength = 2,
 	 query = e.currentTarget.get("value");\n',
 '    if(Y.delayID != -1) { clearTimeout(Y.delayID); }
      Y.params.query = (query.length < minQueryLength) ? "" : query;
diff --git a/lib/video_annotation.pl b/lib/video_annotation.pl
index 5227f0b..1ff7e97 100644
--- a/lib/video_annotation.pl
+++ b/lib/video_annotation.pl
@@ -217,8 +217,8 @@ video_annotation(Video, AnnotationId, Value, Time, Score, Options) :-
 	    rdf(Tag, rdf:type, pprime:'Tag')
 	->  rdf(AnnotationId, rdf:value, Tag),
 	    Value = uri(Tag,Label)
-	;   rdf(AnnotationId, rdf:value, literal(Label))
-	->  Value = literal(Label)
+	;   rdf(AnnotationId, rdf:value, literal(Label)),
+	    Value = literal(Label)
 	),
 	rdf(AnnotationId, rdf:type, pprime:'TagEntry'),
 	annotation_in_process(Process, Video, AnnotationId),