diff --git a/bower.json b/bower.json index 9fb3613b..e9ae077f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "manifesto", - "version": "0.1.3", + "version": "0.1.4", "homepage": "https://github.com/edsilv/manifesto", "authors": [ "edsilv " diff --git a/dist/client/manifesto.js b/dist/client/manifesto.js index d0c13e0b..aec5e0d6 100644 --- a/dist/client/manifesto.js +++ b/dist/client/manifesto.js @@ -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; diff --git a/dist/manifesto.d.ts b/dist/manifesto.d.ts index c9836d43..b406b920 100644 --- a/dist/manifesto.d.ts +++ b/dist/manifesto.d.ts @@ -225,6 +225,7 @@ declare module Manifesto { class Service extends JSONLDResource implements IService { constructor(resource: any); getProfile(): ServiceProfile; + getDescription(): string; } } declare module Manifesto { diff --git a/dist/server/manifesto.js b/dist/server/manifesto.js index 2331d114..82838328 100644 --- a/dist/server/manifesto.js +++ b/dist/server/manifesto.js @@ -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; diff --git a/package.json b/package.json index b59cf93d..9c9780cd 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/Service.ts b/src/Service.ts index 81733df1..3fc930f8 100644 --- a/src/Service.ts +++ b/src/Service.ts @@ -8,5 +8,9 @@ module Manifesto { getProfile(): ServiceProfile{ return new ServiceProfile(this.__jsonld.profile); } + + getDescription(): string { + return this.getManifest().getLocalisedValue(this.__jsonld.description); + } } } \ No newline at end of file