@@ -136,7 +136,7 @@ $.extend( DialogueEvaluation.prototype, {
136
136
var url = this . getAttributionLicence ( ) . getUrl ( ) ;
137
137
if ( url ) {
138
138
attribution += ', ' ;
139
- if ( licence . isPublicDomain ( ) ) {
139
+ if ( ! editingAttribution && licence . isPublicDomain ( ) ) {
140
140
attribution += Messages . t ( 'dialogue.pd-attribution-hint' )
141
141
+ ', ' + Messages . t ( 'dialogue.check-details' )
142
142
+ ' Wikimedia Commons: ' ;
@@ -150,18 +150,18 @@ $.extend( DialogueEvaluation.prototype, {
150
150
_getHtmlAttribution : function ( ) {
151
151
var attributionLink ;
152
152
var licence = this . getAttributionLicence ( ) ;
153
- if ( licence . isPublicDomain ( ) ) {
153
+ var editingAttribution = this . _getEditingAttribution ( ) ;
154
+
155
+ if ( ! editingAttribution && licence . isPublicDomain ( ) ) {
154
156
attributionLink = ', ' + Messages . t ( 'dialogue.pd-attribution-hint' ) ;
155
157
if ( licence . getUrl ( ) ) {
156
158
attributionLink += ', ' + Messages . t ( 'dialogue.check-details' ) + ' '
157
159
+ this . _makeLink ( licence . getUrl ( ) , 'Wikimedia Commons' ) ;
158
160
}
159
161
} else {
160
162
attributionLink = ', ' + this . _getHtmlLicence ( ) ;
161
- // attributionLink = this._getHtmlLicence();
162
163
}
163
164
164
- var editingAttribution = this . _getEditingAttribution ( ) ;
165
165
if ( editingAttribution ) {
166
166
editingAttribution = ', ' + editingAttribution ;
167
167
}
0 commit comments