Skip to content

Commit

Permalink
added clickthrough service profile
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Jul 30, 2015
1 parent ef31fe1 commit c1b67f5
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "manifesto",
"version": "0.1.2",
"version": "0.1.3",
"homepage": "https://github.com/edsilv/manifesto",
"authors": [
"edsilv <[email protected]>"
Expand Down
4 changes: 4 additions & 0 deletions dist/client/manifesto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
};
Expand All @@ -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");
Expand Down
2 changes: 2 additions & 0 deletions dist/manifesto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -45,6 +46,7 @@ declare module Manifesto {
constructor(value?: string);
toString(): string;
autoComplete(): ServiceProfile;
clickThrough(): ServiceProfile;
login(): ServiceProfile;
logout(): ServiceProfile;
otherManifestations(): ServiceProfile;
Expand Down
4 changes: 4 additions & 0 deletions dist/server/manifesto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
};
Expand All @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
5 changes: 5 additions & 0 deletions src/ServiceProfile.ts
Original file line number Diff line number Diff line change
@@ -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");
Expand All @@ -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());
}
Expand Down

0 comments on commit c1b67f5

Please sign in to comment.