itemResourceId = resourceHelper.getId(node.getParentNode()); Document resourceDescriptor = resourceHelper.getDescriptor(manifestHelper.getResourceForId(itemResourceId, this.archiveManifest)); if (resourceHelper.isFolder(resourceDescriptor) || ("item".equals(tag) && (XPathHelper.selectNodes("./item", node).size() > 0)) || ( "item".equals(tag) && isCompoundDocument(manifestHelper.getResourceForId(itemResourceId, archiveManifest),resourceDescriptor) )) { String folderTitle = getTitleForNode(node); if (isCompoundDocument(manifestHelper.getResourceForId(itemResourceId, archiveManifest),resourceDescriptor)) { if (wantsCompanionForCompoundDocument()) { priority++; branchOfImportables.add(getCompanionForCompoundDocument(resourceDescriptor, folder)); branchOfImportables.addAll(translateFromNodeToImportables(manifestHelper.getResourceForId(itemResourceId, archiveManifest), folderPath, priority, folder)); } else { List children = XPathHelper.selectNodes("./item", node); Node resourceNode = manifestHelper.getResourceForId(itemResourceId, this.archiveManifest); if (resourceNode != null) { if (parent == null) {
itemResourceId = resourceHelper.getId(node.getParentNode()); Document resourceDescriptor = resourceHelper.getDescriptor(manifestHelper.getResourceForId(itemResourceId, this.archiveManifest)); if (resourceHelper.isFolder(resourceDescriptor) || ("item".equals(tag) && (XPathHelper.selectNodes("./item", node).size() > 0)) || ( "item".equals(tag) && isCompoundDocument(manifestHelper.getResourceForId(itemResourceId, archiveManifest),resourceDescriptor) )) { String folderTitle = getTitleForNode(node); if (isCompoundDocument(manifestHelper.getResourceForId(itemResourceId, archiveManifest),resourceDescriptor)) { if (wantsCompanionForCompoundDocument()) { priority++; branchOfImportables.add(getCompanionForCompoundDocument(resourceDescriptor, folder)); branchOfImportables.addAll(translateFromNodeToImportables(manifestHelper.getResourceForId(itemResourceId, archiveManifest), folderPath, priority, folder)); } else { List children = XPathHelper.selectNodes("./item", node); Node resourceNode = manifestHelper.getResourceForId(itemResourceId, this.archiveManifest); if (resourceNode != null) { if (parent == null) {
resourceNode = manifestHelper.getResourceForId(resourceId, this.archiveManifest); targetType = XPathHelper.getNodeValue("/COURSETOC/TARGETTYPE/@value", resourceHelper.getDescriptor(resourceNode)); if (!(("CONTENT".equals(targetType)) || ("STAFF_INFO").equals(targetType))) continue;
public String getDescription(Node itemNode) { String resourceId = XPathHelper.getNodeValue("./@identifierref", itemNode); Node resourceNode = manifestHelper.getResourceForId(resourceId, archiveManifest); return resourceHelper.getDescription(resourceNode); }
public String getDescription(Node itemNode) { String resourceId = XPathHelper.getNodeValue("./@identifierref", itemNode); Node resourceNode = manifestHelper.getResourceForId(resourceId, archiveManifest); return resourceHelper.getDescription(resourceNode); }
public String getDescription(Node itemNode) { String resourceId = XPathHelper.getNodeValue("./@identifierref", itemNode); Node resourceNode = manifestHelper.getResourceForId(resourceId, archiveManifest); return resourceHelper.getDescription(resourceNode); }
public String getDescription(Node itemNode) { String resourceId = XPathHelper.getNodeValue("./@identifierref", itemNode); Node resourceNode = manifestHelper.getResourceForId(resourceId, archiveManifest); return resourceHelper.getDescription(resourceNode); }