Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
François Prunayre committed Jun 11, 2014
2 parents 393a803 + 0330f91 commit 0b74f96
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 6 deletions.
Expand Up @@ -290,11 +290,11 @@ private static Element applyElementSetName(ServiceContext context, SchemaManager
String prefix ;
if (outputSchema == OutputSchema.OGC_CORE) {
prefix = "ogc";
}
else if (outputSchema == OutputSchema.ISO_PROFILE || outputSchema == OutputSchema.OWN) {
} else if (outputSchema == OutputSchema.ISO_PROFILE) {
prefix = "iso";
}
else {
} else if (outputSchema == OutputSchema.OWN) {
prefix = "own";
} else {
throw new InvalidParameterValueEx("outputSchema not supported for metadata " + id + " schema.", schema);
}

Expand Down
Expand Up @@ -35,6 +35,8 @@
scope.snippet = null;
scope.snippetRef = null;

scope.allowFreeTextKeywords = (attrs.allowFreeTextKeywords === undefined) || (attrs.allowFreeTextKeywords == 'true');

// TODO: Remove from list existing thesaurus
// in the record ?
gnThesaurusService.getAll().then(
Expand Down
@@ -1,6 +1,6 @@
<div>
<div class="btn-group">
<button class="btn btn-default" type="button" data-ng-click="add()">
<button class="btn btn-default" type="button" data-ng-click="add()" data-ng-show="allowFreeTextKeywords">
<i class="fa fa-plus gn-add"/>
<span data-translate="">addKeywordNotFromThesaurus</span>
</button>
Expand Down
Expand Up @@ -480,7 +480,14 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans
<!-- Massive update metadata services -->
<sec:intercept-url pattern="/[a-zA-Z0-9_\-]+/[a-z]{2,3}/metadata.batch.replace.new!?.*" access="hasRole('Editor')"/>

<sec:intercept-url pattern="/error" access="permitAll"/>
<!-- Reports -->
<sec:intercept-url pattern="/[a-zA-Z0-9_\-]+/[a-z]{2,3}/recordsupdated.csv!?.*" access="hasRole('UserAdmin')"/>
<sec:intercept-url pattern="/[a-zA-Z0-9_\-]+/[a-z]{2,3}/recordsinternal.csv!?.*" access="hasRole('UserAdmin')"/>
<sec:intercept-url pattern="/[a-zA-Z0-9_\-]+/[a-z]{2,3}/users.csv!?.*" access="hasRole('UserAdmin')"/>
<sec:intercept-url pattern="/[a-zA-Z0-9_\-]+/[a-z]{2,3}/datauploads.csv!?.*" access="hasRole('UserAdmin')"/>
<sec:intercept-url pattern="/[a-zA-Z0-9_\-]+/[a-z]{2,3}/datadownloads.csv!?.*" access="hasRole('UserAdmin')"/>

<sec:intercept-url pattern="/error" access="permitAll"/>
<sec:intercept-url pattern="/home\?.*" access="permitAll"/>
<sec:intercept-url pattern="/home" access="permitAll"/>

Expand Down
Expand Up @@ -71,6 +71,10 @@
</for>

<for name="gmd:descriptiveKeywords" addDirective="data-gn-thesaurus-selector"/>
<!-- Example of configuration to disable free text keywords in the thesaurus selector -->
<!--for name="gmd:descriptiveKeywords" addDirective="data-gn-thesaurus-selector">
<directiveAttributes data-allow-free-text-keywords="false" />
</for-->
</fields>


Expand Down
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="iso-brief.xsl"/>
</xsl:stylesheet>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="iso-full.xsl"/>
</xsl:stylesheet>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="iso-summary.xsl"/>
</xsl:stylesheet>

0 comments on commit 0b74f96

Please sign in to comment.