comparison artifacts/src/main/java/org/dive4elements/river/artifacts/CollectionMonitor.java @ 9232:5030c46d8cb4

Implemented xpath function that selectes the 'mean year' of a fixation-artifact. Needs to provide the ArtifactDatabase to the builder implementation.
author gernotbelger
date Fri, 06 Jul 2018 13:09:54 +0200
parents 5e38e2924c07
children
comparison
equal deleted inserted replaced
9231:082e8e808902 9232:5030c46d8cb4
87 recommendations = (Element)doc.importNode(e, true); 87 recommendations = (Element)doc.importNode(e, true);
88 } 88 }
89 } else { // Not found in cache -> generate it. 89 } else { // Not found in cache -> generate it.
90 Element r = createElement(XMLUtils.newDocument()); 90 Element r = createElement(XMLUtils.newDocument());
91 91
92 Recommendations.getInstance().recommend( 92 Recommendations.getInstance().recommend( artifact, null, outs, getNoneUserSpecificParameters(artifact, context), r, context);
93 artifact, null, outs,
94 getNoneUserSpecificParameters(artifact, context), r);
95 93
96 recommendations = (Element)doc.importNode(r, true); 94 recommendations = (Element)doc.importNode(r, true);
97 95
98 cache.put(new net.sf.ehcache.Element(key, r)); 96 cache.put(new net.sf.ehcache.Element(key, r));
99 } 97 }
100 } else { // No cache configured -> append directly. 98 } else { // No cache configured -> append directly.
101 99
102 recommendations = createElement(doc); 100 recommendations = createElement(doc);
103 101
104 Recommendations.getInstance().recommend( 102 Recommendations.getInstance().recommend( artifact, null, outs, getNoneUserSpecificParameters(artifact, context), recommendations, context);
105 artifact, null, outs,
106 getNoneUserSpecificParameters(artifact, context),
107 recommendations);
108 } 103 }
109 104
110 return recommendations; 105 return recommendations;
111 } 106 }
112 107

http://dive4elements.wald.intevation.org