add a external link icon to viaf links, correct bug #27355 (https://mantis.culture.fr/mantis/view.php?id=27355)
--- a/cms/app-client/app/styles/components/notice-component.scss Sat Jun 10 18:39:39 2017 +0200
+++ b/cms/app-client/app/styles/components/notice-component.scss Sat Jun 10 22:43:58 2017 +0200
@@ -19,19 +19,27 @@
}
.notice-permalink:after,
.bo-doc-ref-url:after {
- content: "\f045";
- font-family: FontAwesome;
- font-style: normal;
- font-weight: normal;
+ content: "\f045";
+ font-family: FontAwesome;
+ font-style: normal;
+ font-weight: normal;
- padding-right: 0.5em;
- padding-left: 0.3em;
- text-decoration: none;
+ text-decoration: none;
}
.notice-permalink:after {
- color: $corpus-grey;
+ padding-left: 0.3em;
+ padding-right: 0.5em;
}
+
+ .notice-permalink:after {
+ color: $corpus-grey;
+ }
+
+ .doc-lit-olac-value {
+ padding-right: 0.3em;
+ }
+
}
--- a/cms/app-client/app/templates/components/doc-olac.hbs Sat Jun 10 18:39:39 2017 +0200
+++ b/cms/app-client/app/templates/components/doc-olac.hbs Sat Jun 10 22:43:58 2017 +0200
@@ -1,1 +1,1 @@
-{{#if value}}{{value}}{{/if}}{{#if olacUrl}}<a href="{{olacUrl}}" target="_blank" class="fa fa-share-square-o"> </a>{{else}}<a href="{{datatype}}#{{value}}" target="_blank" class="fa fa-share-square-o"> </a>{{/if}}
\ No newline at end of file
+{{#if value}}<span class="doc-lit-olac-value">{{value}}</span>{{/if}}{{#if olacUrl}}<a href="{{olacUrl}}" target="_blank" class="fa fa-share-square-o"> </a>{{else}}<a href="{{datatype}}#{{value}}" target="_blank" class="fa fa-share-square-o"> </a>{{/if}}
\ No newline at end of file
--- a/cms/app-client/app/templates/components/notice-component.hbs Sat Jun 10 18:39:39 2017 +0200
+++ b/cms/app-client/app/templates/components/notice-component.hbs Sat Jun 10 22:43:58 2017 +0200
@@ -62,7 +62,7 @@
<td>
<ul>
{{#each participants as |participant|}}
- <li>{{component (get-link-type participant.identifier) url=participant.identifier }} ({{#each participant.role as |r index| }}{{if index ", "}}{{r}}{{/each}})</li>
+ <li>{{component (get-link-type participant.identifier) url=participant.identifier displayUrlLink=true}} ({{#each participant.role as |r index| }}{{if index ", "}}{{r}}{{/each}})</li>
{{/each}}
</ul>
</td>
--- a/common/corpus-common-addon/addon/components/doc-olac.js Sat Jun 10 18:39:39 2017 +0200
+++ b/common/corpus-common-addon/addon/components/doc-olac.js Sat Jun 10 22:43:58 2017 +0200
@@ -5,6 +5,7 @@
export default DocLiteral.extend({
layout,
+ classNames: ['doc-lit-olac'],
olacUrl: Ember.computed('url', function () {
const url = this.get('url');
const value = this.get('value');
--- a/common/corpus-common-addon/addon/templates/components/doc-contributor.hbs Sat Jun 10 18:39:39 2017 +0200
+++ b/common/corpus-common-addon/addon/templates/components/doc-contributor.hbs Sat Jun 10 22:43:58 2017 +0200
@@ -2,6 +2,7 @@
<a href="{{url}}" target="_blank" title="{{url}}" class="bo-doc-ref-link doc-link-viaf">
{{#if resolvedName}}{{resolvedName}}{{else}}{{code}}{{/if}}
</a>
+{{#if displayUrlLink}}<a href="{{url}}" target="_blank" title={{url}} class="bo-doc-ref-url doc-link-viaf-url"> </a>{{/if}}
{{else}}
{{#if resolvedName}}{{resolvedName}}{{else}}{{code}}{{/if}}
{{/if}}