1
1
/**
2
2
* Copyright (c) 2008-2011 The Open Planning Project
3
- *
3
+ *
4
4
* Published under the GPL license.
5
5
* See https://github.com/opengeo/gxp/raw/master/license.txt for the full text
6
6
* of the license.
@@ -32,6 +32,13 @@ gxp.plugins.CatalogueSource = Ext.extend(gxp.plugins.WMSSource, {
32
32
*/
33
33
url : null ,
34
34
35
+ /** api: config[fullMetadataUrlTpl]
36
+ * ``String`` Ext XTemplate String with 'id' as parameter for URL to full metadata,
37
+ * e.g. custom URL to website for CSW.
38
+ * Example: 'http://www.nationaalgeoregister.nl/geonetwork/srv/dut/search?uuid={id}'
39
+ */
40
+ fullMetadataUrlTpl : null ,
41
+
35
42
/** api: config[yx]
36
43
* ``Object`` Members in the yx object are used to determine if a CRS URN
37
44
* corresponds to a CRS with y,x axis order. Member names are CRS URNs
@@ -51,7 +58,7 @@ gxp.plugins.CatalogueSource = Ext.extend(gxp.plugins.WMSSource, {
51
58
52
59
/** api: config[hidden]
53
60
* ``Boolean`` Normally we do not want these sources to show up in the
54
- * AddLayers dialog for the source combobox. Set to false for a certain
61
+ * AddLayers dialog for the source combobox. Set to false for a certain
55
62
* source to show up anyway whenever that makes sense, e.g. by using a
56
63
* catalogue source to retrieve all the layers for a capabilities grid.
57
64
*/
@@ -64,6 +71,17 @@ gxp.plugins.CatalogueSource = Ext.extend(gxp.plugins.WMSSource, {
64
71
*/
65
72
proxyOptions : null ,
66
73
74
+ /** private: method[constructor]
75
+ */
76
+ constructor : function ( config ) {
77
+ gxp . plugins . CatalogueSource . superclass . constructor . apply ( this , arguments ) ;
78
+
79
+ // Possible full catalog MD record URL
80
+ if ( config && config . fullMetadataUrlTpl ) {
81
+ this . fullMetadataUrlTpl = new Ext . XTemplate ( config . fullMetadataUrlTpl ) ;
82
+ }
83
+ } ,
84
+
67
85
/** api: method[describeLayer]
68
86
* :arg rec: ``GeoExt.data.LayerRecord`` the layer to issue a WMS
69
87
* DescribeLayer request for
@@ -121,10 +139,10 @@ gxp.plugins.CatalogueSource = Ext.extend(gxp.plugins.WMSSource, {
121
139
*
122
140
* .. list-table::
123
141
* :widths: 20 80
124
- *
142
+ *
125
143
* * - ``queryString``
126
144
* - the search string
127
- * * - ``limit``
145
+ * * - ``limit``
128
146
* - the maximum number of records to retrieve
129
147
* * - ``filters``
130
148
* - additional filters to include in the query
0 commit comments