Commit d7cf1f7d authored by Steinberg, Jan's avatar Steinberg, Jan
Browse files

exeley special logging for exeley datasets only

parent aadafc19
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -144,13 +144,15 @@ public class XsltTransformerOaiPmhBundlesStreamSource implements BundlesStreamSo
			// exeley only takes "YYY-mm-dd" as from date
			String exeleyFrom = from.split("T")[0];
			// String exeleyUntil= until.split("T")[0];
			LOG.info("exeley specials: {} -> {}", exeleyFrom, until);
			
			if (setSpec == null || setSpec.trim().isEmpty() && mp.equals("pam")) {
				LOG.info("exeley specials: {} -> {}", exeleyFrom, until);
				return client.listIdentifiersStream(mp, exeleyFrom, until, null);
			} else if (setSpec == null || setSpec.trim().isEmpty()) {
				return client.listIdentifiersStream(mp, from, until, null);
			}
			if ( mp.equals("pam") ) {
				LOG.info("exeley specials: {} -> {}", exeleyFrom, until);
				return client.listIdentifiersStream(mp, exeleyFrom, until, setSpec);
			}
			return client.listIdentifiersStream(mp, from, until, setSpec);