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

Update annotation.rb #70

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

minusdavid
Copy link

According to http://iiif.io/api/presentation/2.0/#image-resources, "the URI of the canvas must be repeated in the on field of the Annotation". This patch adds the "on" field to the annotation class and makes it a required field.

It's worth noting that without this patch, https://github.com/IIIF/presentation-validator will fail the validation for an O'Sullivan generated manifest that contains an annotation. With the patch, it will succeed.

end

def string_only_keys
super + %w{ on }

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like you're missing an end for this method. You aren't by chance a Python programmer are you 😉 ?

Copy link
Author

Choose a reason for hiding this comment

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

Ooops!

I'm actually more of a Perl programmer, but I was working on Python earlier in the day, so maybe that was it!

Actually, looking at my local copy, I've got the "end" in there. I didn't copy and paste so my head must have still been in Python mode ;)

Copy link
Author

Choose a reason for hiding this comment

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

Added another commit to fix that missing "end".

I'm using the Github browser editor out of laziness/a desire for speed, but I admit I'm not so familiar with the web interface. Used to doing everything on the CLI...

@coveralls
Copy link

coveralls commented Mar 20, 2018

Coverage Status

Coverage remained the same at ?% when pulling 3772304 on minusdavid:minusdavid-patch-1 into d659b73 on iiif-prezi:development.

@minusdavid
Copy link
Author

Anything else I need to do to move this one along?

@minusdavid
Copy link
Author

Still interested in getting this one if possible.

@jcoyne
Copy link
Collaborator

jcoyne commented May 18, 2018

The build is failing and it looks like it might be a remote resource at princeton has moved to a different location. Maybe try rebasing this against master?

@minusdavid
Copy link
Author

Apologies for the delay, @jcoyne.

However, it looks like it isn't behind master. The last commit in master is from January 2017, and my 2 commits are from March 2018.

If the build is failing, I think that's actually a pre-existing problem in master.

@minusdavid
Copy link
Author

Looking at https://travis-ci.org/iiif-prezi/osullivan/builds, it says build passing... but I don't think there's been a build on master since January 2017...

@minusdavid
Copy link
Author

Could I get someone to look at the CI build? I'm pretty sure my code isn't the issue. I think there's a pre-existing issue in the master codebase.

@ConorSheehan1
Copy link
Contributor

@minusdavid I think @jcoyne is right about the priceton resource change causing the problem. I updated the specs to use the new address and my build just passed. See pr #73

@jcoyne
Copy link
Collaborator

jcoyne commented Oct 4, 2018

@minusdavid Conor fixed the pre-existing problem, so if you would rebase on master, the tests will hopefully pass.

@minusdavid
Copy link
Author

Cheers folks. I'll rebase and give it a go.

@minusdavid
Copy link
Author

Ah I think maybe I was/am confused about the proper branch for this to go into... what do you develop against? The development branch?

According to http://iiif.io/api/presentation/2.0/#image-resources, "the URI of the canvas must be repeated in the on field of the Annotation". This patch adds the "on" field to the annotation class and makes it a required field. 

It's worth noting that without this patch, https://github.com/IIIF/presentation-validator will fail the validation for an O'Sullivan generated manifest that contains an annotation. With the patch, it will succeed.
@minusdavid
Copy link
Author

Hurray! Thanks again. Apologies for the delay on my end.

@minusdavid
Copy link
Author

Any chance of us getting this one in? Without it, the IIIF manifests fail when they go through a validator.

@minusdavid
Copy link
Author

Still waiting on this one.

Is this project dead now?

@minusdavid
Copy link
Author

Is anyone monitoring this repository anymore?

I'm thinking that I might end up forking and just updating locally, as it doesn't seem like this is maintained anymore?

@minusdavid
Copy link
Author

I'm noticing lots of commits from @cbeer. Would it be possible to get this pull request merged?

I'm curious about the direction of the project as well, as it would be great to see support for new versions of the IIIF Presentation API as well...

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.

4 participants