diff --git a/src/client/entity-editor/name-section/name-section.js b/src/client/entity-editor/name-section/name-section.js
index 281c04a1ea..701e9c056f 100644
--- a/src/client/entity-editor/name-section/name-section.js
+++ b/src/client/entity-editor/name-section/name-section.js
@@ -16,7 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-import {Alert, Col, ListGroup, Row} from 'react-bootstrap';
+import {Alert, Button, Col, ListGroup, Row} from 'react-bootstrap';
import {
checkIfNameExists,
debouncedUpdateDisambiguationField,
@@ -76,7 +76,6 @@ const ImmutableLanguageField = makeImmutable(LanguageField);
* sort name is changed.
* @param {Function} props.onDisambiguationChange - A function to be called when
* the disambiguation is changed.
- * @returns {ReactElement} React element containing the rendered NameSection.
*/
class NameSection extends React.Component {
constructor(props) {
@@ -154,12 +153,13 @@ class NameSection extends React.Component {
}));
const warnIfExists = !_.isEmpty(exactMatches);
+
const languageOption = languageOptionsForDisplay.filter((el) => el.value === languageValue);
return (
-
+
{`What is the ${_.startCase(entityType)} called?`}
-
+
-
-
- {isRequiredDisambiguationEmpty(
- warnIfExists,
- disambiguationDefaultValue
- ) ?
-
- We found the following
- {_.startCase(entityType)}{exactMatches.length > 1 ? 's' : ''} with
- exactly the same name or alias:
-
Click on a name to open it (Ctrl/Cmd + click to open in a new tab)
-
- {exactMatches.map((match) =>
- (
-
- {match.defaultAlias.name} {getEntityDisambiguation(match)}
-
- ))}
-
- If you are sure your entry is different, please fill the
- disambiguation field below to help us differentiate between them.
- : null
- }
-
-
- {
- !warnIfExists &&
- !_.isEmpty(searchResults) &&
-
-
- If the {_.startCase(entityType)} you want to add appears in the results
- below, click on it to inspect it before adding a possible duplicate.
- Ctrl/Cmd + click to open in a new tab
-
-
-
- }
-
-
-
-
-
-
-
-
-
-
+
+ {isRequiredDisambiguationEmpty(
+ warnIfExists,
+ disambiguationDefaultValue
+ ) ?
+
+
+ We found the following
+ {_.startCase(entityType)}{exactMatches.length > 1 ? 's' : ''} with
+ exactly the same name or alias:
+
Click on a name to open it (Ctrl/Cmd + click to open in a new tab)
+
+ {exactMatches.map((match) =>
+ (
+
+ {match.defaultAlias.name} {getEntityDisambiguation(match)}
+
+ ))}
+
+ If you are sure your entry is different, please fill the
+ disambiguation field below to help us differentiate between them.
+
+
: null
+ }
+ {
+ !warnIfExists &&
+ !_.isEmpty(searchResults) &&
+
+ If the {_.startCase(entityType)} you want to add appears in the results
+ below, click on it to inspect it before adding a possible duplicate.
+
Ctrl/Cmd + click to open in a new tab
+
+
+
+
+ }
+
);
diff --git a/src/client/stylesheets/style.scss b/src/client/stylesheets/style.scss
index 0e0e8b1015..8a0b061f86 100644
--- a/src/client/stylesheets/style.scss
+++ b/src/client/stylesheets/style.scss
@@ -296,7 +296,7 @@ a.contact-text:visited {
border: 1px solid hsl(0, 0%, 70%) !important;
box-shadow: none !important;
&:hover{
- border: 1px solid hsl(0, 0%, 70%) !important;
+ border: 1px solid hsl(0, 0%, 70%) !important;
}
}
@@ -726,4 +726,24 @@ ul {
}
.series-editor-select {
margin-top: 1.7em;
+}
+
+.duplicate-result-scroll-window{
+ max-height: 17em;
+ overflow-y: scroll;
+ &:after {
+ display: block;
+ position: absolute;
+ bottom: 0;
+ width: 100%;
+ content: " ";
+ height: 20px;
+ background: -moz-linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%);
+ background: -webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(255,255,255,0)),color-stop(100%,#fff));
+ background: -webkit-linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%);
+ background: -o-linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%);
+ background: -ms-linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%);
+ background: linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffffff', endColorstr='#ffffff', GradientType=0);
+ }
}
\ No newline at end of file