Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version view error #572

Closed
wants to merge 1 commit into from
Closed

Conversation

osmandin
Copy link
Contributor

Patch

@@ -295,7 +297,7 @@ private Node getFrozenNodeByLabel(final String baseResourcePath, final String la
}

private String getPath(final FedoraResource resource) throws RepositoryException {
if (resource.hasType("nt:frozenNode")) {
if (resource.hasType(FROZEN_NODE) || resource.getPath().contains(JCR_FROZEN_NODE)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we pull this logic up to e.g. FedoraTypeUtils.isFrozen?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe a method on FedoraResource?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either suggestion seems like a good fit. I lean a little towards FedoraTypeUtils.isFrozen() given the similar predicates that already live in that class.

@awoods
Copy link

awoods commented Oct 22, 2014

See: #576

@awoods awoods closed this Oct 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants