]> git.parisson.com Git - telemeta.git/commitdiff
Add attribute in index for mediaItem ans mediaCollection
authorKaltar5679 <killian.mary@outlook.fr>
Thu, 23 Apr 2015 08:34:40 +0000 (10:34 +0200)
committerKaltar5679 <killian.mary@outlook.fr>
Thu, 23 Apr 2015 08:34:40 +0000 (10:34 +0200)
telemeta/search_indexes.py
telemeta/templates/search/indexes/telemeta/mediacollection_text.txt
telemeta/templates/search/indexes/telemeta/mediaitem_text.txt

index f73988bb15063838b72aac55f24e0de61d0cd640..9738d5522ed405d303d803596b5ba456cd995057 100644 (file)
@@ -11,3 +11,10 @@ class MediaItemIndex(indexes.SearchIndex, indexes.Indexable):
         return MediaItem
 
 
+class MediaCollectionIndex(indexes.SearchIndex, indexes.Indexable):
+
+    text = indexes.NgramField(document=True, use_template=True)
+    #rec_date = indexes.DateTimeField(use_template=True, null=True)
+
+    def get_model(self):
+        return MediaCollection
\ No newline at end of file
index 4665cb5533d0d9e0224f0121325f5df9f2ddc19c..9cea4c460f58ee1fabd02d861d99d4847c7fe161 100644 (file)
@@ -1,2 +1,16 @@
 {{ object.title }}
+{{ object.alt_title }}
+{{ object.creator }}
+{{ object.description }}
+{{ object.collector }}
+{{ object.publisher_serial }}
+{{ object.booklet_author }}
+{{ object.external_references }}
+{{ object.cnrs_contributor }}
+{{ object.booklet_description }}
+{{ object.alt_copies }}
+{{ object.comment }}
+{{ object.archiver_notes }}
+{{ object.items_done }}
+{{ object.conservation_site }}
 {{ object.body }}
index 5f044c0a506c6062e745c5ef789a129dcacfa681..2077d4f264865db61b73e95e859c9819b1d68041 100644 (file)
@@ -1,6 +1,12 @@
 {{ object.title }}
+{{ object.alt_title }}
 {{ object.recorded_from_date }}
 {{ object.recorded_to_date }}
 {{ object.code }}
+{{ object.old_code }}
 {{ object.location }}
+{{ object.comment }}
+{{ object.external_references }}
+{{ object.location_comment }}
+{{ object.cultural_area }}
 {{ object.body }}