first change for wikipedia and dbpedia lang configuration
authorcavaliet
Fri, 24 Jan 2014 17:43:38 +0100
changeset 104 415bc12426e9
parent 103 8c8ac0c941c7
child 105 88b4d5e1d278
first change for wikipedia and dbpedia lang configuration
.hgsubstate
app/config/config.yml
--- a/.hgsubstate	Fri Aug 24 13:16:25 2012 +0200
+++ b/.hgsubstate	Fri Jan 24 17:43:38 2014 +0100
@@ -1,1 +1,1 @@
-2f45e6bafb9529fa9e3a81b67ec2358eb15cecf0 vendor/bundles/IRI/Bundle/WikiTagBundle
+14653baf4f6bfe9e178b113b7a607436038ead71 vendor/bundles/IRI/Bundle/WikiTagBundle
--- a/app/config/config.yml	Fri Aug 24 13:16:25 2012 +0200
+++ b/app/config/config.yml	Fri Jan 24 17:43:38 2014 +0100
@@ -81,6 +81,12 @@
             type: text
             accessor: getCategoriesStr
             weight: 1.5
+    # 3 url template for wikipedia and dbpedia request
+    url_templates:
+        wikipedia_api: 'http://de.wikipedia.org/w/api.php'
+        wikipedia_permalink: 'http://de.wikipedia.org/w/index.php?oldid=%s'
+        wikipedia_opensearch: 'http://de.wikipedia.org/w/index.php?search='
+        dbpedia: 'http://de.dbpedia.org/resource/%s'
     # reactive_selectors is a list of jQuery selectors meant to let appear tag context search by selecting text.
     # Example of list : [ '.any_class', '#any_div .p_class', '#another_selector' ]. Write [ 'document' ] if you want the whole document/page to be reactive.
     # Do not define reactive_selectors if you want nothing to be reactive.