Skip to content

Commit

Permalink
#19 continue
Browse files Browse the repository at this point in the history
  • Loading branch information
epointal committed Aug 22, 2019
1 parent 021f047 commit d14f4dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 20 deletions.
16 changes: 8 additions & 8 deletions src/formater-metadata.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,17 @@ export default {
'Accept-Language': this.$i18n.locale === 'fr' ? 'fre': 'eng'
},
describe: null,
parameters: {},
// parameters: {},
// recordByLine: 4,
nbRecord: 12,
// use for opensearch api
api: null,
geographic: ['geometry', 'box', 'lat', 'lon', 'radius'],
paging: ['maxRecords', 'index', 'page'],
removedFields: ['lang', 'name', 'q', 'organisationName', 'parentIdentifier'],
osParameters: [],
geoParameters: [],
pagingParameters: [],
// api: null,
// geographic: ['geometry', 'box', 'lat', 'lon', 'radius'],
// paging: ['maxRecords', 'index', 'page'],
// removedFields: ['lang', 'name', 'q', 'organisationName', 'parentIdentifier'],
// osParameters: [],
// geoParameters: [],
// pagingParameters: [],
type: 'geonetwork'
}
},
Expand Down
4 changes: 2 additions & 2 deletions src/formater-opensearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ export default {
this.$store.commit('parametersChange', this.osParameters)
// modification des paramètres
var evt = new CustomEvent('fmt:changeParametersEvent', {detail: {parameters: this.osParameters}})
document.dispatchEvent(evt)
// var evt = new CustomEvent('fmt:changeParametersEvent', {detail: {parameters: this.osParameters}})
// document.dispatchEvent(evt)
// var event = new CustomEvent('fmt:metadataWithChildEvent', {detail: {uuid: this.uuid, depth: this.depth}})
// document.dispatchEvent(event)
Expand Down
11 changes: 1 addition & 10 deletions src/formater-requester.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,13 @@
export default {
name: 'FormaterRequester',
props: {
// lang: {
// type: String,
// default: 'en'
// },
depth: {
type: Number,
default:0
}
},
watch: {
// lang (newvalue) {
// this.$i18n.locale = newvalue
// this.$setGnLocale(newvalue)
// this.srv = process.env.GEONETWORK + 'srv/' + (newvalue === 'fr' ? 'fre' : 'eng') + '/'
// this.headers['Accept-Language'] = newvalue === 'fr' ? 'fre': 'eng'
// },
depth (newvalue) {
console.log('nouvelle valeur depth = ' + this.depth)
}
Expand Down

0 comments on commit d14f4dd

Please sign in to comment.