@cu-mkp/editioncrafter 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editioncrafter.min.js +1 -1
- package/dist/es/src/component/ImageGridView.js +4 -1
- package/dist/es/src/component/Navigation.js +4 -3
- package/dist/es/src/scss/_imageGridView.scss +5 -0
- package/dist/es/src/scss/_singlePaneView.scss +9 -0
- package/dist/es/src/scss/editioncrafter.scss +2 -1
- package/package.json +1 -1
|
@@ -50,7 +50,10 @@ var ImageGridView = /*#__PURE__*/function (_React$Component) {
|
|
|
50
50
|
}));
|
|
51
51
|
};
|
|
52
52
|
_this.onSelectDoc = function (event) {
|
|
53
|
-
if (event.target.value
|
|
53
|
+
if (!event.target.value || event.target.value == 0) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (event.target.value && event.target.value !== 'none') {
|
|
54
57
|
_this.setState(_objectSpread(_objectSpread({}, _this.state), {}, {
|
|
55
58
|
currentDoc: event.target.value
|
|
56
59
|
}));
|
|
@@ -44,7 +44,7 @@ var Navigation = function Navigation(props) {
|
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
var changeType = function changeType(event) {
|
|
47
|
-
if (event.target.value === undefined) return;
|
|
47
|
+
if (event.target.value === undefined || event.target.value === 0) return;
|
|
48
48
|
props.documentViewActions.changeTranscriptionType(props.side, event.target.value);
|
|
49
49
|
};
|
|
50
50
|
var onGoToGrid = function onGoToGrid(event) {
|
|
@@ -323,14 +323,15 @@ var Navigation = function Navigation(props) {
|
|
|
323
323
|
}).annotationURLs).map(function (ttKey) {
|
|
324
324
|
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
325
325
|
value: ttKey,
|
|
326
|
-
key: ttKey
|
|
326
|
+
key: ttKey,
|
|
327
|
+
title: ttKey
|
|
327
328
|
}, props.document.variorum ? props.document.transcriptionTypes[props.document.folios.find(function (fol) {
|
|
328
329
|
return fol.id == props.documentView[props.side].iiifShortID;
|
|
329
330
|
}).doc_id][ttKey] : props.document.transcriptionTypes[ttKey]);
|
|
330
331
|
}), /*#__PURE__*/React.createElement(MenuItem, {
|
|
331
332
|
value: "f",
|
|
332
333
|
key: "f"
|
|
333
|
-
}, DocumentHelper.transcriptionTypeLabels.f), /*#__PURE__*/React.createElement(MenuItem, {
|
|
334
|
+
}, DocumentHelper.transcriptionTypeLabels.f), props.glossary && /*#__PURE__*/React.createElement(MenuItem, {
|
|
334
335
|
value: "glossary",
|
|
335
336
|
key: "glossary"
|
|
336
337
|
}, DocumentHelper.transcriptionTypeLabels.glossary)), /*#__PURE__*/React.createElement("span", {
|