Skip to content

Commit

Permalink
added getDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Jul 30, 2015
1 parent c1b67f5 commit f1208f8
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 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.3",
"version": "0.1.4",
"homepage": "https://github.com/edsilv/manifesto",
"authors": [
"edsilv <[email protected]>"
Expand Down
3 changes: 3 additions & 0 deletions dist/client/manifesto.js
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,9 @@ var Manifesto;
Service.prototype.getProfile = function () {
return new Manifesto.ServiceProfile(this.__jsonld.profile);
};
Service.prototype.getDescription = function () {
return this.getManifest().getLocalisedValue(this.__jsonld.description);
};
return Service;
})(Manifesto.JSONLDResource);
Manifesto.Service = Service;
Expand Down
1 change: 1 addition & 0 deletions dist/manifesto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ declare module Manifesto {
class Service extends JSONLDResource implements IService {
constructor(resource: any);
getProfile(): ServiceProfile;
getDescription(): string;
}
}
declare module Manifesto {
Expand Down
3 changes: 3 additions & 0 deletions dist/server/manifesto.js
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,9 @@ var Manifesto;
Service.prototype.getProfile = function () {
return new Manifesto.ServiceProfile(this.__jsonld.profile);
};
Service.prototype.getDescription = function () {
return this.getManifest().getLocalisedValue(this.__jsonld.description);
};
return Service;
})(Manifesto.JSONLDResource);
Manifesto.Service = Service;
Expand Down
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.3",
"version": "0.1.4",
"description": "IIIF Presentation API utility library for client and server",
"main": "dist/server/manifesto.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ module Manifesto {
getProfile(): ServiceProfile{
return new ServiceProfile(this.__jsonld.profile);
}

getDescription(): string {
return this.getManifest().getLocalisedValue(this.__jsonld.description);
}
}
}

0 comments on commit f1208f8

Please sign in to comment.