yaz/commit

Use fragmentId as the source

authorMichiel Hildebrand
Fri Mar 30 14:02:59 2012 +0200
committerMichiel Hildebrand
Fri Mar 30 14:02:59 2012 +0200
commitb6e8192c1efdc68e38b21cdaebc971645c99af78
treec3d9a0733ffb8e1f71fc23d05d3e8b7ed13bf8db
parent8482c9c673aa6c8b63a9982328f90e920072e784
Diff style: patch stat
diff --git a/lib/yaz_util.pl b/lib/yaz_util.pl
index fca1881..901a800 100644
--- a/lib/yaz_util.pl
+++ b/lib/yaz_util.pl
@@ -332,7 +332,11 @@ video_source(URL, Video, Duration) :-
 	).
 
 video_source(URL, Video) :-
-	rdf_has(URL, pprime:source, Video).
+	rdf_has(URL, pprime:source, Video),
+	!.
+video_source(URL, FragmentId) :-
+	rdf_has(URL, dc:id, FragmentId),
+	!.
 video_source(URL, URL).