Revision 9237
Added by ben leinfelder about 9 years ago
lib/metacat.properties | ||
---|---|---|
629 | 629 |
dataone.hazelcast.processCluster.nodesMap=hzNodes |
630 | 630 |
|
631 | 631 |
# DataONE types XSLT |
632 |
dataone.types.xsl=/cn/xslt/dataone.types.v1.xsl |
|
632 |
dataone.types.xsl.v1=/cn/xslt/dataone.types.v1.xsl |
|
633 |
dataone.types.xsl.v2=/cn/xslt/dataone.types.v2.xsl |
|
633 | 634 |
|
635 |
|
|
634 | 636 |
# DataONE configuration settings |
635 | 637 |
dataone.ore.downloaddata=false |
636 | 638 |
dataone.ore.generated=false |
src/edu/ucsb/nceas/metacat/restservice/v1/CNResourceHandler.java | ||
---|---|---|
684 | 684 |
// style the object with a processing directive |
685 | 685 |
String stylesheet = null; |
686 | 686 |
try { |
687 |
stylesheet = PropertyService.getProperty("dataone.types.xsl"); |
|
687 |
stylesheet = PropertyService.getProperty("dataone.types.xsl.v1");
|
|
688 | 688 |
} catch (PropertyNotFoundException e) { |
689 | 689 |
logMetacat.warn("Could not locate DataONE types XSLT: " |
690 | 690 |
+ e.getMessage()); |
... | ... | |
1257 | 1257 |
// style the object with a processing directive |
1258 | 1258 |
String stylesheet = null; |
1259 | 1259 |
try { |
1260 |
stylesheet = PropertyService.getProperty("dataone.types.xsl"); |
|
1260 |
stylesheet = PropertyService.getProperty("dataone.types.xsl.v1");
|
|
1261 | 1261 |
} catch (PropertyNotFoundException e) { |
1262 | 1262 |
logMetacat.warn("Could not locate DataONE types XSLT: " |
1263 | 1263 |
+ e.getMessage()); |
src/edu/ucsb/nceas/metacat/restservice/v2/CNResourceHandler.java | ||
---|---|---|
727 | 727 |
// style the object with a processing directive |
728 | 728 |
String stylesheet = null; |
729 | 729 |
try { |
730 |
stylesheet = PropertyService.getProperty("dataone.types.xsl"); |
|
730 |
stylesheet = PropertyService.getProperty("dataone.types.xsl.v2");
|
|
731 | 731 |
} catch (PropertyNotFoundException e) { |
732 | 732 |
logMetacat.warn("Could not locate DataONE types XSLT: " |
733 | 733 |
+ e.getMessage()); |
... | ... | |
1339 | 1339 |
// style the object with a processing directive |
1340 | 1340 |
String stylesheet = null; |
1341 | 1341 |
try { |
1342 |
stylesheet = PropertyService.getProperty("dataone.types.xsl"); |
|
1342 |
stylesheet = PropertyService.getProperty("dataone.types.xsl.v2");
|
|
1343 | 1343 |
} catch (PropertyNotFoundException e) { |
1344 | 1344 |
logMetacat.warn("Could not locate DataONE types XSLT: " |
1345 | 1345 |
+ e.getMessage()); |
Also available in: Unified diff
use v1 and v2 xsl as appropriate for rendering d1 types (object format list, mostly)