Project

General

Profile

« Previous | Next » 

Revision 54200

fixed bugs

View differences:

modules/dnet-modular-uis/trunk/src/main/java/eu/dnetlib/functionality/modular/ui/index/IndexClientMap.java
7 7
import eu.dnetlib.clients.index.client.IndexClientException;
8 8
import org.apache.commons.logging.Log;
9 9
import org.apache.commons.logging.LogFactory;
10
import org.springframework.stereotype.Component;
10 11

  
11

  
12
//@Component(value = "indexClientMap")
12 13
public class IndexClientMap {
13 14

  
14 15
	private static final Log log = LogFactory.getLog(IndexClientMap.class);
modules/dnet-modular-uis/trunk/src/main/java/eu/dnetlib/functionality/modular/ui/index/IndexServiceInternalController.java
66 66
	private String gmf2documentXslt;
67 67

  
68 68
	/**
69
	 * Index metadata formats.
69
	 * index metadata formats.
70 70
	 *
71 71
	 * @param map the map
72 72
	 * @return the list< md format info>
......
86 86
	}
87 87

  
88 88
	/**
89
	 * Index datastructures.
89
	 * index datastructures.
90 90
	 *
91 91
	 * @param backend the backend
92 92
	 * @return the list< index info>
modules/dnet-modular-uis/trunk/src/main/java/eu/dnetlib/functionality/modular/ui/oai/OAIInternalController.java
159 159
			for (String p : paths) {
160 160
				pathList.add(new IndexPath(p));
161 161
			}
162
			OAIIndex idx = new OAIIndex();
163
			idx.setRepeatable(field.isRepeatable());
164
			idx.setName(field.getFieldName());
165
			idx.setPaths(pathList);
166
			indices.add(idx);
162
			if(pathList.size()>0) {
163
				OAIIndex idx = new OAIIndex();
164
				idx.setRepeatable(field.isRepeatable());
165
				idx.setName(field.getFieldName());
166
				idx.setPaths(pathList);
167
				indices.add(idx);
168
			}
167 169
		}
168 170
		String json = new Gson().toJson(indices);
169 171
		log.debug("The map of indices: " + json);
modules/dnet-modular-uis/trunk/src/main/resources/eu/dnetlib/functionality/modular/ui/oai/webContext-dnet-modular-oai-explorer-ui.xml
5 5
	<bean name="/ui/oaiExplorer.do"
6 6
	      class="eu.dnetlib.functionality.modular.ui.oai.OaiExplorerEntryPointController"
7 7
	      p:menu="Oai explorer" p:title="Oai explorer"
8
	      p:description="It is used to test the an OAI repository" p:group="DataSource Management"
8
	      p:description="It is used to test the an OAI repository" p:group="Tools"
9 9
	      p:order="30"
10 10
	      p:groupOrder="10">
11 11
		<property name="permissionLevels">
modules/dnet-modular-uis/trunk/src/main/resources/eu/dnetlib/web/resources/js/timeline.js
3290 3290
 * Delete an item after a confirmation.
3291 3291
 * The deletion can be cancelled by executing .cancelDelete() during the
3292 3292
 * triggered event 'delete'.
3293
 * @param {int} index   Index of the item to be deleted
3293
 * @param {int} index   index of the item to be deleted
3294 3294
 */
3295 3295
links.Timeline.prototype.confirmDeleteItem = function(index) {
3296 3296
    this.applyDelete = true;
......
3314 3314

  
3315 3315
/**
3316 3316
 * Delete an item
3317
 * @param {int} index   Index of the item to be deleted
3317
 * @param {int} index   index of the item to be deleted
3318 3318
 * @param {boolean} [preventRender=false]   Do not re-render timeline if true
3319 3319
 *                                          (optimization for multiple delete)
3320 3320
 */
modules/dnet-modular-uis/trunk/src/main/resources/eu/dnetlib/web/resources/js/index/index_inspector.js
7 7
			.when('/query',		                                    { templateUrl: '../resources/html/index/indexQuery.html', controller: 'indexQueryController' })
8 8
			.when('/query/:mdformat/:backend/:index/:start/:query', { templateUrl: '../resources/html/index/indexQuery.html', controller: 'indexQueryController' })
9 9
			.when('/browse',	{ templateUrl: '../resources/html/index/browse.html', controller: 'indexBrowseController' })
10
			.when('/manage',	{ templateUrl: '../resources/html/index/indexManage.html', controller: 'indexmanageController' })
10
//			.when('/manage',	{ templateUrl: '../resources/html/index/indexManage.html', controller: 'indexmanageController' })
11 11
			.when('/deletebyquery',	{ templateUrl: '../resources/html/index/deletebyquery.html', controller: 'indexdbqController' })
12 12
			.otherwise({ redirectTo: '/query' });
13 13
	}
......
25 25

  
26 26
module.filter('encodeURIComponent', function() {
27 27
	return window.encodeURIComponent;
28
});
28
});

Also available in: Unified diff