GithubHelp home page GithubHelp logo

prezi-2-to-3's People

Contributors

azaroth42 avatar bvibber avatar cjcolvar avatar glenrobson avatar zimeon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

prezi-2-to-3's Issues

JavaScript version that can run in node or browser

Per discussion at the BL meeting there's some interest in a JavaScript version of this which could be used to recode version 2 manifests to 3 on the fly, such as in a v3 web viewer. (Or could be run in a server context via node.)

I can give this a try; it looks pretty straightforward, the main required difference being that URI dereferencing in fix_objects() needs to be done asynchronously.

Should I make a PR against this repo or make my own separate one?

style to styleClass

Web Annotation changed style to styleClass to be more explicit.
Issue:

  • code works
  • tests pass

resource to body

The move to Web Annotation with the default context changes resource back to body.
Issue:

  • code works
  • tests

full to source

Moving to Web Annotation with the default context means changing full to source
Issue:

  • code works
  • tests

Make warnings available beyond stdout

As the service returns a real manifest, there is no slot of non-fatal warnings.

Proposal: If debug is turned on, add a _warnings property to the top level resource and collect them all there.

on to target

Remove the context definition for oa:hasTarget and use target, per Web Annotation model.
Issue:

  • code works
  • tests

Command-line upgrades have "true" as default language map key

Running prezi_2_to_3.py from the command line produces funky language maps with "true" as their default language key. Running:
python2 prezi2to3.py https://iiif.museum.colby.edu/presentation/portfolio/1334.json --output /tmp/1334.json
Results in a file with labels like:

"label": {
  "true": [
    "A View of Albany, New York"
  ]
}

My workaround thus far is just to adjust this line:

if FLAGS[key]['default'] is not str:
    type=bool

to

if type is not str:
    type=bool

But since this is the only stringy flag I'm using, not sure what other upgrader flags that might adversely affect.

label on AnnotationPage

Needs to be a string per Web Annotation context, but currently gets turned into a languageMap per IIIF context.

(several) to items

All structural containment properties were renamed to items.
Issue: IIIF/api#1145

  • collections/manifests/members
  • sequences
  • images
  • ranges/canvases/members
  • resources
  • tests

Hide certain options from web interface.

From pull request: GH-15

"Looks good.
Minor niggle about the flags for the online service allowing deref and crawl, as it could be used for denial of service ... but we can put it back if it becomes a problem in practice."

CLI: requiredStatement label not string error in output Manifest

Our Manifests are not on an open-to-the-internet server so I can't share URLs.

I'm running the CLI on a v2 Manifest to generate a v3, but when I run the v3 Manifest output against the IIIF Manifest validator (running locally), it identifies an error: 'True is not of type 'string' - in the context of the requiredStatement label.

This is the section in the output v3 Manifest where the requiredStatement issue is found:

"requiredStatement": {
    "label": {
      "true": [
        true
      ]
    }, 
    "value": {
      "true": [
        "BFI National Archive"
      ]
    }
  }, 

And this is the section in the input v2Manifest where the 'BFI National Archive' sits, in the 'attribution':

{
	"@context": "http:/iiif.io/api/presentation/2/context.json",
	"@type": "sc:Manifest",
	"@id": "https://serverDNSname/collections_assets/40000852/manifest.json",
	"label": "Title of film",
	"attribution": "BFI National Archive",

So it seems that attribution is not being added as an 'Attribution' string in the requiredStatement label -instead an unquoted true is being added.

I can work around this with a post-conversion script, or I can dig into the prezi-2-to-3 Python, but wanted to document this.

otherContent to items / annotations

otherContent on everything other than a Canvas goes to annotations. On a canvas it needs to be checked as to whether the annotations are painting or not.

  • code works
  • tests pass

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.