server/src/app/Repositories/RdfDocumentRepository.php
changeset 445 b1e5ad6b2a29
parent 405 f239c8c5bb94
child 489 18613f052d56
--- a/server/src/app/Repositories/RdfDocumentRepository.php	Wed Nov 23 13:49:00 2016 +0100
+++ b/server/src/app/Repositories/RdfDocumentRepository.php	Thu Nov 24 14:39:50 2016 +0100
@@ -33,6 +33,7 @@
         "    ?doc".
         "    ?title".
         "    ?issued".
+        "    ?created".
         "    ?modified".
         "    (group_concat(distinct ?language;separator=\", \") as ?lang) ".
         "    (group_concat(distinct ?publisher;separator=\", \") as ?publishers) ".
@@ -41,12 +42,13 @@
         "      ?doc <http://purl.org/dc/elements/1.1/title> ?title.".
         "      OPTIONAL {?doc <http://purl.org/dc/elements/1.1/language> ?language.} ".
         "      OPTIONAL {?doc <http://purl.org/dc/terms/issued> ?issued.} ".
+        "      OPTIONAL {?doc <http://purl.org/dc/terms/created> ?created.} ".
         "      OPTIONAL {?doc <http://purl.org/dc/terms/modified> ?modified.} ".
         "      OPTIONAL {?doc <http://purl.org/dc/elements/1.1/publisher> ?publisher.}".
         "    }. ".
         "    %s".
         "  } ".
-        "  GROUP BY ?uri ?doc ?title ?issued ?modified ";
+        "  GROUP BY ?uri ?doc ?title ?issued ?created ?modified ";
 
     const ADDITIONAL_DOC_QUERIES = [
         "SELECT".