work: {
title: '',
abstract: '',
- authors:[ { name:'', surname:'', inst:'', email:'' } ]
+ authors:[ { name:'', surname:'', inst:'', email:'' } ],
+ organizers: []
},
- symposium: { organizers: [ {name:'', surname:'', inst:'', email:'' } ], work_nr: 1 }
+ symposium: {
+ organizers: [],
+ work_nr: 1
+ }
};
- this.Registration = $resource( '/data/conference/Registration/:id', { id:'' } );
+ this.Registration = $resource( '/data/:database/Registration/:id', { id:'', database: database } );
this.reset();
this.$watch('$location.hashPath', this.hash_change);
this.$xhr = $xhr;
+ console.debug( 'database', database );
}
Registration.$inject=['$resource','$xhr'];
console.debug( self.$xhr );
self.$xhr("JSON"
- , "/conference/_design/symposium/_view/works?callback=JSON_CALLBACK;key=" + s_id
+ , "/" + database + "/_design/symposium/_view/works?callback=JSON_CALLBACK;key=" + s_id
, function(code, response){
console.log('symposium/_view/works', code, response);
angular.foreach( response.rows, function(row) {