Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
245 stars 149 forks source link

How to Add Inspire Data Theme to Browse Catalog? #286

Open gavincollins opened 6 years ago

gavincollins commented 6 years ago

I have a Geoportal 1.2.9 deployment, I wish to enable the Inspire Data Theme tree to the Catalog.

I have modified the browse-catalog.xml found within \webapps\geoportal\WEB-INF\classes\gpt\search\browse with entries shown below, these were applied to the customers 1.2.3 deployment:

` 32

        <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:*]]></query>
        <item>
            <id>33</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.addresses"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Addresses"]]></query>
        </item>
        <item>
            <id>34</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.administrativeUnits"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Administrative units"]]></query>
        </item>
        <item>
            <id>35</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.agriculturalAndAquacultureFacilities"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Agricultural and aquaculture facilities"]]></query>
        </item>
        <item>
            <id>36</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.areaManagementRestrictionRegulationZonesAndReportingUnits"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Area management/restriction/regulation zones and reporting units"]]></query>
        </item>
        <item>
            <id>37</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.atmosphericConditions"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Atmospheric conditions"]]></query>
        </item>
        <item>
            <id>38</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.bioGeographicalRegions"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Bio-geographical regions"]]></query>
        </item>
        <item>
            <id>39</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.buildings"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Buildings"]]></query>
        </item>
        <item>
            <id>40</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.cadastralParcels"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Cadastral parcels"]]></query>
        </item>
        <item>
            <id>41</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.coordinateReferenceSystems"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Coordinate reference systems"]]></query>
        </item>
        <item>
            <id>42</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.elevation"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Elevation"]]></query>
        </item>
        <item>
            <id>43</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.energyResources"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Energy resources"]]></query>
        </item>
        <item>
            <id>44</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.environmentalMonitoringFacilities"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Environmental monitoring facilities"]]></query>
        </item>
        <item>
            <id>45</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.geographicalGridSystems"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Geographical grid systems"]]></query>
        </item>
        <item>
            <id>46</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.geographicalNames"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Geographical names"]]></query>
        </item>
        <item>
            <id>47</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.geology"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Geology"]]></query>
        </item>
        <item>
            <id>48</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.habitatsAndBiotopes"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Habitats and biotopes"]]></query>
        </item>
        <item>
            <id>49</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.humanHealthAndSafety"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Human health and safety"]]></query>
        </item>
        <item>
            <id>50</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.hydrography"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Hydrography"]]></query>
        </item>
        <item>
            <id>51</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.landCover"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Land cover"]]></query>
        </item>
        <item>
            <id>52</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.landUser"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Land use"]]></query>
        </item>
        <item>
            <id>53</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.meteorologicalGeographicalFeatures"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Meteorological geographical features"]]></query>
        </item>
        <item>
            <id>54</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.mineralResources"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Mineral resources"]]></query>
        </item>
        <item>
            <id>55</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.naturalRiskZones"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Natural risk zones"]]></query>
        </item>
        <item>
            <id>56</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.oceanographicGeographicalFeatures"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Oceanographic geographical features"]]></query>
        </item>
        <item>
            <id>57</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.orthoimagery"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Orthoimagery"]]></query>
        </item>
        <item>
            <id>58</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.populationDistributionDemography"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Population distribution — demography"]]></query>
        </item>
        <item>
            <id>59</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.productionAndIndustrialFacilities"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Production and industrial facilities"]]></query>
        </item>
        <item>
            <id>60</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.protectedSites"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Protected sites"]]></query>
        </item>
        <item>
            <id>61</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.seaRegions"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Sea regions"]]></query>
        </item>
        <item>
            <id>62</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.soil"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Soil"]]></query>
        </item>
        <item>
            <id>63</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.speciesDistribution"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Species distribution"]]></query>
        </item>
        <item>
            <id>64</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.statisticalUnits"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Statistical units"]]></query>
        </item>
        <item>
            <id>65</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.transportNetworks"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Transport networks"]]></query>
        </item>
        <item>
            <id>66</id>
            <name resourceKey="catalog.mdParam.inspire.keyword.dataTheme.utilityAndGovernmentService"/>
            <query><![CDATA[searchText=apiso.inspireSpatialDataThemes:"Utility and governmental services"]]></query>
        </item>`

This enables the Inspire Data Theme in the catalog however metadata records aren't being assigned to the various themes correctly.

Is the configuration change I have made correct and/or is there other required steps?

Thanks, Gavin

gavincollins commented 6 years ago

@mhogeweg @zguo

zguo commented 6 years ago

It might be something either related to if the inspire profile is enabled or the index is updated according to the iso inspire indexables. you might try to upload a known inspire metadata to see if it shown in the right inspire theme to test it.

we will be release inspire geooportal based on geoportal 1.2.9 with the arcgis for inspire 10.6 pretty soon.