summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-03-17 08:43:23 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-03-17 08:43:23 (GMT)
commit5ec0ecae4ad7e7ed0d39af85c094ed8d06da067f (patch)
tree2731bcc744e88a96c3ffc1bb3186e9f1a708d94c
parenteb6922b87b1813c8c4e344eb2fc0b3a6551ea8b7 (diff)
downloadpfwbged.collection-5ec0ecae4ad7e7ed0d39af85c094ed8d06da067f.zip
pfwbged.collection-5ec0ecae4ad7e7ed0d39af85c094ed8d06da067f.tar.gz
pfwbged.collection-5ec0ecae4ad7e7ed0d39af85c094ed8d06da067f.tar.bz2
add thesaurus keywords to collection criterias (#4480)
-rw-r--r--src/pfwbged/collection/profiles/default/registry.xml12
-rw-r--r--src/pfwbged/collection/templates/criterias.pt2
2 files changed, 13 insertions, 1 deletions
diff --git a/src/pfwbged/collection/profiles/default/registry.xml b/src/pfwbged/collection/profiles/default/registry.xml
index e00d5f1..a86261e 100644
--- a/src/pfwbged/collection/profiles/default/registry.xml
+++ b/src/pfwbged/collection/profiles/default/registry.xml
@@ -27,4 +27,16 @@
<value key="group" i18n:translate="">Location</value>
</records>
+ <records interface="plone.app.querystring.interfaces.IQueryField"
+ prefix="plone.app.querystring.field.thesaurus_keywords">
+ <value key="title" i18n:translate="">Keywords</value>
+ <value key="description" i18n:translate="">Find items with given keyword</value>
+ <value key="enabled">True</value>
+ <value key="sortable">False</value>
+ <value key="operations">
+ <element>plone.app.querystring.operation.string.is</element>
+ </value>
+ <value key="group" i18n:translate="">Metadata</value>
+ </records>
+
</registry>
diff --git a/src/pfwbged/collection/templates/criterias.pt b/src/pfwbged/collection/templates/criterias.pt
index b21d973..dacb662 100644
--- a/src/pfwbged/collection/templates/criterias.pt
+++ b/src/pfwbged/collection/templates/criterias.pt
@@ -68,7 +68,7 @@
</optgroup>
<optgroup label="Rangement">
<option data-index="object_folders">Dossier</option>
- <option disabled>Thésaurus</option>
+ <option data-index="thesaurus_keywords">Mots-clés</option>
</optgroup>
<optgroup label="Autres">
<option class="subtype docs" data-index="Creator">Auteur</option>