Project

General

Profile

« Previous | Next » 

Revision 8014

include the localid when rendering the view (used in stylesheets)

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
1805 1805
	            Writer writer = new OutputStreamWriter(baos , "UTF-8");
1806 1806
	            // TODO: include more params?
1807 1807
	            Hashtable<String, String[]> params = new Hashtable<String, String[]>();
1808
	            params.put("qformat", new String[] {format});
1808
	            String localId = null;
1809
				try {
1810
					localId = IdentifierManager.getInstance().getLocalId(pid.getValue());
1811
				} catch (McdbDocNotFoundException e) {
1812
					throw new NotFound("1020", e.getMessage());
1813
				}
1814
	            params.put("qformat", new String[] {format});	            
1815
	            params.put("docid", new String[] {localId});
1816
	            params.put("pid", new String[] {pid.getValue()});
1809 1817
	            transformer.transformXMLDocument(
1810 1818
	                    documentContent , 
1811 1819
	                    sourceType, 

Also available in: Unified diff