Project

General

Profile

« Previous | Next » 

Revision 45268

fixed xquery to retrieve format-layout-interpretation

View differences:

modules/dnet-modular-index-ui/trunk/src/main/java/eu/dnetlib/functionality/modular/ui/index/IndexServiceInternalController.java
72 72
	public List<MdFormatInfo> indexMetadataFormats(final ModelMap map) throws Exception {
73 73
		final String xquery =
74 74
				"for $x in //RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='MDFormatDSResourceType'] "
75
						+ "let $format:= $x//CONFIGURATION/NAME/string()  for $y in $x//LAYOUTS/LAYOUT  let $layout:= $y//LAYOUT/@name/string() "
75
						+ "let $format:= $x//CONFIGURATION/NAME/string()  for $y in $x//LAYOUTS/LAYOUT  let $layout:= $y/@name/string() "
76 76
						+ "let $interpretation:= $x//CONFIGURATION/INTERPRETATION/text() let $id:=$x//RESOURCE_IDENTIFIER/@value/string() "
77 77
						+ " return concat($format,'-',$layout,'-',$interpretation,'::', $id) ";
78 78
		log.debug("Executing lookup query" + xquery);

Also available in: Unified diff