From c1b67f5611d5ccf38e1213a0199e311b9d2c2149 Mon Sep 17 00:00:00 2001 From: edsilv Date: Thu, 30 Jul 2015 15:45:05 +0100 Subject: [PATCH] added clickthrough service profile --- bower.json | 2 +- dist/client/manifesto.js | 4 ++++ dist/manifesto.d.ts | 2 ++ dist/server/manifesto.js | 4 ++++ gulpfile.js | 2 +- package.json | 2 +- src/ServiceProfile.ts | 5 +++++ 7 files changed, 18 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index 67c07ba4..9fb3613b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "manifesto", - "version": "0.1.2", + "version": "0.1.3", "homepage": "https://github.com/edsilv/manifesto", "authors": [ "edsilv " diff --git a/dist/client/manifesto.js b/dist/client/manifesto.js index d2c81d3a..d0c13e0b 100644 --- a/dist/client/manifesto.js +++ b/dist/client/manifesto.js @@ -90,6 +90,9 @@ var Manifesto; ServiceProfile.prototype.autoComplete = function () { return new ServiceProfile(ServiceProfile.AUTOCOMPLETE.toString()); }; + ServiceProfile.prototype.clickThrough = function () { + return new ServiceProfile(ServiceProfile.CLICKTHROUGH.toString()); + }; ServiceProfile.prototype.login = function () { return new ServiceProfile(ServiceProfile.LOGIN.toString()); }; @@ -106,6 +109,7 @@ var Manifesto; return new ServiceProfile(ServiceProfile.TOKEN.toString()); }; ServiceProfile.AUTOCOMPLETE = new ServiceProfile("http://iiif.io/api/autocomplete/1/"); + ServiceProfile.CLICKTHROUGH = new ServiceProfile("http://wellcomelibrary.org/ld/iiif-ext/0/accept-terms-click-through"); ServiceProfile.LOGIN = new ServiceProfile("http://iiif.io/api/image/2/auth/login"); ServiceProfile.LOGOUT = new ServiceProfile("http://iiif.io/api/image/2/auth/logout"); ServiceProfile.OTHERMANIFESTATIONS = new ServiceProfile("http://iiif.io/api/otherManifestations.json"); diff --git a/dist/manifesto.d.ts b/dist/manifesto.d.ts index fd7f3a4d..c9836d43 100644 --- a/dist/manifesto.d.ts +++ b/dist/manifesto.d.ts @@ -37,6 +37,7 @@ declare module Manifesto { class ServiceProfile { value: string; static AUTOCOMPLETE: ServiceProfile; + static CLICKTHROUGH: ServiceProfile; static LOGIN: ServiceProfile; static LOGOUT: ServiceProfile; static OTHERMANIFESTATIONS: ServiceProfile; @@ -45,6 +46,7 @@ declare module Manifesto { constructor(value?: string); toString(): string; autoComplete(): ServiceProfile; + clickThrough(): ServiceProfile; login(): ServiceProfile; logout(): ServiceProfile; otherManifestations(): ServiceProfile; diff --git a/dist/server/manifesto.js b/dist/server/manifesto.js index 26935487..2331d114 100644 --- a/dist/server/manifesto.js +++ b/dist/server/manifesto.js @@ -89,6 +89,9 @@ var Manifesto; ServiceProfile.prototype.autoComplete = function () { return new ServiceProfile(ServiceProfile.AUTOCOMPLETE.toString()); }; + ServiceProfile.prototype.clickThrough = function () { + return new ServiceProfile(ServiceProfile.CLICKTHROUGH.toString()); + }; ServiceProfile.prototype.login = function () { return new ServiceProfile(ServiceProfile.LOGIN.toString()); }; @@ -105,6 +108,7 @@ var Manifesto; return new ServiceProfile(ServiceProfile.TOKEN.toString()); }; ServiceProfile.AUTOCOMPLETE = new ServiceProfile("http://iiif.io/api/autocomplete/1/"); + ServiceProfile.CLICKTHROUGH = new ServiceProfile("http://wellcomelibrary.org/ld/iiif-ext/0/accept-terms-click-through"); ServiceProfile.LOGIN = new ServiceProfile("http://iiif.io/api/image/2/auth/login"); ServiceProfile.LOGOUT = new ServiceProfile("http://iiif.io/api/image/2/auth/logout"); ServiceProfile.OTHERMANIFESTATIONS = new ServiceProfile("http://iiif.io/api/otherManifestations.json"); diff --git a/gulpfile.js b/gulpfile.js index f0a1cb9f..62af08e0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -82,5 +82,5 @@ gulp.task('tag', function(){ }); gulp.task('default', function(cb) { - runSequence('clean', 'build', 'browserify', 'test', 'bump', cb); + runSequence('clean', 'build', 'browserify', 'bump', cb); }); \ No newline at end of file diff --git a/package.json b/package.json index fae2acea..b59cf93d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "manifesto", - "version": "0.1.2", + "version": "0.1.3", "description": "IIIF Presentation API utility library for client and server", "main": "dist/server/manifesto.js", "scripts": { diff --git a/src/ServiceProfile.ts b/src/ServiceProfile.ts index 5c233298..9312c032 100644 --- a/src/ServiceProfile.ts +++ b/src/ServiceProfile.ts @@ -1,6 +1,7 @@ module Manifesto { export class ServiceProfile { public static AUTOCOMPLETE = new ServiceProfile("http://iiif.io/api/autocomplete/1/"); + public static CLICKTHROUGH = new ServiceProfile("http://wellcomelibrary.org/ld/iiif-ext/0/accept-terms-click-through"); public static LOGIN = new ServiceProfile("http://iiif.io/api/image/2/auth/login"); public static LOGOUT = new ServiceProfile("http://iiif.io/api/image/2/auth/logout"); public static OTHERMANIFESTATIONS = new ServiceProfile("http://iiif.io/api/otherManifestations.json"); @@ -21,6 +22,10 @@ module Manifesto { return new ServiceProfile(ServiceProfile.AUTOCOMPLETE.toString()); } + clickThrough(): ServiceProfile { + return new ServiceProfile(ServiceProfile.CLICKTHROUGH.toString()); + } + login(): ServiceProfile { return new ServiceProfile(ServiceProfile.LOGIN.toString()); }