diff --git a/js/components/ascribe_buttons/acl_information.js b/js/components/ascribe_buttons/acl_information.js index 5a18c2d5..af510d71 100644 --- a/js/components/ascribe_buttons/acl_information.js +++ b/js/components/ascribe_buttons/acl_information.js @@ -32,8 +32,8 @@ let AclInformation = React.createClass({ getInfoText(title, info, example){ let aim = this.props.aim; - if (aim) { - if (aim === 'form') { + if(aim) { + if(aim === 'form') { return (

@@ -45,7 +45,7 @@ let AclInformation = React.createClass({

); } - else if (aim === 'button') { + else if(aim === 'button') { return (

@@ -70,11 +70,15 @@ let AclInformation = React.createClass({ const { titles, informationSentences, exampleSentences } = InformationTexts; const { verbs, aim } = this.props; + const availableInformations = intersectAcls(verbs, Object.keys(titles)); + // sorting is not needed, as `this.props.verbs` takes care of sorting already // So we assume a user of `AclInformationButton` puts an ordered version of // `verbs` into `propTypes` let verbsToDisplay = []; - if(aim === 'form') { + + + if(aim === 'form' && availableInformations.length > 0) { verbsToDisplay = verbsToDisplay.concat(verbs); } else if(aim === 'button' && this.props.aclObject) { const { aclObject } = this.props; diff --git a/js/constants/information_text.js b/js/constants/information_text.js index 679ae8ac..442e481e 100644 --- a/js/constants/information_text.js +++ b/js/constants/information_text.js @@ -2,7 +2,6 @@ export const InformationTexts = { 'titles': { - 'acl_transfer': 'TRANSFER', 'acl_consign': 'CONSIGN', 'acl_loan': 'LOAN', 'acl_share': 'SHARE', @@ -12,8 +11,6 @@ export const InformationTexts = { 'acl_request_unconsign': 'REQUEST UNCONSIGN' }, 'informationSentences': { - 'acl_transfer': ' - Changes ownership of an Edition. As with a physical piece of work, ' + - 'transferring ownership of an Edition does not transfer copyright in the Work.', 'acl_consign': ' - Lets someone represent you in dealing with the work, under the terms you agree to.', 'acl_loan': ' - Lets someone use or put the Work on display for a limited amount of time.', 'acl_share': ' - Lets someone view the Work or Edition, but does not give rights to publish or display it.', @@ -24,7 +21,6 @@ export const InformationTexts = { 'acl_request_unconsign': 'Lets the owner ask the consignee to confirm that they will no longer manage the work.' }, 'exampleSentences': { - 'acl_transfer': '(e.g. a musician Transfers limited edition 1 of 10 of her new album to a very happy fan)', 'acl_consign': '(e.g. an artist Consigns 10 Editions of her new Work to a gallery ' + 'so the gallery can sell them on her behalf, under the terms the artist and the gallery have agreed to)', 'acl_loan': '(e.g. a collector Loans a Work to a gallery for one month for display in the gallery\'s show)',