@inveniosoftware/react-invenio-app-ils 1.0.0-alpha.58 → 1.0.0-alpha.61
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/CHANGES.md +21 -0
- package/dist/cjs/index.js +660 -459
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +660 -460
- package/dist/esm/index.js.map +1 -1
- package/dist/theme/site/globals/site.overrides +14 -5
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -36,8 +36,8 @@ import _groupBy from 'lodash/groupBy';
|
|
|
36
36
|
import _keys from 'lodash/keys';
|
|
37
37
|
import ShowMore from 'react-show-more';
|
|
38
38
|
import _first from 'lodash/first';
|
|
39
|
-
import { omit } from 'lodash/object';
|
|
40
39
|
import ReactDOM from 'react-dom';
|
|
40
|
+
import { omit } from 'lodash/object';
|
|
41
41
|
import _difference from 'lodash/difference';
|
|
42
42
|
import _concat from 'lodash/concat';
|
|
43
43
|
import { random } from 'lodash/number';
|
|
@@ -2942,7 +2942,7 @@ var apiConfig = {
|
|
|
2942
2942
|
baseURL: invenioConfig.APP.REST_ENDPOINTS_BASE_URL,
|
|
2943
2943
|
withCredentials: true,
|
|
2944
2944
|
xsrfCookieName: 'csrftoken',
|
|
2945
|
-
xsrfHeaderName: '
|
|
2945
|
+
xsrfHeaderName: 'X_CSRFTOKEN'
|
|
2946
2946
|
};
|
|
2947
2947
|
var http = axios.create(apiConfig);
|
|
2948
2948
|
var HTTP_STATUS_CODES_WITH_ERROR_PAGE = [404, 429, 500];
|
|
@@ -5823,9 +5823,9 @@ var QueryBuilder$5 = /*#__PURE__*/function () {
|
|
|
5823
5823
|
}
|
|
5824
5824
|
|
|
5825
5825
|
if (moi === 'SERIAL') {
|
|
5826
|
-
this.withSeriesQuery.push("relations.serial.pid_value
|
|
5826
|
+
this.withSeriesQuery.push("relations.serial.pid_value:\"".concat(seriesPid, "\""));
|
|
5827
5827
|
} else {
|
|
5828
|
-
this.withSeriesQuery.push("relations.multipart_monograph.pid_value
|
|
5828
|
+
this.withSeriesQuery.push("relations.multipart_monograph.pid_value:\"".concat(seriesPid, "\""));
|
|
5829
5829
|
}
|
|
5830
5830
|
|
|
5831
5831
|
return this;
|
|
@@ -6309,11 +6309,17 @@ var QueryBuilder$4 = /*#__PURE__*/function () {
|
|
|
6309
6309
|
return this;
|
|
6310
6310
|
}
|
|
6311
6311
|
}, {
|
|
6312
|
-
key: "
|
|
6313
|
-
value: function
|
|
6312
|
+
key: "sortByRequestStartDateDesc",
|
|
6313
|
+
value: function sortByRequestStartDateDesc() {
|
|
6314
6314
|
this.sortBy = "&sort=-request_start_date";
|
|
6315
6315
|
return this;
|
|
6316
6316
|
}
|
|
6317
|
+
}, {
|
|
6318
|
+
key: "sortByRequestStartDateAsc",
|
|
6319
|
+
value: function sortByRequestStartDateAsc() {
|
|
6320
|
+
this.sortBy = "&sort=request_start_date";
|
|
6321
|
+
return this;
|
|
6322
|
+
}
|
|
6317
6323
|
}, {
|
|
6318
6324
|
key: "qs",
|
|
6319
6325
|
value: function qs() {
|
|
@@ -7895,12 +7901,18 @@ var isAPIError = function isAPIError(error) {
|
|
|
7895
7901
|
};
|
|
7896
7902
|
|
|
7897
7903
|
var shouldShowErrorPage = function shouldShowErrorPage(error) {
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7904
|
+
var _error$response;
|
|
7905
|
+
|
|
7906
|
+
if (isAPIError(error)) {
|
|
7907
|
+
// do not display the error in a full page, show the error only in the specific component (probably a notification).
|
|
7908
|
+
return false;
|
|
7909
|
+
} // when the exception is handled, we don't want to display a full page error (probably a notification).
|
|
7910
|
+
|
|
7901
7911
|
|
|
7902
|
-
|
|
7912
|
+
var handledException = (error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.status) === 400;
|
|
7913
|
+
return handledException ? false : true;
|
|
7903
7914
|
};
|
|
7915
|
+
|
|
7904
7916
|
var Error$1 = /*#__PURE__*/function (_Component) {
|
|
7905
7917
|
_inherits(Error, _Component);
|
|
7906
7918
|
|
|
@@ -8550,12 +8562,14 @@ var REMOVE = 'notifications/REMOVE';
|
|
|
8550
8562
|
var CLEAR_ALL = 'notifications/CLEAR_ALL';
|
|
8551
8563
|
var sendErrorNotification = function sendErrorNotification(error) {
|
|
8552
8564
|
return function (dispatch) {
|
|
8553
|
-
if (
|
|
8565
|
+
if (isAPIError(error)) {
|
|
8554
8566
|
var errorData = error.response.data;
|
|
8555
8567
|
var errorModule = errorData.error_module,
|
|
8556
8568
|
message = errorData.message;
|
|
8557
8569
|
var title = errorModule ? "".concat(errorModule) : 'Something went wrong';
|
|
8558
8570
|
dispatch(addNotification(title, message, 'error'));
|
|
8571
|
+
} else {
|
|
8572
|
+
dispatch(addNotification('Something went wrong', error.message, 'error'));
|
|
8559
8573
|
}
|
|
8560
8574
|
};
|
|
8561
8575
|
};
|
|
@@ -8684,7 +8698,7 @@ var mapStateToProps$1D = function mapStateToProps(state) {
|
|
|
8684
8698
|
};
|
|
8685
8699
|
};
|
|
8686
8700
|
|
|
8687
|
-
var mapDispatchToProps$
|
|
8701
|
+
var mapDispatchToProps$1l = function mapDispatchToProps(dispatch) {
|
|
8688
8702
|
return {
|
|
8689
8703
|
sendErrorNotification: function sendErrorNotification(title, content) {
|
|
8690
8704
|
return dispatch(addNotification(title, content, 'error'));
|
|
@@ -8692,7 +8706,7 @@ var mapDispatchToProps$1k = function mapDispatchToProps(dispatch) {
|
|
|
8692
8706
|
};
|
|
8693
8707
|
};
|
|
8694
8708
|
|
|
8695
|
-
var AuthenticationGuard = connect(mapStateToProps$1D, mapDispatchToProps$
|
|
8709
|
+
var AuthenticationGuard = connect(mapStateToProps$1D, mapDispatchToProps$1l)(AuthenticationGuard$1);
|
|
8696
8710
|
|
|
8697
8711
|
var _excluded$x = ["autoDismiss"];
|
|
8698
8712
|
var IlsMessage = /*#__PURE__*/function (_Component) {
|
|
@@ -8843,7 +8857,7 @@ var mapStateToProps$1C = function mapStateToProps(state) {
|
|
|
8843
8857
|
};
|
|
8844
8858
|
};
|
|
8845
8859
|
|
|
8846
|
-
var mapDispatchToProps$
|
|
8860
|
+
var mapDispatchToProps$1k = function mapDispatchToProps(dispatch) {
|
|
8847
8861
|
return {
|
|
8848
8862
|
removeNotification: function removeNotification(notificationId) {
|
|
8849
8863
|
return dispatch({
|
|
@@ -8854,7 +8868,7 @@ var mapDispatchToProps$1j = function mapDispatchToProps(dispatch) {
|
|
|
8854
8868
|
};
|
|
8855
8869
|
};
|
|
8856
8870
|
|
|
8857
|
-
var Notifications = connect(mapStateToProps$1C, mapDispatchToProps$
|
|
8871
|
+
var Notifications = connect(mapStateToProps$1C, mapDispatchToProps$1k)(Notifications$1);
|
|
8858
8872
|
|
|
8859
8873
|
function _arrayLikeToArray(arr, len) {
|
|
8860
8874
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -9254,7 +9268,7 @@ BaseForm$1.defaultProps = {
|
|
|
9254
9268
|
buttons: null
|
|
9255
9269
|
};
|
|
9256
9270
|
|
|
9257
|
-
var mapDispatchToProps$
|
|
9271
|
+
var mapDispatchToProps$1j = function mapDispatchToProps(dispatch) {
|
|
9258
9272
|
return {
|
|
9259
9273
|
sendSuccessNotification: function sendSuccessNotification$1(title, content) {
|
|
9260
9274
|
return dispatch(sendSuccessNotification(title, content));
|
|
@@ -9262,7 +9276,7 @@ var mapDispatchToProps$1i = function mapDispatchToProps(dispatch) {
|
|
|
9262
9276
|
};
|
|
9263
9277
|
};
|
|
9264
9278
|
|
|
9265
|
-
var BaseForm = connect(null, mapDispatchToProps$
|
|
9279
|
+
var BaseForm = connect(null, mapDispatchToProps$1j)(BaseForm$1);
|
|
9266
9280
|
|
|
9267
9281
|
var YearPicker = /*#__PURE__*/function (_Component) {
|
|
9268
9282
|
_inherits(YearPicker, _Component);
|
|
@@ -10297,7 +10311,7 @@ var mapStateToProps$1B = function mapStateToProps(state) {
|
|
|
10297
10311
|
};
|
|
10298
10312
|
};
|
|
10299
10313
|
|
|
10300
|
-
var mapDispatchToProps$
|
|
10314
|
+
var mapDispatchToProps$1i = function mapDispatchToProps(dispatch) {
|
|
10301
10315
|
return {
|
|
10302
10316
|
sendSuccessNotification: function sendSuccessNotification$1(title, content) {
|
|
10303
10317
|
return dispatch(sendSuccessNotification(title, content));
|
|
@@ -10305,7 +10319,7 @@ var mapDispatchToProps$1h = function mapDispatchToProps(dispatch) {
|
|
|
10305
10319
|
};
|
|
10306
10320
|
};
|
|
10307
10321
|
|
|
10308
|
-
var DocumentRequestForm = connect(mapStateToProps$1B, mapDispatchToProps$
|
|
10322
|
+
var DocumentRequestForm = connect(mapStateToProps$1B, mapDispatchToProps$1i)(DocumentRequestFormComponent);
|
|
10309
10323
|
|
|
10310
10324
|
var DynamicResponsive = createCommonjsModule(function (module, exports) {
|
|
10311
10325
|
|
|
@@ -14156,7 +14170,7 @@ LoginWithLocalAccountLayout.defaultProps = {
|
|
|
14156
14170
|
};
|
|
14157
14171
|
var LoginWithLocalAccountComponent = Overridable.component('LoginWithLocalAccount', LoginWithLocalAccount$1);
|
|
14158
14172
|
|
|
14159
|
-
var mapDispatchToProps$
|
|
14173
|
+
var mapDispatchToProps$1h = function mapDispatchToProps(dispatch) {
|
|
14160
14174
|
return {
|
|
14161
14175
|
fetchUserProfile: function fetchUserProfile$1() {
|
|
14162
14176
|
return dispatch(fetchUserProfile());
|
|
@@ -14164,7 +14178,7 @@ var mapDispatchToProps$1g = function mapDispatchToProps(dispatch) {
|
|
|
14164
14178
|
};
|
|
14165
14179
|
};
|
|
14166
14180
|
|
|
14167
|
-
var LoginWithLocalAccount = connect(null, mapDispatchToProps$
|
|
14181
|
+
var LoginWithLocalAccount = connect(null, mapDispatchToProps$1h)(LoginWithLocalAccountComponent);
|
|
14168
14182
|
|
|
14169
14183
|
var _excluded$i = ["nextUrl", "url", "hasError", "errorMessage"];
|
|
14170
14184
|
|
|
@@ -14540,7 +14554,7 @@ var mapStateToProps$1A = function mapStateToProps(state) {
|
|
|
14540
14554
|
};
|
|
14541
14555
|
};
|
|
14542
14556
|
|
|
14543
|
-
var mapDispatchToProps$
|
|
14557
|
+
var mapDispatchToProps$1g = function mapDispatchToProps(dispatch) {
|
|
14544
14558
|
return {
|
|
14545
14559
|
fetchUserProfile: function fetchUserProfile$1() {
|
|
14546
14560
|
return dispatch(fetchUserProfile());
|
|
@@ -14548,7 +14562,7 @@ var mapDispatchToProps$1f = function mapDispatchToProps(dispatch) {
|
|
|
14548
14562
|
};
|
|
14549
14563
|
};
|
|
14550
14564
|
|
|
14551
|
-
var Login = connect(mapStateToProps$1A, mapDispatchToProps$
|
|
14565
|
+
var Login = connect(mapStateToProps$1A, mapDispatchToProps$1g)(LoginComponent);
|
|
14552
14566
|
|
|
14553
14567
|
var ConfirmEmailLayout = function ConfirmEmailLayout(_ref) {
|
|
14554
14568
|
var isConfirmed = _ref.isConfirmed,
|
|
@@ -14655,7 +14669,7 @@ var mapStateToProps$1z = function mapStateToProps(state) {
|
|
|
14655
14669
|
};
|
|
14656
14670
|
};
|
|
14657
14671
|
|
|
14658
|
-
var mapDispatchToProps$
|
|
14672
|
+
var mapDispatchToProps$1f = function mapDispatchToProps(dispatch) {
|
|
14659
14673
|
return {
|
|
14660
14674
|
sendErrorNotification: function sendErrorNotification(title, content) {
|
|
14661
14675
|
return dispatch(addNotification(title, content, 'error'));
|
|
@@ -14669,7 +14683,7 @@ var mapDispatchToProps$1e = function mapDispatchToProps(dispatch) {
|
|
|
14669
14683
|
};
|
|
14670
14684
|
};
|
|
14671
14685
|
|
|
14672
|
-
var ConfirmEmail = connect(mapStateToProps$1z, mapDispatchToProps$
|
|
14686
|
+
var ConfirmEmail = connect(mapStateToProps$1z, mapDispatchToProps$1f)(ConfirmEmailComponent);
|
|
14673
14687
|
|
|
14674
14688
|
var HttpError = /*#__PURE__*/function (_Component) {
|
|
14675
14689
|
_inherits(HttpError, _Component);
|
|
@@ -15090,7 +15104,7 @@ var mapStateToProps$1y = function mapStateToProps(state) {
|
|
|
15090
15104
|
};
|
|
15091
15105
|
};
|
|
15092
15106
|
|
|
15093
|
-
var mapDispatchToProps$
|
|
15107
|
+
var mapDispatchToProps$1e = function mapDispatchToProps(dispatch) {
|
|
15094
15108
|
return {
|
|
15095
15109
|
sendErrorNotification: function sendErrorNotification(title, content) {
|
|
15096
15110
|
return dispatch(addNotification(title, content, 'error'));
|
|
@@ -15101,7 +15115,7 @@ var mapDispatchToProps$1d = function mapDispatchToProps(dispatch) {
|
|
|
15101
15115
|
};
|
|
15102
15116
|
};
|
|
15103
15117
|
|
|
15104
|
-
var Sidebar = connect(mapStateToProps$1y, mapDispatchToProps$
|
|
15118
|
+
var Sidebar = connect(mapStateToProps$1y, mapDispatchToProps$1e)(SidebarComponent);
|
|
15105
15119
|
|
|
15106
15120
|
var FETCH_BANNER_EVERY_SECS = 60 * 5; // 5 minutes
|
|
15107
15121
|
|
|
@@ -15256,7 +15270,7 @@ var mapStateToProps$1x = function mapStateToProps(state) {
|
|
|
15256
15270
|
};
|
|
15257
15271
|
};
|
|
15258
15272
|
|
|
15259
|
-
var mapDispatchToProps$
|
|
15273
|
+
var mapDispatchToProps$1d = function mapDispatchToProps(dispatch) {
|
|
15260
15274
|
return {
|
|
15261
15275
|
fetchBanner: function fetchBanner$1() {
|
|
15262
15276
|
return dispatch(fetchBanner());
|
|
@@ -15267,7 +15281,7 @@ var mapDispatchToProps$1c = function mapDispatchToProps(dispatch) {
|
|
|
15267
15281
|
};
|
|
15268
15282
|
};
|
|
15269
15283
|
|
|
15270
|
-
var Banner = connect(mapStateToProps$1x, mapDispatchToProps$
|
|
15284
|
+
var Banner = connect(mapStateToProps$1x, mapDispatchToProps$1d)(BannerComponent);
|
|
15271
15285
|
|
|
15272
15286
|
var IS_LOADING$H = 'fetchOrderDetails/IS_LOADING';
|
|
15273
15287
|
var SUCCESS$H = 'fetchOrderDetails/SUCCESS';
|
|
@@ -16384,7 +16398,7 @@ var mapStateToProps$1w = function mapStateToProps(state) {
|
|
|
16384
16398
|
};
|
|
16385
16399
|
};
|
|
16386
16400
|
|
|
16387
|
-
var mapDispatchToProps$
|
|
16401
|
+
var mapDispatchToProps$1c = function mapDispatchToProps(dispatch) {
|
|
16388
16402
|
return {
|
|
16389
16403
|
fetchOrderDetails: function fetchOrderDetails$1(orderPid) {
|
|
16390
16404
|
return dispatch(fetchOrderDetails(orderPid));
|
|
@@ -16392,7 +16406,7 @@ var mapDispatchToProps$1b = function mapDispatchToProps(dispatch) {
|
|
|
16392
16406
|
};
|
|
16393
16407
|
};
|
|
16394
16408
|
|
|
16395
|
-
var OrderDetails = connect(mapStateToProps$1w, mapDispatchToProps$
|
|
16409
|
+
var OrderDetails = connect(mapStateToProps$1w, mapDispatchToProps$1c)(OrderDetails$1);
|
|
16396
16410
|
|
|
16397
16411
|
/**
|
|
16398
16412
|
* Generic React JSONSchema Form widget to search and select hits
|
|
@@ -18291,6 +18305,20 @@ var RJSFVocabulary = /*#__PURE__*/function (_Component) {
|
|
|
18291
18305
|
|
|
18292
18306
|
_this = _super.call(this, props);
|
|
18293
18307
|
|
|
18308
|
+
_this.validateValue = function (value, options, isLoading) {
|
|
18309
|
+
var noOptionSelected = !value;
|
|
18310
|
+
if (noOptionSelected) return true;
|
|
18311
|
+
if (!options.length || isLoading) return;
|
|
18312
|
+
|
|
18313
|
+
var foundValue = function foundValue(value) {
|
|
18314
|
+
return options.find(function (option) {
|
|
18315
|
+
return option.value === value;
|
|
18316
|
+
});
|
|
18317
|
+
};
|
|
18318
|
+
|
|
18319
|
+
return !!foundValue(value);
|
|
18320
|
+
};
|
|
18321
|
+
|
|
18294
18322
|
_this.serializer = function (hit) {
|
|
18295
18323
|
return {
|
|
18296
18324
|
key: hit.metadata.key,
|
|
@@ -18411,12 +18439,17 @@ var RJSFVocabulary = /*#__PURE__*/function (_Component) {
|
|
|
18411
18439
|
isLoading = _this$state.isLoading,
|
|
18412
18440
|
value = _this$state.value,
|
|
18413
18441
|
error = _this$state.error;
|
|
18442
|
+
var valueIsValid = this.validateValue(value, options, isLoading);
|
|
18443
|
+
var invalidValueError = {
|
|
18444
|
+
content: ' Invalid option was selected',
|
|
18445
|
+
pointing: 'above'
|
|
18446
|
+
};
|
|
18414
18447
|
return /*#__PURE__*/React.createElement(Form.Select, {
|
|
18415
18448
|
fluid: true,
|
|
18416
18449
|
selection: true,
|
|
18417
18450
|
options: options,
|
|
18418
18451
|
label: label,
|
|
18419
|
-
value: value,
|
|
18452
|
+
value: valueIsValid ? value : undefined,
|
|
18420
18453
|
clearable: true,
|
|
18421
18454
|
required: required,
|
|
18422
18455
|
autoFocus: autofocus,
|
|
@@ -18424,7 +18457,8 @@ var RJSFVocabulary = /*#__PURE__*/function (_Component) {
|
|
|
18424
18457
|
onChange: this.handleChange,
|
|
18425
18458
|
disabled: isLoading || readonly,
|
|
18426
18459
|
loading: isLoading,
|
|
18427
|
-
noResultsMessage: error ? error : 'No results found'
|
|
18460
|
+
noResultsMessage: error ? error : 'No results found',
|
|
18461
|
+
error: !valueIsValid && invalidValueError
|
|
18428
18462
|
});
|
|
18429
18463
|
}
|
|
18430
18464
|
}]);
|
|
@@ -18604,6 +18638,30 @@ var RJSForm$1 = /*#__PURE__*/function (_Component) {
|
|
|
18604
18638
|
|
|
18605
18639
|
_this = _super.call(this, props);
|
|
18606
18640
|
|
|
18641
|
+
_this.ignoreEnterEvent = function (inputElements) {
|
|
18642
|
+
/* For unknown reasons empty fields are spawned when pressing
|
|
18643
|
+
the 'enter' key inside a RJSF input element so we have to manually prevent it*/
|
|
18644
|
+
var _iterator = _createForOfIteratorHelper(inputElements),
|
|
18645
|
+
_step;
|
|
18646
|
+
|
|
18647
|
+
try {
|
|
18648
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
18649
|
+
var input = _step.value;
|
|
18650
|
+
var isRJSFInput = input.id.includes('root');
|
|
18651
|
+
|
|
18652
|
+
if (isRJSFInput) {
|
|
18653
|
+
input.onkeydown = function (event) {
|
|
18654
|
+
return event.key === 'Enter' ? event.preventDefault() : null;
|
|
18655
|
+
};
|
|
18656
|
+
}
|
|
18657
|
+
}
|
|
18658
|
+
} catch (err) {
|
|
18659
|
+
_iterator.e(err);
|
|
18660
|
+
} finally {
|
|
18661
|
+
_iterator.f();
|
|
18662
|
+
}
|
|
18663
|
+
};
|
|
18664
|
+
|
|
18607
18665
|
_this.onSubmit = /*#__PURE__*/function () {
|
|
18608
18666
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(_ref, _) {
|
|
18609
18667
|
var formData, _this$props, sendSuccessNotification, submitAction, successCallback, successMessage, response;
|
|
@@ -18664,6 +18722,12 @@ var RJSForm$1 = /*#__PURE__*/function (_Component) {
|
|
|
18664
18722
|
}
|
|
18665
18723
|
|
|
18666
18724
|
_createClass(RJSForm, [{
|
|
18725
|
+
key: "componentDidMount",
|
|
18726
|
+
value: function componentDidMount() {
|
|
18727
|
+
var inputs = document.getElementsByTagName('input');
|
|
18728
|
+
this.ignoreEnterEvent(inputs);
|
|
18729
|
+
}
|
|
18730
|
+
}, {
|
|
18667
18731
|
key: "getGenericError",
|
|
18668
18732
|
value: function getGenericError(message) {
|
|
18669
18733
|
return {
|
|
@@ -18686,12 +18750,12 @@ var RJSForm$1 = /*#__PURE__*/function (_Component) {
|
|
|
18686
18750
|
extraErrors = this.getGenericError(message);
|
|
18687
18751
|
} else {
|
|
18688
18752
|
// prepare errors for the form
|
|
18689
|
-
var
|
|
18690
|
-
|
|
18753
|
+
var _iterator2 = _createForOfIteratorHelper(errors),
|
|
18754
|
+
_step2;
|
|
18691
18755
|
|
|
18692
18756
|
try {
|
|
18693
|
-
for (
|
|
18694
|
-
var fieldError =
|
|
18757
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
18758
|
+
var fieldError = _step2.value;
|
|
18695
18759
|
|
|
18696
18760
|
// if the field is empty, the error was thrown by the backend
|
|
18697
18761
|
// after validating via Marshmallow loaders
|
|
@@ -18706,9 +18770,9 @@ var RJSForm$1 = /*#__PURE__*/function (_Component) {
|
|
|
18706
18770
|
};
|
|
18707
18771
|
}
|
|
18708
18772
|
} catch (err) {
|
|
18709
|
-
|
|
18773
|
+
_iterator2.e(err);
|
|
18710
18774
|
} finally {
|
|
18711
|
-
|
|
18775
|
+
_iterator2.f();
|
|
18712
18776
|
}
|
|
18713
18777
|
}
|
|
18714
18778
|
|
|
@@ -18795,7 +18859,7 @@ RJSForm$1.defaultProps = {
|
|
|
18795
18859
|
successCallback: null
|
|
18796
18860
|
};
|
|
18797
18861
|
|
|
18798
|
-
var mapDispatchToProps$
|
|
18862
|
+
var mapDispatchToProps$1b = function mapDispatchToProps(dispatch) {
|
|
18799
18863
|
return {
|
|
18800
18864
|
sendSuccessNotification: function sendSuccessNotification$1(title, content) {
|
|
18801
18865
|
return dispatch(sendSuccessNotification(title, content));
|
|
@@ -18803,7 +18867,7 @@ var mapDispatchToProps$1a = function mapDispatchToProps(dispatch) {
|
|
|
18803
18867
|
};
|
|
18804
18868
|
};
|
|
18805
18869
|
|
|
18806
|
-
var RJSForm = connect(null, mapDispatchToProps$
|
|
18870
|
+
var RJSForm = connect(null, mapDispatchToProps$1b)(RJSForm$1);
|
|
18807
18871
|
|
|
18808
18872
|
var schema$9 = function schema() {
|
|
18809
18873
|
var _schema = {
|
|
@@ -20319,7 +20383,7 @@ var checkin = function checkin(barcode, onSuccess) {
|
|
|
20319
20383
|
type: LOAN_HAS_ERROR,
|
|
20320
20384
|
payload: _context.t0
|
|
20321
20385
|
});
|
|
20322
|
-
dispatch(sendErrorNotification(
|
|
20386
|
+
dispatch(sendErrorNotification(_context.t0));
|
|
20323
20387
|
|
|
20324
20388
|
case 14:
|
|
20325
20389
|
case "end":
|
|
@@ -20402,7 +20466,7 @@ var clearResults$2 = function clearResults() {
|
|
|
20402
20466
|
};
|
|
20403
20467
|
};
|
|
20404
20468
|
|
|
20405
|
-
var mapDispatchToProps$
|
|
20469
|
+
var mapDispatchToProps$1a = function mapDispatchToProps(dispatch) {
|
|
20406
20470
|
return {
|
|
20407
20471
|
checkin: function checkin$1(barcode, onSuccess) {
|
|
20408
20472
|
return dispatch(checkin(barcode, onSuccess));
|
|
@@ -20416,7 +20480,7 @@ var mapStateToProps$1v = function mapStateToProps(state) {
|
|
|
20416
20480
|
};
|
|
20417
20481
|
};
|
|
20418
20482
|
|
|
20419
|
-
var ItemsSearch$2 = connect(mapStateToProps$1v, mapDispatchToProps$
|
|
20483
|
+
var ItemsSearch$2 = connect(mapStateToProps$1v, mapDispatchToProps$1a)(ItemsSearch$3);
|
|
20420
20484
|
|
|
20421
20485
|
var ItemCirculation$2 = /*#__PURE__*/function (_Component) {
|
|
20422
20486
|
_inherits(ItemCirculation, _Component);
|
|
@@ -20629,7 +20693,7 @@ CheckedInItems$1.defaultProps = {
|
|
|
20629
20693
|
items: []
|
|
20630
20694
|
};
|
|
20631
20695
|
|
|
20632
|
-
var mapDispatchToProps$
|
|
20696
|
+
var mapDispatchToProps$19 = function mapDispatchToProps(dispatch) {
|
|
20633
20697
|
return {
|
|
20634
20698
|
clearResults: function clearResults() {
|
|
20635
20699
|
return dispatch(clearResults$2());
|
|
@@ -20643,7 +20707,7 @@ var mapStateToProps$1u = function mapStateToProps(state) {
|
|
|
20643
20707
|
};
|
|
20644
20708
|
};
|
|
20645
20709
|
|
|
20646
|
-
var CheckedInItems = connect(mapStateToProps$1u, mapDispatchToProps$
|
|
20710
|
+
var CheckedInItems = connect(mapStateToProps$1u, mapDispatchToProps$19)(CheckedInItems$1);
|
|
20647
20711
|
|
|
20648
20712
|
var CheckIn = /*#__PURE__*/function (_Component) {
|
|
20649
20713
|
_inherits(CheckIn, _Component);
|
|
@@ -20868,7 +20932,7 @@ var checkOutSearch = function checkOutSearch(term) {
|
|
|
20868
20932
|
type: SEARCH_HAS_ERROR,
|
|
20869
20933
|
payload: _context3.t0
|
|
20870
20934
|
});
|
|
20871
|
-
dispatch(sendErrorNotification(
|
|
20935
|
+
dispatch(sendErrorNotification(_context3.t0));
|
|
20872
20936
|
|
|
20873
20937
|
case 21:
|
|
20874
20938
|
case "end":
|
|
@@ -20884,7 +20948,7 @@ var checkOutSearch = function checkOutSearch(term) {
|
|
|
20884
20948
|
}();
|
|
20885
20949
|
};
|
|
20886
20950
|
|
|
20887
|
-
var mapDispatchToProps$
|
|
20951
|
+
var mapDispatchToProps$18 = function mapDispatchToProps(dispatch) {
|
|
20888
20952
|
return {
|
|
20889
20953
|
checkOutSearch: function checkOutSearch$1(term) {
|
|
20890
20954
|
return dispatch(checkOutSearch(term));
|
|
@@ -20901,7 +20965,7 @@ var mapStateToProps$1t = function mapStateToProps(state) {
|
|
|
20901
20965
|
};
|
|
20902
20966
|
};
|
|
20903
20967
|
|
|
20904
|
-
var CheckOutSearch = connect(mapStateToProps$1t, mapDispatchToProps$
|
|
20968
|
+
var CheckOutSearch = connect(mapStateToProps$1t, mapDispatchToProps$18)(CheckOutSearch$1);
|
|
20905
20969
|
|
|
20906
20970
|
var ItemList = function ItemList(_ref) {
|
|
20907
20971
|
var items = _ref.items;
|
|
@@ -21286,7 +21350,7 @@ CheckOutResults$1.defaultProps = {
|
|
|
21286
21350
|
isLoading: false
|
|
21287
21351
|
};
|
|
21288
21352
|
|
|
21289
|
-
var mapDispatchToProps$
|
|
21353
|
+
var mapDispatchToProps$17 = function mapDispatchToProps(dispatch) {
|
|
21290
21354
|
return {
|
|
21291
21355
|
clearResults: function clearResults() {
|
|
21292
21356
|
return dispatch(clearResults$1());
|
|
@@ -21303,7 +21367,7 @@ var mapStateToProps$1s = function mapStateToProps(state) {
|
|
|
21303
21367
|
};
|
|
21304
21368
|
};
|
|
21305
21369
|
|
|
21306
|
-
var CheckOutResults = connect(mapStateToProps$1s, mapDispatchToProps$
|
|
21370
|
+
var CheckOutResults = connect(mapStateToProps$1s, mapDispatchToProps$17)(CheckOutResults$1);
|
|
21307
21371
|
|
|
21308
21372
|
var CheckOut = /*#__PURE__*/function (_Component) {
|
|
21309
21373
|
_inherits(CheckOut, _Component);
|
|
@@ -22864,7 +22928,7 @@ var mapStateToProps$1r = function mapStateToProps(state) {
|
|
|
22864
22928
|
};
|
|
22865
22929
|
};
|
|
22866
22930
|
|
|
22867
|
-
var mapDispatchToProps$
|
|
22931
|
+
var mapDispatchToProps$16 = function mapDispatchToProps(dispatch) {
|
|
22868
22932
|
return {
|
|
22869
22933
|
fetchReferences: function fetchReferences$1(promiseArray) {
|
|
22870
22934
|
return dispatch(fetchReferences(promiseArray));
|
|
@@ -22872,7 +22936,7 @@ var mapDispatchToProps$15 = function mapDispatchToProps(dispatch) {
|
|
|
22872
22936
|
};
|
|
22873
22937
|
};
|
|
22874
22938
|
|
|
22875
|
-
var DeleteRecordModal = connect(mapStateToProps$1r, mapDispatchToProps$
|
|
22939
|
+
var DeleteRecordModal = connect(mapStateToProps$1r, mapDispatchToProps$16)(DeleteRecordModal$1);
|
|
22876
22940
|
|
|
22877
22941
|
function formatPidTypeToName(pidType) {
|
|
22878
22942
|
switch (pidType) {
|
|
@@ -23096,7 +23160,7 @@ var DocumentDeleteModal$1 = /*#__PURE__*/function (_Component) {
|
|
|
23096
23160
|
return DocumentDeleteModal;
|
|
23097
23161
|
}(Component);
|
|
23098
23162
|
|
|
23099
|
-
var mapDispatchToProps$
|
|
23163
|
+
var mapDispatchToProps$15 = function mapDispatchToProps(dispatch) {
|
|
23100
23164
|
return {
|
|
23101
23165
|
deleteDocument: function deleteDocument$1(documentPid) {
|
|
23102
23166
|
return dispatch(deleteDocument(documentPid));
|
|
@@ -23104,7 +23168,7 @@ var mapDispatchToProps$14 = function mapDispatchToProps(dispatch) {
|
|
|
23104
23168
|
};
|
|
23105
23169
|
};
|
|
23106
23170
|
|
|
23107
|
-
var DocumentDeleteModal = connect(null, mapDispatchToProps$
|
|
23171
|
+
var DocumentDeleteModal = connect(null, mapDispatchToProps$15)(DocumentDeleteModal$1);
|
|
23108
23172
|
|
|
23109
23173
|
var DocumentActionMenu$1 = /*#__PURE__*/function (_Component) {
|
|
23110
23174
|
_inherits(DocumentActionMenu, _Component);
|
|
@@ -23250,7 +23314,7 @@ var mapStateToProps$1q = function mapStateToProps(state) {
|
|
|
23250
23314
|
};
|
|
23251
23315
|
};
|
|
23252
23316
|
|
|
23253
|
-
var mapDispatchToProps$
|
|
23317
|
+
var mapDispatchToProps$14 = function mapDispatchToProps(dispatch) {
|
|
23254
23318
|
return {
|
|
23255
23319
|
deleteDocument: function deleteDocument$1(documentPid) {
|
|
23256
23320
|
return dispatch(deleteDocument(documentPid));
|
|
@@ -23262,77 +23326,7 @@ var mapDispatchToProps$13 = function mapDispatchToProps(dispatch) {
|
|
|
23262
23326
|
};
|
|
23263
23327
|
};
|
|
23264
23328
|
|
|
23265
|
-
var DocumentActionMenu = connect(mapStateToProps$1q, mapDispatchToProps$
|
|
23266
|
-
|
|
23267
|
-
var DocumentExtras = /*#__PURE__*/function (_Component) {
|
|
23268
|
-
_inherits(DocumentExtras, _Component);
|
|
23269
|
-
|
|
23270
|
-
var _super = _createSuper(DocumentExtras);
|
|
23271
|
-
|
|
23272
|
-
function DocumentExtras() {
|
|
23273
|
-
var _this;
|
|
23274
|
-
|
|
23275
|
-
_classCallCheck(this, DocumentExtras);
|
|
23276
|
-
|
|
23277
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
23278
|
-
args[_key] = arguments[_key];
|
|
23279
|
-
}
|
|
23280
|
-
|
|
23281
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
23282
|
-
|
|
23283
|
-
_this.prepareAlternativeTitle = function (element) {
|
|
23284
|
-
var rows = [];
|
|
23285
|
-
rows.push({
|
|
23286
|
-
name: 'Alternative title',
|
|
23287
|
-
value: /*#__PURE__*/React.createElement(List, {
|
|
23288
|
-
bulleted: true
|
|
23289
|
-
}, element.map(function (entry) {
|
|
23290
|
-
return /*#__PURE__*/React.createElement(List.Item, {
|
|
23291
|
-
key: entry.value
|
|
23292
|
-
}, /*#__PURE__*/React.createElement(List.Content, null, entry.value));
|
|
23293
|
-
}))
|
|
23294
|
-
});
|
|
23295
|
-
return rows;
|
|
23296
|
-
};
|
|
23297
|
-
|
|
23298
|
-
_this.prepareAlternativeAbstracts = function (element) {
|
|
23299
|
-
return [{
|
|
23300
|
-
name: 'Abstract',
|
|
23301
|
-
value: element
|
|
23302
|
-
}];
|
|
23303
|
-
};
|
|
23304
|
-
|
|
23305
|
-
return _this;
|
|
23306
|
-
}
|
|
23307
|
-
|
|
23308
|
-
_createClass(DocumentExtras, [{
|
|
23309
|
-
key: "render",
|
|
23310
|
-
value: function render() {
|
|
23311
|
-
var _this2 = this;
|
|
23312
|
-
|
|
23313
|
-
var metadata = this.props.metadata;
|
|
23314
|
-
|
|
23315
|
-
if (!_isEmpty(metadata.alternative_titles) || !_isEmpty(metadata.alternative_abstracts)) {
|
|
23316
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, !_isEmpty(metadata.alternative_titles) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, {
|
|
23317
|
-
as: "h3"
|
|
23318
|
-
}, "Alternative titles"), /*#__PURE__*/React.createElement(MetadataTable, {
|
|
23319
|
-
rows: this.prepareAlternativeTitle(metadata.alternative_titles)
|
|
23320
|
-
})), !_isEmpty(metadata.alternative_abstracts) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Header, {
|
|
23321
|
-
as: "h3"
|
|
23322
|
-
}, "Publication info"), metadata.alternative_abstracts.map(function (element) {
|
|
23323
|
-
return /*#__PURE__*/React.createElement(MetadataTable, {
|
|
23324
|
-
key: element,
|
|
23325
|
-
rows: _this2.prepareAlternativeAbstracts(element)
|
|
23326
|
-
});
|
|
23327
|
-
})));
|
|
23328
|
-
} else {
|
|
23329
|
-
return 'No additional information.';
|
|
23330
|
-
}
|
|
23331
|
-
}
|
|
23332
|
-
}]);
|
|
23333
|
-
|
|
23334
|
-
return DocumentExtras;
|
|
23335
|
-
}(Component);
|
|
23329
|
+
var DocumentActionMenu = connect(mapStateToProps$1q, mapDispatchToProps$14)(DocumentActionMenu$1);
|
|
23336
23330
|
|
|
23337
23331
|
var LiteratureMetadataExtensions = function LiteratureMetadataExtensions(_ref) {
|
|
23338
23332
|
var metadataExtensions = _ref.metadataExtensions,
|
|
@@ -24150,13 +24144,6 @@ var DocumentMetadata$3 = /*#__PURE__*/function (_Component) {
|
|
|
24150
24144
|
document: document
|
|
24151
24145
|
}));
|
|
24152
24146
|
}
|
|
24153
|
-
}, {
|
|
24154
|
-
menuItem: 'Other',
|
|
24155
|
-
render: function render() {
|
|
24156
|
-
return /*#__PURE__*/React.createElement(Tab.Pane, null, /*#__PURE__*/React.createElement(DocumentExtras, {
|
|
24157
|
-
metadata: document.metadata
|
|
24158
|
-
}));
|
|
24159
|
-
}
|
|
24160
24147
|
}, {
|
|
24161
24148
|
menuItem: 'System',
|
|
24162
24149
|
render: function render() {
|
|
@@ -24216,7 +24203,7 @@ var mapStateToProps$1p = function mapStateToProps(state) {
|
|
|
24216
24203
|
};
|
|
24217
24204
|
};
|
|
24218
24205
|
|
|
24219
|
-
var mapDispatchToProps$
|
|
24206
|
+
var mapDispatchToProps$13 = function mapDispatchToProps(dispatch) {
|
|
24220
24207
|
return {
|
|
24221
24208
|
fetchDocumentDetails: function fetchDocumentDetails$1(documentPid) {
|
|
24222
24209
|
return dispatch(fetchDocumentDetails(documentPid));
|
|
@@ -24224,7 +24211,7 @@ var mapDispatchToProps$12 = function mapDispatchToProps(dispatch) {
|
|
|
24224
24211
|
};
|
|
24225
24212
|
};
|
|
24226
24213
|
|
|
24227
|
-
var DocumentMetadata$2 = connect(mapStateToProps$1p, mapDispatchToProps$
|
|
24214
|
+
var DocumentMetadata$2 = connect(mapStateToProps$1p, mapDispatchToProps$13)(DocumentMetadata$3);
|
|
24228
24215
|
|
|
24229
24216
|
var DocumentSummary$1 = /*#__PURE__*/function (_Component) {
|
|
24230
24217
|
_inherits(DocumentSummary, _Component);
|
|
@@ -24540,7 +24527,7 @@ var mapStateToProps$1n = function mapStateToProps(state) {
|
|
|
24540
24527
|
};
|
|
24541
24528
|
};
|
|
24542
24529
|
|
|
24543
|
-
var mapDispatchToProps$
|
|
24530
|
+
var mapDispatchToProps$12 = function mapDispatchToProps(dispatch) {
|
|
24544
24531
|
return {
|
|
24545
24532
|
fetchDocumentEItems: function fetchDocumentEItems$1(documentPid) {
|
|
24546
24533
|
return dispatch(fetchDocumentEItems(documentPid));
|
|
@@ -24548,7 +24535,7 @@ var mapDispatchToProps$11 = function mapDispatchToProps(dispatch) {
|
|
|
24548
24535
|
};
|
|
24549
24536
|
};
|
|
24550
24537
|
|
|
24551
|
-
var DocumentEItems$1 = connect(mapStateToProps$1n, mapDispatchToProps$
|
|
24538
|
+
var DocumentEItems$1 = connect(mapStateToProps$1n, mapDispatchToProps$12)(DocumentEItems$2);
|
|
24552
24539
|
|
|
24553
24540
|
var IS_LOADING$D = 'fetchDocumentItems/IS_LOADING';
|
|
24554
24541
|
var SUCCESS$D = 'fetchDocumentItems/SUCCESS';
|
|
@@ -24730,7 +24717,7 @@ var mapStateToProps$1m = function mapStateToProps(state) {
|
|
|
24730
24717
|
};
|
|
24731
24718
|
};
|
|
24732
24719
|
|
|
24733
|
-
var mapDispatchToProps$
|
|
24720
|
+
var mapDispatchToProps$11 = function mapDispatchToProps(dispatch) {
|
|
24734
24721
|
return {
|
|
24735
24722
|
fetchDocumentItems: function fetchDocumentItems$1(documentPid) {
|
|
24736
24723
|
return dispatch(fetchDocumentItems(documentPid));
|
|
@@ -24738,7 +24725,7 @@ var mapDispatchToProps$10 = function mapDispatchToProps(dispatch) {
|
|
|
24738
24725
|
};
|
|
24739
24726
|
};
|
|
24740
24727
|
|
|
24741
|
-
var DocumentItems$2 = connect(mapStateToProps$1m, mapDispatchToProps$
|
|
24728
|
+
var DocumentItems$2 = connect(mapStateToProps$1m, mapDispatchToProps$11)(DocumentItems$3);
|
|
24742
24729
|
|
|
24743
24730
|
var IS_LOADING$C = 'fetchPendingLoansOnDocument/IS_LOADING';
|
|
24744
24731
|
var SUCCESS$C = 'fetchPendingLoansOnDocument/SUCCESS';
|
|
@@ -24756,7 +24743,7 @@ var fetchPendingLoans = function fetchPendingLoans(documentPid) {
|
|
|
24756
24743
|
});
|
|
24757
24744
|
_context.prev = 1;
|
|
24758
24745
|
_context.next = 4;
|
|
24759
|
-
return loanApi.list(loanApi.query().withDocPid(documentPid).withState(invenioConfig.CIRCULATION.loanRequestStates).qs());
|
|
24746
|
+
return loanApi.list(loanApi.query().withDocPid(documentPid).withState(invenioConfig.CIRCULATION.loanRequestStates).sortByRequestStartDateAsc().qs());
|
|
24760
24747
|
|
|
24761
24748
|
case 4:
|
|
24762
24749
|
response = _context.sent;
|
|
@@ -24900,7 +24887,7 @@ var mapStateToProps$1l = function mapStateToProps(state) {
|
|
|
24900
24887
|
};
|
|
24901
24888
|
};
|
|
24902
24889
|
|
|
24903
|
-
var mapDispatchToProps
|
|
24890
|
+
var mapDispatchToProps$10 = function mapDispatchToProps(dispatch) {
|
|
24904
24891
|
return {
|
|
24905
24892
|
fetchPendingLoans: function fetchPendingLoans$1(documentPid) {
|
|
24906
24893
|
return dispatch(fetchPendingLoans(documentPid));
|
|
@@ -24908,7 +24895,7 @@ var mapDispatchToProps$$ = function mapDispatchToProps(dispatch) {
|
|
|
24908
24895
|
};
|
|
24909
24896
|
};
|
|
24910
24897
|
|
|
24911
|
-
var DocumentPendingLoans = connect(mapStateToProps$1l, mapDispatchToProps
|
|
24898
|
+
var DocumentPendingLoans = connect(mapStateToProps$1l, mapDispatchToProps$10)(DocumentPendingLoans$1);
|
|
24912
24899
|
|
|
24913
24900
|
var IS_LOADING$B = 'fetchDocumentStats/IS_LOADING';
|
|
24914
24901
|
var SUCCESS$B = 'fetchDocumentStats/SUCCESS';
|
|
@@ -25137,7 +25124,7 @@ var mapStateToProps$1k = function mapStateToProps(state) {
|
|
|
25137
25124
|
};
|
|
25138
25125
|
};
|
|
25139
25126
|
|
|
25140
|
-
var mapDispatchToProps
|
|
25127
|
+
var mapDispatchToProps$$ = function mapDispatchToProps(dispatch) {
|
|
25141
25128
|
return {
|
|
25142
25129
|
fetchDocumentStats: function fetchDocumentStats$1(args) {
|
|
25143
25130
|
return dispatch(fetchDocumentStats(args));
|
|
@@ -25145,7 +25132,7 @@ var mapDispatchToProps$_ = function mapDispatchToProps(dispatch) {
|
|
|
25145
25132
|
};
|
|
25146
25133
|
};
|
|
25147
25134
|
|
|
25148
|
-
var DocumentStats$2 = connect(mapStateToProps$1k, mapDispatchToProps
|
|
25135
|
+
var DocumentStats$2 = connect(mapStateToProps$1k, mapDispatchToProps$$)(DocumentStats$3);
|
|
25149
25136
|
|
|
25150
25137
|
var _excluded$b = ["pidValue", "children"];
|
|
25151
25138
|
var DocumentDetailsLink = /*#__PURE__*/function (_Component) {
|
|
@@ -25462,7 +25449,7 @@ RelationRemover$1.defaultProps = {
|
|
|
25462
25449
|
trigger: null
|
|
25463
25450
|
};
|
|
25464
25451
|
|
|
25465
|
-
var mapDispatchToProps$
|
|
25452
|
+
var mapDispatchToProps$_ = function mapDispatchToProps(dispatch) {
|
|
25466
25453
|
return {
|
|
25467
25454
|
deleteRelation: function deleteRelation$1(referrer, related) {
|
|
25468
25455
|
return dispatch(deleteRelation(referrer, related));
|
|
@@ -25470,7 +25457,7 @@ var mapDispatchToProps$Z = function mapDispatchToProps(dispatch) {
|
|
|
25470
25457
|
};
|
|
25471
25458
|
};
|
|
25472
25459
|
|
|
25473
|
-
var RelationRemover = connect(null, mapDispatchToProps$
|
|
25460
|
+
var RelationRemover = connect(null, mapDispatchToProps$_)(RelationRemover$1);
|
|
25474
25461
|
|
|
25475
25462
|
var DocumentSelectListEntry = /*#__PURE__*/function (_Component) {
|
|
25476
25463
|
_inherits(DocumentSelectListEntry, _Component);
|
|
@@ -25712,7 +25699,7 @@ var MultipleSelections$1 = /*#__PURE__*/function (_Component) {
|
|
|
25712
25699
|
return MultipleSelections;
|
|
25713
25700
|
}(Component);
|
|
25714
25701
|
|
|
25715
|
-
var mapDispatchToProps$
|
|
25702
|
+
var mapDispatchToProps$Z = function mapDispatchToProps(dispatch) {
|
|
25716
25703
|
return {
|
|
25717
25704
|
removeSelection: function removeSelection$1(removePid) {
|
|
25718
25705
|
return dispatch(removeSelection(removePid));
|
|
@@ -25726,7 +25713,7 @@ var mapStateToProps$1j = function mapStateToProps(state) {
|
|
|
25726
25713
|
};
|
|
25727
25714
|
};
|
|
25728
25715
|
|
|
25729
|
-
var MultipleSelections = connect(mapStateToProps$1j, mapDispatchToProps$
|
|
25716
|
+
var MultipleSelections = connect(mapStateToProps$1j, mapDispatchToProps$Z)(MultipleSelections$1);
|
|
25730
25717
|
|
|
25731
25718
|
var RelationModal$1 = /*#__PURE__*/function (_Component) {
|
|
25732
25719
|
_inherits(RelationModal, _Component);
|
|
@@ -25857,7 +25844,7 @@ RelationModal$1.defaultProps = {
|
|
|
25857
25844
|
disabledContent: null
|
|
25858
25845
|
};
|
|
25859
25846
|
|
|
25860
|
-
var mapDispatchToProps$
|
|
25847
|
+
var mapDispatchToProps$Y = function mapDispatchToProps(dispatch) {
|
|
25861
25848
|
return {
|
|
25862
25849
|
createRelations: function createRelations$1(relationType, selections, extraRelationField, referrerRecord) {
|
|
25863
25850
|
return dispatch(createRelations(relationType, selections, extraRelationField, referrerRecord));
|
|
@@ -25874,7 +25861,7 @@ var mapStateToProps$1i = function mapStateToProps(state) {
|
|
|
25874
25861
|
};
|
|
25875
25862
|
};
|
|
25876
25863
|
|
|
25877
|
-
var RelationModal = connect(mapStateToProps$1i, mapDispatchToProps$
|
|
25864
|
+
var RelationModal = connect(mapStateToProps$1i, mapDispatchToProps$Y)(RelationModal$1);
|
|
25878
25865
|
|
|
25879
25866
|
var RelationSelector$1 = /*#__PURE__*/function (_Component) {
|
|
25880
25867
|
_inherits(RelationSelector, _Component);
|
|
@@ -25989,7 +25976,7 @@ var mapStateToProps$1h = function mapStateToProps(state) {
|
|
|
25989
25976
|
};
|
|
25990
25977
|
};
|
|
25991
25978
|
|
|
25992
|
-
var mapDispatchToProps$
|
|
25979
|
+
var mapDispatchToProps$X = function mapDispatchToProps(dispatch) {
|
|
25993
25980
|
return {
|
|
25994
25981
|
selectOption: function selectOption$1(option) {
|
|
25995
25982
|
return dispatch(selectOption(option));
|
|
@@ -26003,7 +25990,7 @@ var mapDispatchToProps$W = function mapDispatchToProps(dispatch) {
|
|
|
26003
25990
|
};
|
|
26004
25991
|
};
|
|
26005
25992
|
|
|
26006
|
-
var RelationSelector = connect(mapStateToProps$1h, mapDispatchToProps$
|
|
25993
|
+
var RelationSelector = connect(mapStateToProps$1h, mapDispatchToProps$X)(RelationSelector$1);
|
|
26007
25994
|
|
|
26008
25995
|
var SeriesCard = /*#__PURE__*/function (_Component) {
|
|
26009
25996
|
_inherits(SeriesCard, _Component);
|
|
@@ -26546,7 +26533,7 @@ var SingleSelection$1 = /*#__PURE__*/function (_Component) {
|
|
|
26546
26533
|
return SingleSelection;
|
|
26547
26534
|
}(Component);
|
|
26548
26535
|
|
|
26549
|
-
var mapDispatchToProps$
|
|
26536
|
+
var mapDispatchToProps$W = function mapDispatchToProps(dispatch) {
|
|
26550
26537
|
return {
|
|
26551
26538
|
removeSelection: function removeSelection$1(removePid) {
|
|
26552
26539
|
return dispatch(removeSelection(removePid));
|
|
@@ -26560,7 +26547,7 @@ var mapStateToProps$1d = function mapStateToProps(state) {
|
|
|
26560
26547
|
};
|
|
26561
26548
|
};
|
|
26562
26549
|
|
|
26563
|
-
var SingleSelection = connect(mapStateToProps$1d, mapDispatchToProps$
|
|
26550
|
+
var SingleSelection = connect(mapStateToProps$1d, mapDispatchToProps$W)(SingleSelection$1);
|
|
26564
26551
|
|
|
26565
26552
|
var RelationOtherModal$4 = /*#__PURE__*/function (_Component) {
|
|
26566
26553
|
_inherits(RelationOtherModal, _Component);
|
|
@@ -28042,7 +28029,7 @@ var mapStateToProps$12 = function mapStateToProps(state) {
|
|
|
28042
28029
|
};
|
|
28043
28030
|
};
|
|
28044
28031
|
|
|
28045
|
-
var mapDispatchToProps$
|
|
28032
|
+
var mapDispatchToProps$V = function mapDispatchToProps(dispatch) {
|
|
28046
28033
|
return {
|
|
28047
28034
|
fetchDocumentDetails: function fetchDocumentDetails$1(documentPid) {
|
|
28048
28035
|
return dispatch(fetchDocumentDetails(documentPid));
|
|
@@ -28050,7 +28037,7 @@ var mapDispatchToProps$U = function mapDispatchToProps(dispatch) {
|
|
|
28050
28037
|
};
|
|
28051
28038
|
};
|
|
28052
28039
|
|
|
28053
|
-
var DocumentDetails$2 = connect(mapStateToProps$12, mapDispatchToProps$
|
|
28040
|
+
var DocumentDetails$2 = connect(mapStateToProps$12, mapDispatchToProps$V)(DocumentDetails$3);
|
|
28054
28041
|
|
|
28055
28042
|
var getSchemaFieldProps = function getSchemaFieldProps(fieldConfig) {
|
|
28056
28043
|
var schemaProps = {};
|
|
@@ -30364,7 +30351,7 @@ var DocumentRequestActions$1 = /*#__PURE__*/function (_Component) {
|
|
|
30364
30351
|
}(Component);
|
|
30365
30352
|
DocumentRequestActions$1.defaultProps = {};
|
|
30366
30353
|
|
|
30367
|
-
var mapDispatchToProps$
|
|
30354
|
+
var mapDispatchToProps$U = function mapDispatchToProps(dispatch) {
|
|
30368
30355
|
return {
|
|
30369
30356
|
declineRequest: function declineRequest$1(pid, data) {
|
|
30370
30357
|
return dispatch(declineRequest(pid, data));
|
|
@@ -30378,7 +30365,7 @@ var mapDispatchToProps$T = function mapDispatchToProps(dispatch) {
|
|
|
30378
30365
|
};
|
|
30379
30366
|
};
|
|
30380
30367
|
|
|
30381
|
-
var DocumentRequestActions = connect(null, mapDispatchToProps$
|
|
30368
|
+
var DocumentRequestActions = connect(null, mapDispatchToProps$U)(DocumentRequestActions$1);
|
|
30382
30369
|
|
|
30383
30370
|
var DocumentRequestHeader = /*#__PURE__*/function (_Component) {
|
|
30384
30371
|
_inherits(DocumentRequestHeader, _Component);
|
|
@@ -30730,7 +30717,7 @@ var AcceptStepPanel$1 = /*#__PURE__*/function (_Component) {
|
|
|
30730
30717
|
return AcceptStepPanel;
|
|
30731
30718
|
}(Component);
|
|
30732
30719
|
|
|
30733
|
-
var mapDispatchToProps$
|
|
30720
|
+
var mapDispatchToProps$T = function mapDispatchToProps(dispatch) {
|
|
30734
30721
|
return {
|
|
30735
30722
|
acceptRequest: function acceptRequest$1(documentRequestPid) {
|
|
30736
30723
|
return dispatch(acceptRequest(documentRequestPid));
|
|
@@ -30738,7 +30725,7 @@ var mapDispatchToProps$S = function mapDispatchToProps(dispatch) {
|
|
|
30738
30725
|
};
|
|
30739
30726
|
};
|
|
30740
30727
|
|
|
30741
|
-
var AcceptStepPanel = connect(null, mapDispatchToProps$
|
|
30728
|
+
var AcceptStepPanel = connect(null, mapDispatchToProps$T)(AcceptStepPanel$1);
|
|
30742
30729
|
|
|
30743
30730
|
/**
|
|
30744
30731
|
* @callback customizedValueFunction
|
|
@@ -30872,7 +30859,7 @@ var ChooseDocumentStepPanel$1 = /*#__PURE__*/function (_Component) {
|
|
|
30872
30859
|
return ChooseDocumentStepPanel;
|
|
30873
30860
|
}(Component);
|
|
30874
30861
|
|
|
30875
|
-
var mapDispatchToProps$
|
|
30862
|
+
var mapDispatchToProps$S = function mapDispatchToProps(dispatch) {
|
|
30876
30863
|
return {
|
|
30877
30864
|
addDocument: function addDocument$1(pid, key) {
|
|
30878
30865
|
return dispatch(addDocument(pid, key));
|
|
@@ -30880,7 +30867,7 @@ var mapDispatchToProps$R = function mapDispatchToProps(dispatch) {
|
|
|
30880
30867
|
};
|
|
30881
30868
|
};
|
|
30882
30869
|
|
|
30883
|
-
var ChooseDocumentStepPanel = connect(null, mapDispatchToProps$
|
|
30870
|
+
var ChooseDocumentStepPanel = connect(null, mapDispatchToProps$S)(ChooseDocumentStepPanel$1);
|
|
30884
30871
|
|
|
30885
30872
|
var AcqProvider = /*#__PURE__*/function (_Component) {
|
|
30886
30873
|
_inherits(AcqProvider, _Component);
|
|
@@ -31076,7 +31063,7 @@ var ChooseProviderStepPanel$1 = /*#__PURE__*/function (_Component3) {
|
|
|
31076
31063
|
return ChooseProviderStepPanel;
|
|
31077
31064
|
}(Component);
|
|
31078
31065
|
|
|
31079
|
-
var mapDispatchToProps$
|
|
31066
|
+
var mapDispatchToProps$R = function mapDispatchToProps(dispatch) {
|
|
31080
31067
|
return {
|
|
31081
31068
|
addProvider: function addProvider$1(provDataPid, pid, pidType) {
|
|
31082
31069
|
return dispatch(addProvider(provDataPid, pid, pidType));
|
|
@@ -31084,7 +31071,7 @@ var mapDispatchToProps$Q = function mapDispatchToProps(dispatch) {
|
|
|
31084
31071
|
};
|
|
31085
31072
|
};
|
|
31086
31073
|
|
|
31087
|
-
var ChooseProviderStepPanel = connect(null, mapDispatchToProps$
|
|
31074
|
+
var ChooseProviderStepPanel = connect(null, mapDispatchToProps$R)(ChooseProviderStepPanel$1);
|
|
31088
31075
|
|
|
31089
31076
|
var DocumentRequestStepPanels = /*#__PURE__*/function (_Component) {
|
|
31090
31077
|
_inherits(DocumentRequestStepPanels, _Component);
|
|
@@ -31202,8 +31189,8 @@ var DocumentRequestStepsHeader = /*#__PURE__*/function (_Component2) {
|
|
|
31202
31189
|
step: 1,
|
|
31203
31190
|
currentStep: currentStep,
|
|
31204
31191
|
iconName: "truck",
|
|
31205
|
-
title: "Select
|
|
31206
|
-
description: "
|
|
31192
|
+
title: "Select workflow",
|
|
31193
|
+
description: "Inter-library loan or acquisition order"
|
|
31207
31194
|
}), /*#__PURE__*/React.createElement(DocumentRequestStep, {
|
|
31208
31195
|
step: 2,
|
|
31209
31196
|
currentStep: currentStep,
|
|
@@ -31350,7 +31337,7 @@ var mapStateToProps$11 = function mapStateToProps(state) {
|
|
|
31350
31337
|
};
|
|
31351
31338
|
};
|
|
31352
31339
|
|
|
31353
|
-
var mapDispatchToProps$
|
|
31340
|
+
var mapDispatchToProps$Q = function mapDispatchToProps(dispatch) {
|
|
31354
31341
|
return {
|
|
31355
31342
|
fetchDocumentRequestDetails: function fetchDocumentRequestDetails$1(documentRequestPid) {
|
|
31356
31343
|
return dispatch(fetchDocumentRequestDetails(documentRequestPid));
|
|
@@ -31358,7 +31345,7 @@ var mapDispatchToProps$P = function mapDispatchToProps(dispatch) {
|
|
|
31358
31345
|
};
|
|
31359
31346
|
};
|
|
31360
31347
|
|
|
31361
|
-
var DocumentRequestDetails = connect(mapStateToProps$11, mapDispatchToProps$
|
|
31348
|
+
var DocumentRequestDetails = connect(mapStateToProps$11, mapDispatchToProps$Q)(DocumentRequestDetails$1);
|
|
31362
31349
|
|
|
31363
31350
|
var schema$7 = function schema() {
|
|
31364
31351
|
var _invenioConfig$DOCUME;
|
|
@@ -32406,7 +32393,7 @@ var mapStateToProps$10 = function mapStateToProps(state) {
|
|
|
32406
32393
|
};
|
|
32407
32394
|
};
|
|
32408
32395
|
|
|
32409
|
-
var mapDispatchToProps$
|
|
32396
|
+
var mapDispatchToProps$P = function mapDispatchToProps(dispatch) {
|
|
32410
32397
|
return {
|
|
32411
32398
|
sendErrorNotification: function sendErrorNotification(title, message) {
|
|
32412
32399
|
return dispatch(addNotification(title, message, 'error'));
|
|
@@ -32420,7 +32407,7 @@ var mapDispatchToProps$O = function mapDispatchToProps(dispatch) {
|
|
|
32420
32407
|
};
|
|
32421
32408
|
};
|
|
32422
32409
|
|
|
32423
|
-
var EItemFiles = connect(mapStateToProps$10, mapDispatchToProps$
|
|
32410
|
+
var EItemFiles = connect(mapStateToProps$10, mapDispatchToProps$P)(EItemFiles$1);
|
|
32424
32411
|
|
|
32425
32412
|
var EItemHeader = /*#__PURE__*/function (_Component) {
|
|
32426
32413
|
_inherits(EItemHeader, _Component);
|
|
@@ -32634,7 +32621,7 @@ var mapStateToProps$$ = function mapStateToProps(state) {
|
|
|
32634
32621
|
};
|
|
32635
32622
|
};
|
|
32636
32623
|
|
|
32637
|
-
var mapDispatchToProps$
|
|
32624
|
+
var mapDispatchToProps$O = function mapDispatchToProps(dispatch) {
|
|
32638
32625
|
return {
|
|
32639
32626
|
deleteEItem: function deleteEItem$1(eitemPid) {
|
|
32640
32627
|
return dispatch(deleteEItem(eitemPid));
|
|
@@ -32642,7 +32629,7 @@ var mapDispatchToProps$N = function mapDispatchToProps(dispatch) {
|
|
|
32642
32629
|
};
|
|
32643
32630
|
};
|
|
32644
32631
|
|
|
32645
|
-
var EItemMetadata = connect(mapStateToProps$$, mapDispatchToProps$
|
|
32632
|
+
var EItemMetadata = connect(mapStateToProps$$, mapDispatchToProps$O)(EItemMetadata$1);
|
|
32646
32633
|
|
|
32647
32634
|
var UploadButton$1 = /*#__PURE__*/function (_React$Component) {
|
|
32648
32635
|
_inherits(UploadButton, _React$Component);
|
|
@@ -32744,7 +32731,7 @@ var mapStateToProps$_ = function mapStateToProps(state) {
|
|
|
32744
32731
|
};
|
|
32745
32732
|
};
|
|
32746
32733
|
|
|
32747
|
-
var mapDispatchToProps$
|
|
32734
|
+
var mapDispatchToProps$N = function mapDispatchToProps(dispatch) {
|
|
32748
32735
|
return {
|
|
32749
32736
|
sendErrorNotification: function sendErrorNotification(title, message) {
|
|
32750
32737
|
return dispatch(addNotification(title, message, 'error'));
|
|
@@ -32755,7 +32742,7 @@ var mapDispatchToProps$M = function mapDispatchToProps(dispatch) {
|
|
|
32755
32742
|
};
|
|
32756
32743
|
};
|
|
32757
32744
|
|
|
32758
|
-
var UploadButton = connect(mapStateToProps$_, mapDispatchToProps$
|
|
32745
|
+
var UploadButton = connect(mapStateToProps$_, mapDispatchToProps$N)(UploadButton$1);
|
|
32759
32746
|
|
|
32760
32747
|
var EItemActionMenu$1 = /*#__PURE__*/function (_Component) {
|
|
32761
32748
|
_inherits(EItemActionMenu, _Component);
|
|
@@ -32834,7 +32821,7 @@ var mapStateToProps$Z = function mapStateToProps(state) {
|
|
|
32834
32821
|
};
|
|
32835
32822
|
};
|
|
32836
32823
|
|
|
32837
|
-
var mapDispatchToProps$
|
|
32824
|
+
var mapDispatchToProps$M = function mapDispatchToProps(dispatch) {
|
|
32838
32825
|
return {
|
|
32839
32826
|
deleteEItem: function deleteEItem$1(itemPid) {
|
|
32840
32827
|
return dispatch(deleteEItem(itemPid));
|
|
@@ -32842,7 +32829,7 @@ var mapDispatchToProps$L = function mapDispatchToProps(dispatch) {
|
|
|
32842
32829
|
};
|
|
32843
32830
|
};
|
|
32844
32831
|
|
|
32845
|
-
var EItemActionMenu = connect(mapStateToProps$Z, mapDispatchToProps$
|
|
32832
|
+
var EItemActionMenu = connect(mapStateToProps$Z, mapDispatchToProps$M)(EItemActionMenu$1);
|
|
32846
32833
|
|
|
32847
32834
|
var EItemDetails$1 = /*#__PURE__*/function (_Component) {
|
|
32848
32835
|
_inherits(EItemDetails, _Component);
|
|
@@ -32939,7 +32926,7 @@ var mapStateToProps$Y = function mapStateToProps(state) {
|
|
|
32939
32926
|
};
|
|
32940
32927
|
};
|
|
32941
32928
|
|
|
32942
|
-
var mapDispatchToProps$
|
|
32929
|
+
var mapDispatchToProps$L = function mapDispatchToProps(dispatch) {
|
|
32943
32930
|
return {
|
|
32944
32931
|
fetchEItemDetails: function fetchEItemDetails$1(eitemPid) {
|
|
32945
32932
|
return dispatch(fetchEItemDetails(eitemPid));
|
|
@@ -32947,7 +32934,7 @@ var mapDispatchToProps$K = function mapDispatchToProps(dispatch) {
|
|
|
32947
32934
|
};
|
|
32948
32935
|
};
|
|
32949
32936
|
|
|
32950
|
-
var EItemDetails = connect(mapStateToProps$Y, mapDispatchToProps$
|
|
32937
|
+
var EItemDetails = connect(mapStateToProps$Y, mapDispatchToProps$L)(EItemDetails$1);
|
|
32951
32938
|
|
|
32952
32939
|
var schema$6 = function schema() {
|
|
32953
32940
|
var _schema = {
|
|
@@ -35542,7 +35529,7 @@ var mapStateToProps$X = function mapStateToProps(state) {
|
|
|
35542
35529
|
};
|
|
35543
35530
|
};
|
|
35544
35531
|
|
|
35545
|
-
var mapDispatchToProps$
|
|
35532
|
+
var mapDispatchToProps$K = function mapDispatchToProps(dispatch) {
|
|
35546
35533
|
return {
|
|
35547
35534
|
borrowingRequestLoanExtensionAccept: function borrowingRequestLoanExtensionAccept$1(brwReqPid, loanEndDate) {
|
|
35548
35535
|
return dispatch(borrowingRequestLoanExtensionAccept(brwReqPid, loanEndDate));
|
|
@@ -35553,7 +35540,7 @@ var mapDispatchToProps$J = function mapDispatchToProps(dispatch) {
|
|
|
35553
35540
|
};
|
|
35554
35541
|
};
|
|
35555
35542
|
|
|
35556
|
-
var BorrowingRequestLoanExtension = connect(mapStateToProps$X, mapDispatchToProps$
|
|
35543
|
+
var BorrowingRequestLoanExtension = connect(mapStateToProps$X, mapDispatchToProps$K)(BorrowingRequestLoanExtension$1);
|
|
35557
35544
|
|
|
35558
35545
|
var CreateLoanButton = /*#__PURE__*/function (_React$Component) {
|
|
35559
35546
|
_inherits(CreateLoanButton, _React$Component);
|
|
@@ -35841,7 +35828,7 @@ var mapStateToProps$W = function mapStateToProps(state) {
|
|
|
35841
35828
|
};
|
|
35842
35829
|
};
|
|
35843
35830
|
|
|
35844
|
-
var mapDispatchToProps$
|
|
35831
|
+
var mapDispatchToProps$J = function mapDispatchToProps(dispatch) {
|
|
35845
35832
|
return {
|
|
35846
35833
|
borrowingRequestPatronLoanCreate: function borrowingRequestPatronLoanCreate$1(brwReqPid, loanStartDate, loanEndDate) {
|
|
35847
35834
|
return dispatch(borrowingRequestPatronLoanCreate(brwReqPid, loanStartDate, loanEndDate));
|
|
@@ -35849,7 +35836,7 @@ var mapDispatchToProps$I = function mapDispatchToProps(dispatch) {
|
|
|
35849
35836
|
};
|
|
35850
35837
|
};
|
|
35851
35838
|
|
|
35852
|
-
var BorrowingRequestPatronLoan = connect(mapStateToProps$W, mapDispatchToProps$
|
|
35839
|
+
var BorrowingRequestPatronLoan = connect(mapStateToProps$W, mapDispatchToProps$J)(BorrowingRequestPatronLoan$1);
|
|
35853
35840
|
|
|
35854
35841
|
var Loan$1 = /*#__PURE__*/function (_React$Component) {
|
|
35855
35842
|
_inherits(Loan, _React$Component);
|
|
@@ -36517,7 +36504,7 @@ var mapStateToProps$V = function mapStateToProps(state) {
|
|
|
36517
36504
|
};
|
|
36518
36505
|
};
|
|
36519
36506
|
|
|
36520
|
-
var mapDispatchToProps$
|
|
36507
|
+
var mapDispatchToProps$I = function mapDispatchToProps(dispatch) {
|
|
36521
36508
|
return {
|
|
36522
36509
|
fetchBorrowingRequestDetails: function fetchBorrowingRequestDetails$1(brwReqPid) {
|
|
36523
36510
|
return dispatch(fetchBorrowingRequestDetails(brwReqPid));
|
|
@@ -36525,7 +36512,7 @@ var mapDispatchToProps$H = function mapDispatchToProps(dispatch) {
|
|
|
36525
36512
|
};
|
|
36526
36513
|
};
|
|
36527
36514
|
|
|
36528
|
-
var BorrowingRequestDetails = connect(mapStateToProps$V, mapDispatchToProps$
|
|
36515
|
+
var BorrowingRequestDetails = connect(mapStateToProps$V, mapDispatchToProps$I)(BorrowingRequestDetails$1);
|
|
36529
36516
|
|
|
36530
36517
|
var schema$5 = function schema() {
|
|
36531
36518
|
var _schema = {
|
|
@@ -37586,7 +37573,7 @@ var mapStateToProps$U = function mapStateToProps(state) {
|
|
|
37586
37573
|
};
|
|
37587
37574
|
};
|
|
37588
37575
|
|
|
37589
|
-
var mapDispatchToProps$
|
|
37576
|
+
var mapDispatchToProps$H = function mapDispatchToProps(dispatch) {
|
|
37590
37577
|
return {
|
|
37591
37578
|
deleteItem: function deleteItem$1(itemPid) {
|
|
37592
37579
|
return dispatch(deleteItem(itemPid));
|
|
@@ -37598,7 +37585,7 @@ var mapDispatchToProps$G = function mapDispatchToProps(dispatch) {
|
|
|
37598
37585
|
};
|
|
37599
37586
|
};
|
|
37600
37587
|
|
|
37601
|
-
var ItemActionMenu = connect(mapStateToProps$U, mapDispatchToProps$
|
|
37588
|
+
var ItemActionMenu = connect(mapStateToProps$U, mapDispatchToProps$H)(ItemActionMenu$1);
|
|
37602
37589
|
|
|
37603
37590
|
var _excluded$9 = ["bcc", "body", "cc", "children", "email", "subject", "asButton"];
|
|
37604
37591
|
var EmailLink = function EmailLink(_ref) {
|
|
@@ -38048,7 +38035,7 @@ var mapStateToProps$S = function mapStateToProps(state) {
|
|
|
38048
38035
|
};
|
|
38049
38036
|
};
|
|
38050
38037
|
|
|
38051
|
-
var mapDispatchToProps$
|
|
38038
|
+
var mapDispatchToProps$G = function mapDispatchToProps(dispatch) {
|
|
38052
38039
|
return {
|
|
38053
38040
|
fetchItemDetails: function fetchItemDetails$1(itemPid) {
|
|
38054
38041
|
return dispatch(fetchItemDetails(itemPid));
|
|
@@ -38063,7 +38050,7 @@ var mapDispatchToProps$F = function mapDispatchToProps(dispatch) {
|
|
|
38063
38050
|
};
|
|
38064
38051
|
};
|
|
38065
38052
|
|
|
38066
|
-
var ItemMetadata$1 = connect(mapStateToProps$S, mapDispatchToProps$
|
|
38053
|
+
var ItemMetadata$1 = connect(mapStateToProps$S, mapDispatchToProps$G)(ItemMetadata$2);
|
|
38067
38054
|
|
|
38068
38055
|
var IS_LOADING$s = 'fetchPastLoans/IS_LOADING';
|
|
38069
38056
|
var SUCCESS$s = 'fetchPastLoans/SUCCESS';
|
|
@@ -38253,7 +38240,7 @@ var mapStateToProps$R = function mapStateToProps(state) {
|
|
|
38253
38240
|
};
|
|
38254
38241
|
};
|
|
38255
38242
|
|
|
38256
|
-
var mapDispatchToProps$
|
|
38243
|
+
var mapDispatchToProps$F = function mapDispatchToProps(dispatch) {
|
|
38257
38244
|
return {
|
|
38258
38245
|
fetchPastLoans: function fetchPastLoans$1(itemPid) {
|
|
38259
38246
|
return dispatch(fetchPastLoans(itemPid));
|
|
@@ -38261,7 +38248,7 @@ var mapDispatchToProps$E = function mapDispatchToProps(dispatch) {
|
|
|
38261
38248
|
};
|
|
38262
38249
|
};
|
|
38263
38250
|
|
|
38264
|
-
var ItemPastLoans = connect(mapStateToProps$R, mapDispatchToProps$
|
|
38251
|
+
var ItemPastLoans = connect(mapStateToProps$R, mapDispatchToProps$F)(ItemPastLoans$1);
|
|
38265
38252
|
|
|
38266
38253
|
var ACTION_IS_LOADING = 'loanAction/IS_LOADING';
|
|
38267
38254
|
var ACTION_SUCCESS = 'loanAction/SUCCESS';
|
|
@@ -38295,7 +38282,7 @@ var fetchLoanDetails = function fetchLoanDetails(loanPid) {
|
|
|
38295
38282
|
}
|
|
38296
38283
|
|
|
38297
38284
|
_context.next = 9;
|
|
38298
|
-
return loanApi.list(loanApi.query().withDocPid(response.data.metadata.document_pid).withState(invenioConfig.CIRCULATION.loanRequestStates).
|
|
38285
|
+
return loanApi.list(loanApi.query().withDocPid(response.data.metadata.document_pid).withState(invenioConfig.CIRCULATION.loanRequestStates).sortByRequestStartDateAsc().qs());
|
|
38299
38286
|
|
|
38300
38287
|
case 9:
|
|
38301
38288
|
pendingLoansResponse = _context.sent;
|
|
@@ -38558,7 +38545,7 @@ var mapStateToProps$Q = function mapStateToProps(state) {
|
|
|
38558
38545
|
};
|
|
38559
38546
|
};
|
|
38560
38547
|
|
|
38561
|
-
var mapDispatchToProps$
|
|
38548
|
+
var mapDispatchToProps$E = function mapDispatchToProps(dispatch) {
|
|
38562
38549
|
return {
|
|
38563
38550
|
fetchPendingLoans: function fetchPendingLoans$1(documentPid) {
|
|
38564
38551
|
return dispatch(fetchPendingLoans(documentPid));
|
|
@@ -38572,7 +38559,7 @@ var mapDispatchToProps$D = function mapDispatchToProps(dispatch) {
|
|
|
38572
38559
|
};
|
|
38573
38560
|
};
|
|
38574
38561
|
|
|
38575
|
-
var ItemPendingLoans = connect(mapStateToProps$Q, mapDispatchToProps$
|
|
38562
|
+
var ItemPendingLoans = connect(mapStateToProps$Q, mapDispatchToProps$E)(ItemPendingLoans$1);
|
|
38576
38563
|
|
|
38577
38564
|
var ItemDetails$1 = /*#__PURE__*/function (_Component) {
|
|
38578
38565
|
_inherits(ItemDetails, _Component);
|
|
@@ -38672,7 +38659,7 @@ var mapStateToProps$P = function mapStateToProps(state) {
|
|
|
38672
38659
|
};
|
|
38673
38660
|
};
|
|
38674
38661
|
|
|
38675
|
-
var mapDispatchToProps$
|
|
38662
|
+
var mapDispatchToProps$D = function mapDispatchToProps(dispatch) {
|
|
38676
38663
|
return {
|
|
38677
38664
|
fetchItemDetails: function fetchItemDetails$1(itemPid) {
|
|
38678
38665
|
return dispatch(fetchItemDetails(itemPid));
|
|
@@ -38683,7 +38670,7 @@ var mapDispatchToProps$C = function mapDispatchToProps(dispatch) {
|
|
|
38683
38670
|
};
|
|
38684
38671
|
};
|
|
38685
38672
|
|
|
38686
|
-
var ItemDetails = connect(mapStateToProps$P, mapDispatchToProps$
|
|
38673
|
+
var ItemDetails = connect(mapStateToProps$P, mapDispatchToProps$D)(ItemDetails$1);
|
|
38687
38674
|
|
|
38688
38675
|
var schema$4 = function schema() {
|
|
38689
38676
|
var _schema = {
|
|
@@ -40275,7 +40262,7 @@ var mapStateToProps$M = function mapStateToProps(state) {
|
|
|
40275
40262
|
};
|
|
40276
40263
|
};
|
|
40277
40264
|
|
|
40278
|
-
var mapDispatchToProps$
|
|
40265
|
+
var mapDispatchToProps$C = function mapDispatchToProps(dispatch) {
|
|
40279
40266
|
return {
|
|
40280
40267
|
fetchAvailableItems: function fetchAvailableItems$1(documentPid) {
|
|
40281
40268
|
return dispatch(fetchAvailableItems(documentPid));
|
|
@@ -40294,7 +40281,7 @@ var mapDispatchToProps$B = function mapDispatchToProps(dispatch) {
|
|
|
40294
40281
|
};
|
|
40295
40282
|
};
|
|
40296
40283
|
|
|
40297
|
-
var AvailableItems = connect(mapStateToProps$M, mapDispatchToProps$
|
|
40284
|
+
var AvailableItems = connect(mapStateToProps$M, mapDispatchToProps$C)(AvailableItems$1);
|
|
40298
40285
|
|
|
40299
40286
|
var LoanUpdateDates$1 = /*#__PURE__*/function (_Component) {
|
|
40300
40287
|
_inherits(LoanUpdateDates, _Component);
|
|
@@ -40552,7 +40539,7 @@ var clearError = function clearError() {
|
|
|
40552
40539
|
};
|
|
40553
40540
|
};
|
|
40554
40541
|
|
|
40555
|
-
var mapDispatchToProps$
|
|
40542
|
+
var mapDispatchToProps$B = function mapDispatchToProps(dispatch) {
|
|
40556
40543
|
return {
|
|
40557
40544
|
loanUpdateDates: function loanUpdateDates$1(loanPid, data) {
|
|
40558
40545
|
return dispatch(loanUpdateDates(loanPid, data));
|
|
@@ -40572,7 +40559,7 @@ var mapStateToProps$L = function mapStateToProps(state) {
|
|
|
40572
40559
|
};
|
|
40573
40560
|
};
|
|
40574
40561
|
|
|
40575
|
-
var LoanUpdateDates = connect(mapStateToProps$L, mapDispatchToProps$
|
|
40562
|
+
var LoanUpdateDates = connect(mapStateToProps$L, mapDispatchToProps$B)(LoanUpdateDates$1);
|
|
40576
40563
|
|
|
40577
40564
|
var IS_LOADING$p = 'overdueLoanSendNotificationModal/IS_LOADING';
|
|
40578
40565
|
var SUCCESS$p = 'overdueLoanSendNotificationModal/SUCCESS';
|
|
@@ -40909,7 +40896,7 @@ var mapStateToProps$K = function mapStateToProps(state) {
|
|
|
40909
40896
|
};
|
|
40910
40897
|
};
|
|
40911
40898
|
|
|
40912
|
-
var mapDispatchToProps$
|
|
40899
|
+
var mapDispatchToProps$A = function mapDispatchToProps(dispatch) {
|
|
40913
40900
|
return {
|
|
40914
40901
|
sendOverdueLoansNotificationReminder: function sendOverdueLoansNotificationReminder$1(loanPid) {
|
|
40915
40902
|
return dispatch(sendOverdueLoansNotificationReminder(loanPid));
|
|
@@ -40917,7 +40904,156 @@ var mapDispatchToProps$z = function mapDispatchToProps(dispatch) {
|
|
|
40917
40904
|
};
|
|
40918
40905
|
};
|
|
40919
40906
|
|
|
40920
|
-
var OverdueLoanSendNotificationModal = connect(mapStateToProps$K, mapDispatchToProps$
|
|
40907
|
+
var OverdueLoanSendNotificationModal = connect(mapStateToProps$K, mapDispatchToProps$A)(OverdueLoanSendNotificationModal$1);
|
|
40908
|
+
|
|
40909
|
+
var ExtendModal$1 = /*#__PURE__*/function (_Component) {
|
|
40910
|
+
_inherits(ExtendModal, _Component);
|
|
40911
|
+
|
|
40912
|
+
var _super = _createSuper(ExtendModal);
|
|
40913
|
+
|
|
40914
|
+
function ExtendModal(props) {
|
|
40915
|
+
var _this;
|
|
40916
|
+
|
|
40917
|
+
_classCallCheck(this, ExtendModal);
|
|
40918
|
+
|
|
40919
|
+
_this = _super.call(this, props);
|
|
40920
|
+
_this.fetchCirculation = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
40921
|
+
var _this$props, loanDetails, sendErrorNotification, document_pid, response, circulation;
|
|
40922
|
+
|
|
40923
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
40924
|
+
while (1) {
|
|
40925
|
+
switch (_context.prev = _context.next) {
|
|
40926
|
+
case 0:
|
|
40927
|
+
_this$props = _this.props, loanDetails = _this$props.loanDetails, sendErrorNotification = _this$props.sendErrorNotification;
|
|
40928
|
+
document_pid = loanDetails.metadata.document_pid;
|
|
40929
|
+
_context.prev = 2;
|
|
40930
|
+
_this.cancellableCirculation = withCancel(documentApi.get(document_pid));
|
|
40931
|
+
_context.next = 6;
|
|
40932
|
+
return _this.cancellableCirculation.promise;
|
|
40933
|
+
|
|
40934
|
+
case 6:
|
|
40935
|
+
response = _context.sent;
|
|
40936
|
+
circulation = response.data.metadata.circulation;
|
|
40937
|
+
|
|
40938
|
+
_this.setState({
|
|
40939
|
+
overbooked: circulation.overbooked === true
|
|
40940
|
+
});
|
|
40941
|
+
|
|
40942
|
+
_context.next = 14;
|
|
40943
|
+
break;
|
|
40944
|
+
|
|
40945
|
+
case 11:
|
|
40946
|
+
_context.prev = 11;
|
|
40947
|
+
_context.t0 = _context["catch"](2);
|
|
40948
|
+
|
|
40949
|
+
if (_context.t0 !== 'UNMOUNTED') {
|
|
40950
|
+
sendErrorNotification('Something went wrong while checking if the literature is overbooked.', 'If the problem persists, please contact technical support.');
|
|
40951
|
+
}
|
|
40952
|
+
|
|
40953
|
+
case 14:
|
|
40954
|
+
case "end":
|
|
40955
|
+
return _context.stop();
|
|
40956
|
+
}
|
|
40957
|
+
}
|
|
40958
|
+
}, _callee, null, [[2, 11]]);
|
|
40959
|
+
}));
|
|
40960
|
+
|
|
40961
|
+
_this.extend = function () {
|
|
40962
|
+
var loanAction = _this.props.loanAction;
|
|
40963
|
+
loanAction();
|
|
40964
|
+
|
|
40965
|
+
_this.hide();
|
|
40966
|
+
};
|
|
40967
|
+
|
|
40968
|
+
_this.hide = function () {
|
|
40969
|
+
return _this.setState({
|
|
40970
|
+
open: false
|
|
40971
|
+
});
|
|
40972
|
+
};
|
|
40973
|
+
|
|
40974
|
+
_this.show = function () {
|
|
40975
|
+
return _this.setState({
|
|
40976
|
+
open: true
|
|
40977
|
+
});
|
|
40978
|
+
};
|
|
40979
|
+
|
|
40980
|
+
_this.state = {
|
|
40981
|
+
overbooked: false,
|
|
40982
|
+
open: false
|
|
40983
|
+
};
|
|
40984
|
+
return _this;
|
|
40985
|
+
}
|
|
40986
|
+
|
|
40987
|
+
_createClass(ExtendModal, [{
|
|
40988
|
+
key: "componentDidMount",
|
|
40989
|
+
value: function componentDidMount() {
|
|
40990
|
+
this.fetchCirculation();
|
|
40991
|
+
}
|
|
40992
|
+
}, {
|
|
40993
|
+
key: "componentWillUnmount",
|
|
40994
|
+
value: function componentWillUnmount() {
|
|
40995
|
+
this.cancellableCirculation && this.cancellableCirculation.cancel();
|
|
40996
|
+
}
|
|
40997
|
+
}, {
|
|
40998
|
+
key: "render",
|
|
40999
|
+
value: function render() {
|
|
41000
|
+
var _this$props2 = this.props,
|
|
41001
|
+
pid = _this$props2.pid,
|
|
41002
|
+
isLoading = _this$props2.isLoading;
|
|
41003
|
+
var _this$state = this.state,
|
|
41004
|
+
open = _this$state.open,
|
|
41005
|
+
overbooked = _this$state.overbooked;
|
|
41006
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, overbooked ? /*#__PURE__*/React.createElement(Modal, {
|
|
41007
|
+
size: "small",
|
|
41008
|
+
trigger: /*#__PURE__*/React.createElement(Button, {
|
|
41009
|
+
primary: true,
|
|
41010
|
+
fluid: true,
|
|
41011
|
+
content: "Extend",
|
|
41012
|
+
onClick: this.show,
|
|
41013
|
+
loading: isLoading,
|
|
41014
|
+
disabled: isLoading
|
|
41015
|
+
}),
|
|
41016
|
+
open: open,
|
|
41017
|
+
onClose: this.hide
|
|
41018
|
+
}, /*#__PURE__*/React.createElement(Header, {
|
|
41019
|
+
content: "Extend Loan #".concat(pid)
|
|
41020
|
+
}), /*#__PURE__*/React.createElement(Modal.Content, null, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Grid.Column, {
|
|
41021
|
+
width: 1
|
|
41022
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
41023
|
+
name: "warning sign",
|
|
41024
|
+
color: "red",
|
|
41025
|
+
size: "large"
|
|
41026
|
+
})), /*#__PURE__*/React.createElement(Grid.Column, {
|
|
41027
|
+
width: 15
|
|
41028
|
+
}, /*#__PURE__*/React.createElement("p", null, "Are you sure you want to extend the loan #".concat(pid, "?\n This literature is overbooked."))))), /*#__PURE__*/React.createElement(Modal.Actions, null, /*#__PURE__*/React.createElement(Button, {
|
|
41029
|
+
secondary: true,
|
|
41030
|
+
onClick: this.hide
|
|
41031
|
+
}, "Cancel"), /*#__PURE__*/React.createElement(Button, {
|
|
41032
|
+
primary: true,
|
|
41033
|
+
onClick: this.extend
|
|
41034
|
+
}, "Extend"))) : /*#__PURE__*/React.createElement(Button, {
|
|
41035
|
+
size: "small",
|
|
41036
|
+
fluid: true,
|
|
41037
|
+
primary: true,
|
|
41038
|
+
onClick: this.extend,
|
|
41039
|
+
loading: isLoading,
|
|
41040
|
+
disabled: isLoading
|
|
41041
|
+
}, "Extend"));
|
|
41042
|
+
}
|
|
41043
|
+
}]);
|
|
41044
|
+
|
|
41045
|
+
return ExtendModal;
|
|
41046
|
+
}(Component);
|
|
41047
|
+
|
|
41048
|
+
var mapDispatchToProps$z = function mapDispatchToProps(dispatch) {
|
|
41049
|
+
return {
|
|
41050
|
+
sendErrorNotification: function sendErrorNotification(title, message) {
|
|
41051
|
+
return dispatch(addNotification(title, message, 'error'));
|
|
41052
|
+
}
|
|
41053
|
+
};
|
|
41054
|
+
};
|
|
41055
|
+
|
|
41056
|
+
var ExtendModal = connect(null, mapDispatchToProps$z)(ExtendModal$1);
|
|
40921
41057
|
|
|
40922
41058
|
var CancelModal = /*#__PURE__*/function (_Component) {
|
|
40923
41059
|
_inherits(CancelModal, _Component);
|
|
@@ -41003,7 +41139,6 @@ var CancelModal = /*#__PURE__*/function (_Component) {
|
|
|
41003
41139
|
value = _this$state.value,
|
|
41004
41140
|
showPopup = _this$state.showPopup;
|
|
41005
41141
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
41006
|
-
basic: true,
|
|
41007
41142
|
size: "small",
|
|
41008
41143
|
trigger: /*#__PURE__*/React.createElement(Button, {
|
|
41009
41144
|
primary: true,
|
|
@@ -41032,13 +41167,10 @@ var CancelModal = /*#__PURE__*/function (_Component) {
|
|
|
41032
41167
|
position: "bottom left",
|
|
41033
41168
|
open: showPopup
|
|
41034
41169
|
})), /*#__PURE__*/React.createElement(Modal.Actions, null, /*#__PURE__*/React.createElement(Button, {
|
|
41035
|
-
|
|
41036
|
-
color: "black",
|
|
41037
|
-
inverted: true,
|
|
41170
|
+
secondary: true,
|
|
41038
41171
|
onClick: this.hide
|
|
41039
41172
|
}, "Back"), /*#__PURE__*/React.createElement(Button, {
|
|
41040
41173
|
color: "red",
|
|
41041
|
-
inverted: true,
|
|
41042
41174
|
onClick: this.cancel
|
|
41043
41175
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
41044
41176
|
name: "remove"
|
|
@@ -41053,6 +41185,20 @@ CancelModal.defaultProps = {
|
|
|
41053
41185
|
isLoading: false
|
|
41054
41186
|
};
|
|
41055
41187
|
|
|
41188
|
+
var CancelLoanModal = function CancelLoanModal(_ref) {
|
|
41189
|
+
var pid = _ref.pid,
|
|
41190
|
+
isLoading = _ref.isLoading,
|
|
41191
|
+
cancelAction = _ref.cancelAction;
|
|
41192
|
+
return /*#__PURE__*/React.createElement(CancelModal, {
|
|
41193
|
+
header: "Cancel Loan #".concat(pid),
|
|
41194
|
+
content: "You are about to cancel loan #".concat(pid, ".\n Please enter a reason for cancelling this loan."),
|
|
41195
|
+
cancelText: "Cancel Loan",
|
|
41196
|
+
buttonText: "Cancel",
|
|
41197
|
+
action: cancelAction,
|
|
41198
|
+
isLoading: isLoading
|
|
41199
|
+
});
|
|
41200
|
+
};
|
|
41201
|
+
|
|
41056
41202
|
var LoanActions$1 = /*#__PURE__*/function (_Component) {
|
|
41057
41203
|
_inherits(LoanActions, _Component);
|
|
41058
41204
|
|
|
@@ -41070,7 +41216,8 @@ var LoanActions$1 = /*#__PURE__*/function (_Component) {
|
|
|
41070
41216
|
var actions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
41071
41217
|
var _this$props = this.props,
|
|
41072
41218
|
performLoanAction = _this$props.performLoanAction,
|
|
41073
|
-
isLoading = _this$props.isLoading
|
|
41219
|
+
isLoading = _this$props.isLoading,
|
|
41220
|
+
loanDetails = _this$props.loanDetails; // omit checkout because it must done in one of the available items
|
|
41074
41221
|
|
|
41075
41222
|
if (!itemPid) {
|
|
41076
41223
|
actions = omit(actions, 'checkout');
|
|
@@ -41090,13 +41237,15 @@ var LoanActions$1 = /*#__PURE__*/function (_Component) {
|
|
|
41090
41237
|
|
|
41091
41238
|
return /*#__PURE__*/React.createElement(List.Item, {
|
|
41092
41239
|
key: action
|
|
41093
|
-
}, action === 'cancel' ? /*#__PURE__*/React.createElement(
|
|
41094
|
-
|
|
41095
|
-
|
|
41096
|
-
|
|
41097
|
-
|
|
41098
|
-
|
|
41099
|
-
isLoading: isLoading
|
|
41240
|
+
}, action === 'cancel' ? /*#__PURE__*/React.createElement(CancelLoanModal, {
|
|
41241
|
+
pid: pid,
|
|
41242
|
+
isLoading: isLoading,
|
|
41243
|
+
cancelAction: cancelAction
|
|
41244
|
+
}) : action === 'extend' ? /*#__PURE__*/React.createElement(ExtendModal, {
|
|
41245
|
+
pid: pid,
|
|
41246
|
+
isLoading: isLoading,
|
|
41247
|
+
loanAction: loanAction,
|
|
41248
|
+
loanDetails: loanDetails
|
|
41100
41249
|
}) : /*#__PURE__*/React.createElement(Button, {
|
|
41101
41250
|
size: "small",
|
|
41102
41251
|
fluid: true,
|
|
@@ -41460,7 +41609,10 @@ var LoanSearch = /*#__PURE__*/function (_Component) {
|
|
|
41460
41609
|
placeholder: "Search for loans"
|
|
41461
41610
|
}, invenioConfig.APP.SEARCH_BAR_PROPS)), /*#__PURE__*/React.createElement(QueryBuildHelper, {
|
|
41462
41611
|
fields: helperFields
|
|
41463
|
-
})), /*#__PURE__*/React.createElement(
|
|
41612
|
+
})), /*#__PURE__*/React.createElement(Container, {
|
|
41613
|
+
fluid: true,
|
|
41614
|
+
className: "bo-search-body"
|
|
41615
|
+
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Grid.Row, {
|
|
41464
41616
|
columns: 2
|
|
41465
41617
|
}, /*#__PURE__*/React.createElement(ResultsLoader, null, /*#__PURE__*/React.createElement(Grid.Column, {
|
|
41466
41618
|
width: 3,
|
|
@@ -41471,7 +41623,16 @@ var LoanSearch = /*#__PURE__*/function (_Component) {
|
|
|
41471
41623
|
modelName: this.modelName
|
|
41472
41624
|
}), /*#__PURE__*/React.createElement(SearchDateRange, null)), /*#__PURE__*/React.createElement(Grid.Column, {
|
|
41473
41625
|
width: 13
|
|
41474
|
-
}, /*#__PURE__*/React.createElement(
|
|
41626
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
41627
|
+
columns: 2
|
|
41628
|
+
}, /*#__PURE__*/React.createElement(Grid.Column, {
|
|
41629
|
+
width: 8
|
|
41630
|
+
}), /*#__PURE__*/React.createElement(Grid.Column, {
|
|
41631
|
+
width: 8,
|
|
41632
|
+
textAlign: "right"
|
|
41633
|
+
}, /*#__PURE__*/React.createElement(ExportReactSearchKitResults, {
|
|
41634
|
+
exportBaseUrl: loanApi.searchBaseURL
|
|
41635
|
+
}))), /*#__PURE__*/React.createElement(EmptyResults, {
|
|
41475
41636
|
extraContent: /*#__PURE__*/React.createElement(NewButton, {
|
|
41476
41637
|
text: "Add document",
|
|
41477
41638
|
to: BackOfficeRoutes.documentCreate
|
|
@@ -41481,7 +41642,7 @@ var LoanSearch = /*#__PURE__*/function (_Component) {
|
|
|
41481
41642
|
withLayoutSwitcher: false
|
|
41482
41643
|
}), /*#__PURE__*/React.createElement(ResultsList, {
|
|
41483
41644
|
ListEntryElement: LoanListEntry
|
|
41484
|
-
}), /*#__PURE__*/React.createElement(SearchFooter, null)))))))));
|
|
41645
|
+
}), /*#__PURE__*/React.createElement(SearchFooter, null))))))))));
|
|
41485
41646
|
}
|
|
41486
41647
|
}]);
|
|
41487
41648
|
|
|
@@ -43634,72 +43795,12 @@ var fetchPatronPendingLoans = function fetchPatronPendingLoans(patronPid) {
|
|
|
43634
43795
|
}();
|
|
43635
43796
|
};
|
|
43636
43797
|
|
|
43798
|
+
//separated into different file because of a circular dependency caused otherwise
|
|
43637
43799
|
var IS_LOADING$i = 'itemsSearchBarcode/IS_LOADING';
|
|
43638
43800
|
var SUCCESS$i = 'itemsSearchBarcode/SUCCESS';
|
|
43639
43801
|
var HAS_ERROR$i = 'itemsSearchBarcode/HAS_ERROR';
|
|
43640
43802
|
var QUERY_STRING_UPDATE = 'itemsSearchBarcode/QUERY_STRING_UPDATE';
|
|
43641
43803
|
var CLEAR_SEARCH = 'itemsSearchBarcode/CLEAR_SEARCH';
|
|
43642
|
-
var fetchItems = function fetchItems(barcode) {
|
|
43643
|
-
return /*#__PURE__*/function () {
|
|
43644
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(dispatch) {
|
|
43645
|
-
var response;
|
|
43646
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
43647
|
-
while (1) {
|
|
43648
|
-
switch (_context.prev = _context.next) {
|
|
43649
|
-
case 0:
|
|
43650
|
-
dispatch({
|
|
43651
|
-
type: IS_LOADING$i
|
|
43652
|
-
});
|
|
43653
|
-
_context.prev = 1;
|
|
43654
|
-
_context.next = 4;
|
|
43655
|
-
return itemApi.list(itemApi.query().withBarcode(barcode).qs());
|
|
43656
|
-
|
|
43657
|
-
case 4:
|
|
43658
|
-
response = _context.sent;
|
|
43659
|
-
dispatch({
|
|
43660
|
-
type: SUCCESS$i,
|
|
43661
|
-
payload: response.data
|
|
43662
|
-
});
|
|
43663
|
-
_context.next = 12;
|
|
43664
|
-
break;
|
|
43665
|
-
|
|
43666
|
-
case 8:
|
|
43667
|
-
_context.prev = 8;
|
|
43668
|
-
_context.t0 = _context["catch"](1);
|
|
43669
|
-
dispatch({
|
|
43670
|
-
type: HAS_ERROR$i,
|
|
43671
|
-
payload: _context.t0
|
|
43672
|
-
});
|
|
43673
|
-
dispatch(sendErrorNotification(_context.t0));
|
|
43674
|
-
|
|
43675
|
-
case 12:
|
|
43676
|
-
case "end":
|
|
43677
|
-
return _context.stop();
|
|
43678
|
-
}
|
|
43679
|
-
}
|
|
43680
|
-
}, _callee, null, [[1, 8]]);
|
|
43681
|
-
}));
|
|
43682
|
-
|
|
43683
|
-
return function (_x) {
|
|
43684
|
-
return _ref.apply(this, arguments);
|
|
43685
|
-
};
|
|
43686
|
-
}();
|
|
43687
|
-
};
|
|
43688
|
-
var updateQueryString = function updateQueryString(queryString) {
|
|
43689
|
-
return function (dispatch) {
|
|
43690
|
-
dispatch({
|
|
43691
|
-
type: QUERY_STRING_UPDATE,
|
|
43692
|
-
queryString: queryString
|
|
43693
|
-
});
|
|
43694
|
-
};
|
|
43695
|
-
};
|
|
43696
|
-
var clearResults = function clearResults() {
|
|
43697
|
-
return function (dispatch) {
|
|
43698
|
-
dispatch({
|
|
43699
|
-
type: CLEAR_SEARCH
|
|
43700
|
-
});
|
|
43701
|
-
};
|
|
43702
|
-
};
|
|
43703
43804
|
|
|
43704
43805
|
var IS_LOADING$h = 'patronItemCheckout/IS_LOADING';
|
|
43705
43806
|
var SUCCESS$h = 'patronItemCheckout/SUCCESS';
|
|
@@ -44006,83 +44107,82 @@ var ItemsSearch$1 = /*#__PURE__*/function (_Component) {
|
|
|
44006
44107
|
clearResults();
|
|
44007
44108
|
};
|
|
44008
44109
|
|
|
44009
|
-
_this.executeSearch = function (
|
|
44010
|
-
var
|
|
44011
|
-
|
|
44012
|
-
fetchItems = _this$props.fetchItems;
|
|
44013
|
-
queryString = queryString || propsQueryString; // eslint-disable-next-line react/no-unused-state
|
|
44110
|
+
_this.executeSearch = /*#__PURE__*/function () {
|
|
44111
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(queryString, patronPid) {
|
|
44112
|
+
var _this$props, propsQueryString, fetchAndCheckoutIfOne;
|
|
44014
44113
|
|
|
44015
|
-
|
|
44016
|
-
|
|
44017
|
-
|
|
44018
|
-
|
|
44114
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
44115
|
+
while (1) {
|
|
44116
|
+
switch (_context.prev = _context.next) {
|
|
44117
|
+
case 0:
|
|
44118
|
+
_this$props = _this.props, propsQueryString = _this$props.queryString, fetchAndCheckoutIfOne = _this$props.fetchAndCheckoutIfOne;
|
|
44119
|
+
queryString = queryString || propsQueryString; // eslint-disable-next-line react/no-unused-state
|
|
44019
44120
|
|
|
44020
|
-
|
|
44021
|
-
|
|
44121
|
+
_this.setState({
|
|
44122
|
+
prevSearchQuery: queryString,
|
|
44123
|
+
executedSearch: true
|
|
44124
|
+
}, function () {
|
|
44125
|
+
return fetchAndCheckoutIfOne(queryString, patronPid);
|
|
44126
|
+
});
|
|
44022
44127
|
|
|
44023
|
-
|
|
44024
|
-
|
|
44025
|
-
|
|
44128
|
+
case 3:
|
|
44129
|
+
case "end":
|
|
44130
|
+
return _context.stop();
|
|
44131
|
+
}
|
|
44132
|
+
}
|
|
44133
|
+
}, _callee);
|
|
44134
|
+
}));
|
|
44026
44135
|
|
|
44027
|
-
|
|
44136
|
+
return function (_x, _x2) {
|
|
44137
|
+
return _ref.apply(this, arguments);
|
|
44138
|
+
};
|
|
44139
|
+
}();
|
|
44140
|
+
|
|
44141
|
+
_this.onPasteHandler = /*#__PURE__*/function () {
|
|
44142
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(event) {
|
|
44143
|
+
var prevSearchQuery, patronDetails, queryString, sameQueryString;
|
|
44144
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
44028
44145
|
while (1) {
|
|
44029
|
-
switch (
|
|
44146
|
+
switch (_context2.prev = _context2.next) {
|
|
44030
44147
|
case 0:
|
|
44031
|
-
_this$props2 = _this.props, checkoutItem = _this$props2.checkoutItem, patronDetails = _this$props2.patronDetails;
|
|
44032
44148
|
prevSearchQuery = _this.state.prevSearchQuery;
|
|
44149
|
+
patronDetails = _this.props.patronDetails;
|
|
44033
44150
|
queryString = event.clipboardData.getData('Text');
|
|
44034
44151
|
sameQueryString = prevSearchQuery === queryString;
|
|
44035
44152
|
|
|
44036
44153
|
if (!(queryString && !sameQueryString)) {
|
|
44037
|
-
|
|
44154
|
+
_context2.next = 8;
|
|
44038
44155
|
break;
|
|
44039
44156
|
}
|
|
44040
44157
|
|
|
44041
|
-
|
|
44042
|
-
return _this.executeSearch(queryString);
|
|
44158
|
+
_context2.next = 7;
|
|
44159
|
+
return _this.executeSearch(queryString, patronDetails.user_pid);
|
|
44043
44160
|
|
|
44044
44161
|
case 7:
|
|
44045
|
-
hits = _this.props.items.hits;
|
|
44046
|
-
hasOneHit = !_isEmpty(hits) && hits.length === 1 && hits[0].metadata.status === 'CAN_CIRCULATE';
|
|
44047
|
-
|
|
44048
|
-
if (!hasOneHit) {
|
|
44049
|
-
_context.next = 14;
|
|
44050
|
-
break;
|
|
44051
|
-
}
|
|
44052
|
-
|
|
44053
|
-
documentPid = hits[0].metadata.document.pid;
|
|
44054
|
-
itemPid = {
|
|
44055
|
-
type: recordToPidType(hits[0]),
|
|
44056
|
-
value: hits[0].metadata.pid
|
|
44057
|
-
};
|
|
44058
|
-
_context.next = 14;
|
|
44059
|
-
return checkoutItem(documentPid, itemPid, patronDetails.user_pid, true);
|
|
44060
|
-
|
|
44061
|
-
case 14:
|
|
44062
44162
|
// eslint-disable-next-line react/no-unused-state
|
|
44063
44163
|
_this.setState({
|
|
44064
44164
|
prevSearchQuery: '',
|
|
44065
44165
|
executedSearch: true
|
|
44066
44166
|
});
|
|
44067
44167
|
|
|
44068
|
-
case
|
|
44168
|
+
case 8:
|
|
44069
44169
|
case "end":
|
|
44070
|
-
return
|
|
44170
|
+
return _context2.stop();
|
|
44071
44171
|
}
|
|
44072
44172
|
}
|
|
44073
|
-
},
|
|
44173
|
+
}, _callee2);
|
|
44074
44174
|
}));
|
|
44075
44175
|
|
|
44076
|
-
return function (
|
|
44077
|
-
return
|
|
44176
|
+
return function (_x3) {
|
|
44177
|
+
return _ref2.apply(this, arguments);
|
|
44078
44178
|
};
|
|
44079
44179
|
}();
|
|
44080
44180
|
|
|
44081
44181
|
_this.renderResultsList = function (results) {
|
|
44082
|
-
var _this$
|
|
44083
|
-
patronDetails = _this$
|
|
44084
|
-
clearResults = _this$
|
|
44085
|
-
isLoadingSearch = _this$
|
|
44182
|
+
var _this$props2 = _this.props,
|
|
44183
|
+
patronDetails = _this$props2.patronDetails,
|
|
44184
|
+
clearResults = _this$props2.clearResults,
|
|
44185
|
+
isLoadingSearch = _this$props2.isLoadingSearch;
|
|
44086
44186
|
var executedSearch = _this.state.executedSearch;
|
|
44087
44187
|
return /*#__PURE__*/React.createElement(ItemsResultsList, {
|
|
44088
44188
|
patronPid: patronDetails.user_pid,
|
|
@@ -44103,11 +44203,11 @@ var ItemsSearch$1 = /*#__PURE__*/function (_Component) {
|
|
|
44103
44203
|
_createClass(ItemsSearch, [{
|
|
44104
44204
|
key: "render",
|
|
44105
44205
|
value: function render() {
|
|
44106
|
-
var _this$
|
|
44107
|
-
items = _this$
|
|
44108
|
-
isLoading = _this$
|
|
44109
|
-
error = _this$
|
|
44110
|
-
queryString = _this$
|
|
44206
|
+
var _this$props3 = this.props,
|
|
44207
|
+
items = _this$props3.items,
|
|
44208
|
+
isLoading = _this$props3.isLoading,
|
|
44209
|
+
error = _this$props3.error,
|
|
44210
|
+
queryString = _this$props3.queryString;
|
|
44111
44211
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Container, {
|
|
44112
44212
|
className: "spaced"
|
|
44113
44213
|
}, /*#__PURE__*/React.createElement(SearchBarILS, {
|
|
@@ -44137,10 +44237,88 @@ ItemsSearch$1.defaultProps = {
|
|
|
44137
44237
|
items: null
|
|
44138
44238
|
};
|
|
44139
44239
|
|
|
44240
|
+
var fetchAndCheckoutIfOne = function fetchAndCheckoutIfOne(barcode, patronPid) {
|
|
44241
|
+
return /*#__PURE__*/function () {
|
|
44242
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(dispatch) {
|
|
44243
|
+
var response, ableToAutoCheckout, itemToCheckout, documentPid, itemPid;
|
|
44244
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
44245
|
+
while (1) {
|
|
44246
|
+
switch (_context.prev = _context.next) {
|
|
44247
|
+
case 0:
|
|
44248
|
+
dispatch({
|
|
44249
|
+
type: IS_LOADING$i
|
|
44250
|
+
});
|
|
44251
|
+
_context.prev = 1;
|
|
44252
|
+
_context.next = 4;
|
|
44253
|
+
return itemApi.list(itemApi.query().withBarcode(barcode).qs());
|
|
44254
|
+
|
|
44255
|
+
case 4:
|
|
44256
|
+
response = _context.sent;
|
|
44257
|
+
dispatch({
|
|
44258
|
+
type: SUCCESS$i,
|
|
44259
|
+
payload: response.data
|
|
44260
|
+
});
|
|
44261
|
+
ableToAutoCheckout = patronPid && hitAvailableForCheckout(response.data.hits);
|
|
44262
|
+
|
|
44263
|
+
if (ableToAutoCheckout) {
|
|
44264
|
+
itemToCheckout = response.data.hits[0];
|
|
44265
|
+
documentPid = itemToCheckout.metadata.document.pid;
|
|
44266
|
+
itemPid = {
|
|
44267
|
+
type: recordToPidType(itemToCheckout),
|
|
44268
|
+
value: itemToCheckout.metadata.pid
|
|
44269
|
+
};
|
|
44270
|
+
dispatch(checkoutItem(documentPid, itemPid, patronPid, true));
|
|
44271
|
+
}
|
|
44272
|
+
|
|
44273
|
+
_context.next = 14;
|
|
44274
|
+
break;
|
|
44275
|
+
|
|
44276
|
+
case 10:
|
|
44277
|
+
_context.prev = 10;
|
|
44278
|
+
_context.t0 = _context["catch"](1);
|
|
44279
|
+
dispatch({
|
|
44280
|
+
type: HAS_ERROR$i,
|
|
44281
|
+
payload: _context.t0
|
|
44282
|
+
});
|
|
44283
|
+
dispatch(sendErrorNotification(_context.t0));
|
|
44284
|
+
|
|
44285
|
+
case 14:
|
|
44286
|
+
case "end":
|
|
44287
|
+
return _context.stop();
|
|
44288
|
+
}
|
|
44289
|
+
}
|
|
44290
|
+
}, _callee, null, [[1, 10]]);
|
|
44291
|
+
}));
|
|
44292
|
+
|
|
44293
|
+
return function (_x) {
|
|
44294
|
+
return _ref.apply(this, arguments);
|
|
44295
|
+
};
|
|
44296
|
+
}();
|
|
44297
|
+
};
|
|
44298
|
+
var updateQueryString = function updateQueryString(queryString) {
|
|
44299
|
+
return function (dispatch) {
|
|
44300
|
+
dispatch({
|
|
44301
|
+
type: QUERY_STRING_UPDATE,
|
|
44302
|
+
queryString: queryString
|
|
44303
|
+
});
|
|
44304
|
+
};
|
|
44305
|
+
};
|
|
44306
|
+
var clearResults = function clearResults() {
|
|
44307
|
+
return function (dispatch) {
|
|
44308
|
+
dispatch({
|
|
44309
|
+
type: CLEAR_SEARCH
|
|
44310
|
+
});
|
|
44311
|
+
};
|
|
44312
|
+
};
|
|
44313
|
+
|
|
44314
|
+
var hitAvailableForCheckout = function hitAvailableForCheckout(hits) {
|
|
44315
|
+
return !_isEmpty(hits) && hits.length === 1 && hits[0].metadata.status === 'CAN_CIRCULATE';
|
|
44316
|
+
};
|
|
44317
|
+
|
|
44140
44318
|
var mapDispatchToProps$p = function mapDispatchToProps(dispatch) {
|
|
44141
44319
|
return {
|
|
44142
|
-
|
|
44143
|
-
return dispatch(
|
|
44320
|
+
fetchAndCheckoutIfOne: function fetchAndCheckoutIfOne$1(barcode, patronPid) {
|
|
44321
|
+
return dispatch(fetchAndCheckoutIfOne(barcode, patronPid));
|
|
44144
44322
|
},
|
|
44145
44323
|
updateQueryString: function updateQueryString$1(qs) {
|
|
44146
44324
|
return dispatch(updateQueryString(qs));
|
|
@@ -45106,7 +45284,7 @@ var PatronPastLoans$3 = /*#__PURE__*/function (_Component) {
|
|
|
45106
45284
|
_this.seeAllButton = function () {
|
|
45107
45285
|
var patronDetails = _this.props.patronDetails;
|
|
45108
45286
|
var patronPid = patronDetails.user_pid;
|
|
45109
|
-
var path = BackOfficeRoutes.loansListWithQuery(loanApi.query().withPatronPid(patronPid).withState(invenioConfig.CIRCULATION.
|
|
45287
|
+
var path = BackOfficeRoutes.loansListWithQuery(loanApi.query().withPatronPid(patronPid).withState(invenioConfig.CIRCULATION.loanCompletedStates).qs());
|
|
45110
45288
|
return /*#__PURE__*/React.createElement(SeeAllButton, {
|
|
45111
45289
|
to: path
|
|
45112
45290
|
});
|
|
@@ -51466,24 +51644,26 @@ var mapStateToProps$e = function mapStateToProps(state) {
|
|
|
51466
51644
|
|
|
51467
51645
|
var DocumentItems = connect(mapStateToProps$e, null)(DocumentItemsComponent);
|
|
51468
51646
|
|
|
51469
|
-
var
|
|
51470
|
-
_inherits(
|
|
51647
|
+
var DocumentConferenceCmp = /*#__PURE__*/function (_Component) {
|
|
51648
|
+
_inherits(DocumentConferenceCmp, _Component);
|
|
51471
51649
|
|
|
51472
|
-
var _super = _createSuper(
|
|
51650
|
+
var _super = _createSuper(DocumentConferenceCmp);
|
|
51473
51651
|
|
|
51474
|
-
function
|
|
51475
|
-
|
|
51476
|
-
|
|
51477
|
-
_classCallCheck(this, DocumentConference);
|
|
51478
|
-
|
|
51479
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
51480
|
-
args[_key] = arguments[_key];
|
|
51481
|
-
}
|
|
51652
|
+
function DocumentConferenceCmp() {
|
|
51653
|
+
_classCallCheck(this, DocumentConferenceCmp);
|
|
51482
51654
|
|
|
51483
|
-
|
|
51655
|
+
return _super.apply(this, arguments);
|
|
51656
|
+
}
|
|
51484
51657
|
|
|
51485
|
-
|
|
51486
|
-
|
|
51658
|
+
_createClass(DocumentConferenceCmp, [{
|
|
51659
|
+
key: "render",
|
|
51660
|
+
value: function render() {
|
|
51661
|
+
var conference = this.props.conference;
|
|
51662
|
+
return /*#__PURE__*/React.createElement(Overridable, {
|
|
51663
|
+
id: "DocumentConference.layout"
|
|
51664
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
|
|
51665
|
+
horizontal: true
|
|
51666
|
+
}, "Conference information"), _isEmpty(conference) && 'No conference information.', conference.map(function (conf) {
|
|
51487
51667
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Table, {
|
|
51488
51668
|
definition: true,
|
|
51489
51669
|
key: conf
|
|
@@ -51491,28 +51671,18 @@ var DocumentConference = /*#__PURE__*/function (_Component) {
|
|
|
51491
51671
|
width: 4
|
|
51492
51672
|
}, "Conference"), /*#__PURE__*/React.createElement(Table.Cell, null, conf.title)), /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Acronym"), /*#__PURE__*/React.createElement(Table.Cell, null, conf.acronym)), /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Dates"), /*#__PURE__*/React.createElement(Table.Cell, null, conf.dates)), /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Identifiers"), /*#__PURE__*/React.createElement(Table.Cell, null, conf.identifiers && conf.identifiers.map(function (identifier) {
|
|
51493
51673
|
return '(' + identifier.scheme + ') ' + identifier.value;
|
|
51494
|
-
}))), /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Place"), /*#__PURE__*/React.createElement(Table.Cell, null, conf.place)), /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Series"), /*#__PURE__*/React.createElement(Table.Cell, null, conf.series)))), /*#__PURE__*/React.createElement("br", null));
|
|
51495
|
-
});
|
|
51496
|
-
};
|
|
51497
|
-
|
|
51498
|
-
return _this;
|
|
51499
|
-
}
|
|
51500
|
-
|
|
51501
|
-
_createClass(DocumentConference, [{
|
|
51502
|
-
key: "render",
|
|
51503
|
-
value: function render() {
|
|
51504
|
-
var conference = this.props.conference;
|
|
51505
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
|
|
51506
|
-
horizontal: true
|
|
51507
|
-
}, "Conference information"), _isEmpty(conference) ? 'No conference information' : this.renderConferences(conference));
|
|
51674
|
+
}))), /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Place"), /*#__PURE__*/React.createElement(Table.Cell, null, conf.place)), /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Series number"), /*#__PURE__*/React.createElement(Table.Cell, null, conf.series)))), /*#__PURE__*/React.createElement("br", null));
|
|
51675
|
+
})));
|
|
51508
51676
|
}
|
|
51509
51677
|
}]);
|
|
51510
51678
|
|
|
51511
|
-
return
|
|
51679
|
+
return DocumentConferenceCmp;
|
|
51512
51680
|
}(Component);
|
|
51513
|
-
|
|
51681
|
+
|
|
51682
|
+
DocumentConferenceCmp.defaultProps = {
|
|
51514
51683
|
conference: []
|
|
51515
51684
|
};
|
|
51685
|
+
var DocumentConference = Overridable.component('DocumentConference', DocumentConferenceCmp);
|
|
51516
51686
|
|
|
51517
51687
|
var DocumentContent = /*#__PURE__*/function (_Component) {
|
|
51518
51688
|
_inherits(DocumentContent, _Component);
|
|
@@ -51520,14 +51690,31 @@ var DocumentContent = /*#__PURE__*/function (_Component) {
|
|
|
51520
51690
|
var _super = _createSuper(DocumentContent);
|
|
51521
51691
|
|
|
51522
51692
|
function DocumentContent() {
|
|
51693
|
+
var _this;
|
|
51694
|
+
|
|
51523
51695
|
_classCallCheck(this, DocumentContent);
|
|
51524
51696
|
|
|
51525
|
-
|
|
51697
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
51698
|
+
args[_key] = arguments[_key];
|
|
51699
|
+
}
|
|
51700
|
+
|
|
51701
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
51702
|
+
|
|
51703
|
+
_this.prepareAlternativeAbstracts = function (element, index) {
|
|
51704
|
+
return [{
|
|
51705
|
+
name: index,
|
|
51706
|
+
value: element
|
|
51707
|
+
}];
|
|
51708
|
+
};
|
|
51709
|
+
|
|
51710
|
+
return _this;
|
|
51526
51711
|
}
|
|
51527
51712
|
|
|
51528
51713
|
_createClass(DocumentContent, [{
|
|
51529
51714
|
key: "render",
|
|
51530
51715
|
value: function render() {
|
|
51716
|
+
var _this2 = this;
|
|
51717
|
+
|
|
51531
51718
|
var _this$props = this.props,
|
|
51532
51719
|
metadata = _this$props.metadata,
|
|
51533
51720
|
_this$props$metadata = _this$props.metadata,
|
|
@@ -51547,7 +51734,14 @@ var DocumentContent = /*#__PURE__*/function (_Component) {
|
|
|
51547
51734
|
horizontal: true
|
|
51548
51735
|
}, "Subject classification"), /*#__PURE__*/React.createElement(DocumentSubjects, {
|
|
51549
51736
|
metadata: metadata
|
|
51550
|
-
})
|
|
51737
|
+
}), /*#__PURE__*/React.createElement(Divider, {
|
|
51738
|
+
horizontal: true
|
|
51739
|
+
}, "Alternative abstracts"), !_isEmpty(metadata.alternative_abstracts) ? metadata.alternative_abstracts.map(function (element, index) {
|
|
51740
|
+
return /*#__PURE__*/React.createElement(MetadataTable, {
|
|
51741
|
+
key: element,
|
|
51742
|
+
rows: _this2.prepareAlternativeAbstracts(element, index + 1)
|
|
51743
|
+
});
|
|
51744
|
+
}) : 'No alternative abstracts');
|
|
51551
51745
|
}
|
|
51552
51746
|
}]);
|
|
51553
51747
|
|
|
@@ -51578,10 +51772,10 @@ var DocumentCopyrights = /*#__PURE__*/function (_Component) {
|
|
|
51578
51772
|
return /*#__PURE__*/React.createElement(List.Item, {
|
|
51579
51773
|
key: entry.license.id
|
|
51580
51774
|
}, /*#__PURE__*/React.createElement("a", {
|
|
51581
|
-
href: entry.url,
|
|
51775
|
+
href: entry.license.url,
|
|
51582
51776
|
target: "_blank",
|
|
51583
51777
|
rel: "noopener noreferrer"
|
|
51584
|
-
}, entry.license.title), ' ', entry.material && "(".concat(entry.material, ")"), entry.license.maintainer && "maintained by ".concat(entry.license.maintainer));
|
|
51778
|
+
}, entry.license.title), ' ', entry.material && "(".concat(entry.material, ")"), ' ', entry.license.maintainer && "maintained by ".concat(entry.license.maintainer));
|
|
51585
51779
|
}));
|
|
51586
51780
|
};
|
|
51587
51781
|
|
|
@@ -51599,7 +51793,7 @@ var DocumentCopyrights = /*#__PURE__*/function (_Component) {
|
|
|
51599
51793
|
key: entry.statement
|
|
51600
51794
|
}, /*#__PURE__*/React.createElement("a", {
|
|
51601
51795
|
href: entry.url
|
|
51602
|
-
}, entry.statement),
|
|
51796
|
+
}, entry.statement), ' ', entry.material && "(".concat(entry.material, ")"), " held by ", entry.holder);
|
|
51603
51797
|
}));
|
|
51604
51798
|
}
|
|
51605
51799
|
}, {
|
|
@@ -51936,6 +52130,16 @@ var DocumentInfo = /*#__PURE__*/function (_Component) {
|
|
|
51936
52130
|
|
|
51937
52131
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
51938
52132
|
|
|
52133
|
+
_this.renderLanguages = function () {
|
|
52134
|
+
var metadata = _this.props.metadata;
|
|
52135
|
+
|
|
52136
|
+
if (metadata.languages) {
|
|
52137
|
+
return /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Languages"), /*#__PURE__*/React.createElement(Table.Cell, null, metadata.languages.join(', ')));
|
|
52138
|
+
}
|
|
52139
|
+
|
|
52140
|
+
return null;
|
|
52141
|
+
};
|
|
52142
|
+
|
|
51939
52143
|
_this.prepareImprintInfo = function () {
|
|
51940
52144
|
var metadata = _this.props.metadata;
|
|
51941
52145
|
return [{
|
|
@@ -51960,17 +52164,6 @@ var DocumentInfo = /*#__PURE__*/function (_Component) {
|
|
|
51960
52164
|
}
|
|
51961
52165
|
|
|
51962
52166
|
_createClass(DocumentInfo, [{
|
|
51963
|
-
key: "renderLanguages",
|
|
51964
|
-
value: function renderLanguages() {
|
|
51965
|
-
var metadata = this.props.metadata;
|
|
51966
|
-
|
|
51967
|
-
if (metadata.languages) {
|
|
51968
|
-
return /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Languages"), /*#__PURE__*/React.createElement(Table.Cell, null, metadata.languages.join(', ')));
|
|
51969
|
-
}
|
|
51970
|
-
|
|
51971
|
-
return null;
|
|
51972
|
-
}
|
|
51973
|
-
}, {
|
|
51974
52167
|
key: "renderKeywords",
|
|
51975
52168
|
value: function renderKeywords() {
|
|
51976
52169
|
var metadata = this.props.metadata;
|
|
@@ -51991,6 +52184,16 @@ var DocumentInfo = /*#__PURE__*/function (_Component) {
|
|
|
51991
52184
|
width: 4
|
|
51992
52185
|
}, "Title"), /*#__PURE__*/React.createElement(Table.Cell, null, metadata.title)), /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, {
|
|
51993
52186
|
width: 4
|
|
52187
|
+
}, "Alternative titles"), /*#__PURE__*/React.createElement(Table.Cell, null, /*#__PURE__*/React.createElement(List, {
|
|
52188
|
+
bulleted: true
|
|
52189
|
+
}, (metadata.alternative_titles || []).map(function (entry) {
|
|
52190
|
+
return /*#__PURE__*/React.createElement(List.Item, {
|
|
52191
|
+
key: entry.value
|
|
52192
|
+
}, /*#__PURE__*/React.createElement(List.Content, {
|
|
52193
|
+
className: "alternative-title"
|
|
52194
|
+
}, entry.value));
|
|
52195
|
+
})))), /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, {
|
|
52196
|
+
width: 4
|
|
51994
52197
|
}, "Authors"), /*#__PURE__*/React.createElement(Table.Cell, null, /*#__PURE__*/React.createElement(DocumentAuthors$1, {
|
|
51995
52198
|
authors: metadata.authors,
|
|
51996
52199
|
hasOtherAuthors: metadata.other_authors,
|
|
@@ -52041,9 +52244,9 @@ var DocumentPublicationInfo = /*#__PURE__*/function (_Component) {
|
|
|
52041
52244
|
}), /*#__PURE__*/React.createElement(Table, {
|
|
52042
52245
|
definition: true,
|
|
52043
52246
|
key: publication.journal_title
|
|
52044
|
-
}, /*#__PURE__*/React.createElement(Table.Body, null,
|
|
52247
|
+
}, /*#__PURE__*/React.createElement(Table.Body, null, (publication === null || publication === void 0 ? void 0 : publication.journal_title) && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, {
|
|
52045
52248
|
width: 4
|
|
52046
|
-
}, "Journal"), /*#__PURE__*/React.createElement(Table.Cell, null, publication.journal_title)),
|
|
52249
|
+
}, "Journal"), /*#__PURE__*/React.createElement(Table.Cell, null, publication.journal_title)), (publication === null || publication === void 0 ? void 0 : publication.journal_issue) && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Issue"), /*#__PURE__*/React.createElement(Table.Cell, null, publication.journal_issue)), (publication === null || publication === void 0 ? void 0 : publication.journal_volume) && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Volume"), /*#__PURE__*/React.createElement(Table.Cell, null, publication.journal_volume)), (publication === null || publication === void 0 ? void 0 : publication.artid) && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Article ID"), /*#__PURE__*/React.createElement(Table.Cell, null, publication.artid)), (publication === null || publication === void 0 ? void 0 : publication.pages) && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Pages"), /*#__PURE__*/React.createElement(Table.Cell, null, publication.pages)), (publication === null || publication === void 0 ? void 0 : publication.year) && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Publication year"), /*#__PURE__*/React.createElement(Table.Cell, null, publication.year)), (publication === null || publication === void 0 ? void 0 : publication.note) && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, "Note"), /*#__PURE__*/React.createElement(Table.Cell, null, publication.note)))));
|
|
52047
52250
|
})));
|
|
52048
52251
|
}
|
|
52049
52252
|
}]);
|
|
@@ -52080,49 +52283,6 @@ var LiteratureRelations = /*#__PURE__*/function (_Component) {
|
|
|
52080
52283
|
return relation.pid_type === 'docid' ? FrontSiteRoutes.documentDetailsFor(relation.pid_value) : FrontSiteRoutes.seriesDetailsFor(relation.pid_value);
|
|
52081
52284
|
};
|
|
52082
52285
|
|
|
52083
|
-
_this.renderMultiparts = function () {
|
|
52084
|
-
var relations = _get$1(_this.relations, 'multipart_monograph', []);
|
|
52085
|
-
|
|
52086
|
-
if (!relations.length) return null;
|
|
52087
|
-
var cmp = relations.map(function (rel) {
|
|
52088
|
-
var volume = _get$1(rel, 'volume');
|
|
52089
|
-
|
|
52090
|
-
var text = volume ? "".concat(rel.record_metadata.title, " (vol: ").concat(volume, ")") : rel.record_metadata.title;
|
|
52091
|
-
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
52092
|
-
key: rel.pid_value
|
|
52093
|
-
}, "This is part of the monograph", ' ', /*#__PURE__*/React.createElement(Link$1, {
|
|
52094
|
-
to: _this.getLinkTo(rel)
|
|
52095
|
-
}, /*#__PURE__*/React.createElement(LiteratureTitle$1, {
|
|
52096
|
-
title: text
|
|
52097
|
-
})));
|
|
52098
|
-
});
|
|
52099
|
-
return /*#__PURE__*/React.createElement(List.Item, null, cmp);
|
|
52100
|
-
};
|
|
52101
|
-
|
|
52102
|
-
_this.renderSerials = function () {
|
|
52103
|
-
var relations = _get$1(_this.relations, 'serial', []);
|
|
52104
|
-
|
|
52105
|
-
if (!relations.length) return null;
|
|
52106
|
-
var items = relations.map(function (rel) {
|
|
52107
|
-
var volume = _get$1(rel, 'volume');
|
|
52108
|
-
|
|
52109
|
-
var text = volume ? "".concat(rel.record_metadata.title, " (vol: ").concat(volume, ")") : rel.record_metadata.title;
|
|
52110
|
-
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
52111
|
-
key: rel.pid_value
|
|
52112
|
-
}, /*#__PURE__*/React.createElement(Link$1, {
|
|
52113
|
-
to: _this.getLinkTo(rel)
|
|
52114
|
-
}, /*#__PURE__*/React.createElement(LiteratureTitle$1, {
|
|
52115
|
-
title: text
|
|
52116
|
-
})));
|
|
52117
|
-
});
|
|
52118
|
-
return /*#__PURE__*/React.createElement(List.Item, null, /*#__PURE__*/React.createElement(SeparatedList, {
|
|
52119
|
-
items: items,
|
|
52120
|
-
prefix: "This is part of the series: ",
|
|
52121
|
-
separator: ";",
|
|
52122
|
-
className: "inline-list"
|
|
52123
|
-
}));
|
|
52124
|
-
};
|
|
52125
|
-
|
|
52126
52286
|
_this.renderLanguages = function () {
|
|
52127
52287
|
var relations = _get$1(_this.relations, 'language', []);
|
|
52128
52288
|
|
|
@@ -52184,6 +52344,10 @@ var LiteratureRelations = /*#__PURE__*/function (_Component) {
|
|
|
52184
52344
|
};
|
|
52185
52345
|
|
|
52186
52346
|
_this.relations = props.relations;
|
|
52347
|
+
_this.prefixes = {
|
|
52348
|
+
serial: 'This is part of the periodical:',
|
|
52349
|
+
multipart_monograph: 'This is part of the monograph:'
|
|
52350
|
+
};
|
|
52187
52351
|
return _this;
|
|
52188
52352
|
}
|
|
52189
52353
|
|
|
@@ -52192,13 +52356,51 @@ var LiteratureRelations = /*#__PURE__*/function (_Component) {
|
|
|
52192
52356
|
value: function render() {
|
|
52193
52357
|
return !_isEmpty(this.relations) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
|
|
52194
52358
|
horizontal: true
|
|
52195
|
-
}, "Related"), /*#__PURE__*/React.createElement(List, null,
|
|
52359
|
+
}, "Related"), /*#__PURE__*/React.createElement(List, null, /*#__PURE__*/React.createElement(LiteratureRelationsField, {
|
|
52360
|
+
relationsData: this.relations,
|
|
52361
|
+
property: "multipart_monograph",
|
|
52362
|
+
prefix: this.prefixes['multipart_monograph']
|
|
52363
|
+
}), /*#__PURE__*/React.createElement(LiteratureRelationsField, {
|
|
52364
|
+
relationsData: this.relations,
|
|
52365
|
+
property: "serial",
|
|
52366
|
+
prefix: this.prefixes['serial']
|
|
52367
|
+
}), this.renderLanguages(), this.renderEditions(), this.renderOther())) : null;
|
|
52196
52368
|
}
|
|
52197
52369
|
}]);
|
|
52198
52370
|
|
|
52199
52371
|
return LiteratureRelations;
|
|
52200
52372
|
}(Component);
|
|
52201
52373
|
|
|
52374
|
+
var LiteratureRelationsField = function LiteratureRelationsField(_ref) {
|
|
52375
|
+
var relationsData = _ref.relationsData,
|
|
52376
|
+
property = _ref.property,
|
|
52377
|
+
prefix = _ref.prefix;
|
|
52378
|
+
|
|
52379
|
+
var relations = _get$1(relationsData, property, []);
|
|
52380
|
+
|
|
52381
|
+
if (!relations.length) return null;
|
|
52382
|
+
|
|
52383
|
+
var getLinkTo = function getLinkTo(relation) {
|
|
52384
|
+
return relation.pid_type === 'docid' ? FrontSiteRoutes.documentDetailsFor(relation.pid_value) : FrontSiteRoutes.seriesDetailsFor(relation.pid_value);
|
|
52385
|
+
};
|
|
52386
|
+
|
|
52387
|
+
return /*#__PURE__*/React.createElement(List.Item, null, prefix, /*#__PURE__*/React.createElement(List, {
|
|
52388
|
+
bulleted: true
|
|
52389
|
+
}, relations.map(function (rel) {
|
|
52390
|
+
var volume = _get$1(rel, 'volume');
|
|
52391
|
+
|
|
52392
|
+
var text = volume ? "".concat(rel.record_metadata.title, " (vol: ").concat(volume, ")") : rel.record_metadata.title;
|
|
52393
|
+
return /*#__PURE__*/React.createElement(List.Item, {
|
|
52394
|
+
bulleted: true,
|
|
52395
|
+
key: rel.pid_value
|
|
52396
|
+
}, /*#__PURE__*/React.createElement(Link$1, {
|
|
52397
|
+
to: getLinkTo(rel)
|
|
52398
|
+
}, /*#__PURE__*/React.createElement(LiteratureTitle$1, {
|
|
52399
|
+
title: text
|
|
52400
|
+
})));
|
|
52401
|
+
})));
|
|
52402
|
+
};
|
|
52403
|
+
|
|
52202
52404
|
var DocumentMetadataTabs$1 = /*#__PURE__*/function (_Component) {
|
|
52203
52405
|
_inherits(DocumentMetadataTabs, _Component);
|
|
52204
52406
|
|
|
@@ -52234,9 +52436,11 @@ var DocumentMetadataTabs$1 = /*#__PURE__*/function (_Component) {
|
|
|
52234
52436
|
}, {
|
|
52235
52437
|
menuItem: 'Identifiers',
|
|
52236
52438
|
render: function render() {
|
|
52237
|
-
return /*#__PURE__*/React.createElement(Tab.Pane, null, /*#__PURE__*/React.createElement(
|
|
52439
|
+
return /*#__PURE__*/React.createElement(Tab.Pane, null, /*#__PURE__*/React.createElement(Overridable, {
|
|
52440
|
+
id: "DocumentMetadataTabs.Identifiers"
|
|
52441
|
+
}, /*#__PURE__*/React.createElement(Identifiers, {
|
|
52238
52442
|
identifiers: identifiers.concat(altIdentifiers)
|
|
52239
|
-
}));
|
|
52443
|
+
})));
|
|
52240
52444
|
}
|
|
52241
52445
|
}, {
|
|
52242
52446
|
menuItem: 'Content',
|
|
@@ -52246,7 +52450,7 @@ var DocumentMetadataTabs$1 = /*#__PURE__*/function (_Component) {
|
|
|
52246
52450
|
}));
|
|
52247
52451
|
}
|
|
52248
52452
|
}, {
|
|
52249
|
-
menuItem: '
|
|
52453
|
+
menuItem: 'Published in',
|
|
52250
52454
|
render: function render() {
|
|
52251
52455
|
return /*#__PURE__*/React.createElement(DocumentPublicationInfo, {
|
|
52252
52456
|
publications: metadata.publication_info
|
|
@@ -52281,13 +52485,6 @@ var DocumentMetadataTabs$1 = /*#__PURE__*/function (_Component) {
|
|
|
52281
52485
|
metadata: metadata
|
|
52282
52486
|
}));
|
|
52283
52487
|
}
|
|
52284
|
-
}, {
|
|
52285
|
-
menuItem: 'Other',
|
|
52286
|
-
render: function render() {
|
|
52287
|
-
return /*#__PURE__*/React.createElement(Tab.Pane, null, /*#__PURE__*/React.createElement(DocumentExtras, {
|
|
52288
|
-
metadata: metadata
|
|
52289
|
-
}));
|
|
52290
|
-
}
|
|
52291
52488
|
}];
|
|
52292
52489
|
var _metadata$extensions = metadata.extensions,
|
|
52293
52490
|
extensions = _metadata$extensions === void 0 ? {} : _metadata$extensions;
|
|
@@ -52431,9 +52628,11 @@ var DocumentMetadataAccordion = /*#__PURE__*/function (_Component) {
|
|
|
52431
52628
|
name: "dropdown"
|
|
52432
52629
|
}), "Identifiers"), /*#__PURE__*/React.createElement(Accordion.Content, {
|
|
52433
52630
|
active: activeIndex === 'identifiers'
|
|
52631
|
+
}, /*#__PURE__*/React.createElement(Overridable, {
|
|
52632
|
+
id: "DocumentMetadataTabs.Identifiers"
|
|
52434
52633
|
}, /*#__PURE__*/React.createElement(Identifiers, {
|
|
52435
52634
|
identifiers: identifiers.concat(altIdentifiers)
|
|
52436
|
-
})), /*#__PURE__*/React.createElement(Accordion.Title, {
|
|
52635
|
+
}))), /*#__PURE__*/React.createElement(Accordion.Title, {
|
|
52437
52636
|
active: activeIndex === 'content',
|
|
52438
52637
|
index: "content",
|
|
52439
52638
|
onClick: this.handleClick
|
|
@@ -52508,16 +52707,6 @@ var DocumentMetadataAccordion = /*#__PURE__*/function (_Component) {
|
|
|
52508
52707
|
active: activeIndex === 'licenses'
|
|
52509
52708
|
}, /*#__PURE__*/React.createElement(DocumentCopyrights, {
|
|
52510
52709
|
metadata: metadata
|
|
52511
|
-
})), /*#__PURE__*/React.createElement(Accordion.Title, {
|
|
52512
|
-
active: activeIndex === 'other',
|
|
52513
|
-
index: "other",
|
|
52514
|
-
onClick: this.handleClick
|
|
52515
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
52516
|
-
name: "dropdown"
|
|
52517
|
-
}), "Other"), /*#__PURE__*/React.createElement(Accordion.Content, {
|
|
52518
|
-
active: activeIndex === 'other'
|
|
52519
|
-
}, /*#__PURE__*/React.createElement(DocumentExtras, {
|
|
52520
|
-
metadata: metadata
|
|
52521
52710
|
})));
|
|
52522
52711
|
}
|
|
52523
52712
|
}]);
|
|
@@ -52637,9 +52826,12 @@ var DocumentEItems = /*#__PURE__*/function (_Component) {
|
|
|
52637
52826
|
as: "h3"
|
|
52638
52827
|
}, "Access online"), eitems.total > 0 ? /*#__PURE__*/React.createElement(DocumentEItemUrls, {
|
|
52639
52828
|
eitems: eitems
|
|
52640
|
-
}) : /*#__PURE__*/React.createElement(React.Fragment, null, "No e-resources currently available.
|
|
52641
|
-
|
|
52642
|
-
|
|
52829
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", null, "No e-resources currently available."), /*#__PURE__*/React.createElement(Button, {
|
|
52830
|
+
as: Link$1,
|
|
52831
|
+
to: this.onClickEItemRequestLink(),
|
|
52832
|
+
className: "default-margin-top",
|
|
52833
|
+
fluid: true
|
|
52834
|
+
}, "Request the e-book")), /*#__PURE__*/React.createElement(Divider, {
|
|
52643
52835
|
horizontal: true
|
|
52644
52836
|
}, "Or"));
|
|
52645
52837
|
}
|
|
@@ -53258,9 +53450,9 @@ var DocumentPanelMobile = /*#__PURE__*/function (_Component) {
|
|
|
53258
53450
|
}), /*#__PURE__*/React.createElement(Overridable, {
|
|
53259
53451
|
id: "DocumentPanelMobile.AfterAuthors",
|
|
53260
53452
|
metadata: doc.metadata
|
|
53261
|
-
}), ((_doc$metadata$imprint = doc.metadata.imprint) === null || _doc$metadata$imprint === void 0 ? void 0 : _doc$metadata$imprint.publisher) && /*#__PURE__*/React.createElement(
|
|
53453
|
+
}), ((_doc$metadata$imprint = doc.metadata.imprint) === null || _doc$metadata$imprint === void 0 ? void 0 : _doc$metadata$imprint.publisher) && /*#__PURE__*/React.createElement("div", {
|
|
53262
53454
|
className: "default-margin-bottom"
|
|
53263
|
-
}, "Published by ", /*#__PURE__*/React.createElement("b", null, (_doc$metadata$imprint2 = doc.metadata.imprint) === null || _doc$metadata$imprint2 === void 0 ? void 0 : _doc$metadata$imprint2.publisher), ' ',
|
|
53455
|
+
}, "Published by ", /*#__PURE__*/React.createElement("b", null, (_doc$metadata$imprint2 = doc.metadata.imprint) === null || _doc$metadata$imprint2 === void 0 ? void 0 : _doc$metadata$imprint2.publisher), ' ', /*#__PURE__*/React.createElement("b", null, doc.metadata.publication_year))), /*#__PURE__*/React.createElement(ILSParagraphPlaceholder, {
|
|
53264
53456
|
linesNumber: 1,
|
|
53265
53457
|
isLoading: isLoading
|
|
53266
53458
|
}, /*#__PURE__*/React.createElement(LiteratureTags$1, {
|
|
@@ -53348,9 +53540,9 @@ var DocumentPanel = /*#__PURE__*/function (_Component) {
|
|
|
53348
53540
|
}), /*#__PURE__*/React.createElement(Overridable, {
|
|
53349
53541
|
id: "DocumentPanel.AfterAuthors",
|
|
53350
53542
|
metadata: doc.metadata
|
|
53351
|
-
}), ((_doc$metadata$imprint = doc.metadata.imprint) === null || _doc$metadata$imprint === void 0 ? void 0 : _doc$metadata$imprint.publisher) && /*#__PURE__*/React.createElement(
|
|
53543
|
+
}), ((_doc$metadata$imprint = doc.metadata.imprint) === null || _doc$metadata$imprint === void 0 ? void 0 : _doc$metadata$imprint.publisher) && /*#__PURE__*/React.createElement("div", {
|
|
53352
53544
|
className: "default-margin-bottom"
|
|
53353
|
-
}, "Published by",
|
|
53545
|
+
}, "Published by ", /*#__PURE__*/React.createElement("b", null, (_doc$metadata$imprint2 = doc.metadata.imprint) === null || _doc$metadata$imprint2 === void 0 ? void 0 : _doc$metadata$imprint2.publisher), ' ', /*#__PURE__*/React.createElement("b", null, doc.metadata.publication_year))), /*#__PURE__*/React.createElement(ILSParagraphPlaceholder, {
|
|
53354
53546
|
linesNumber: 15,
|
|
53355
53547
|
isLoading: isLoading
|
|
53356
53548
|
}, /*#__PURE__*/React.createElement(ShowMoreContent, {
|
|
@@ -53462,11 +53654,19 @@ var DocumentDetailsLayout = function DocumentDetailsLayout(_ref) {
|
|
|
53462
53654
|
isLoading: isLoading
|
|
53463
53655
|
}, /*#__PURE__*/React.createElement(DocumentMetadata$1, {
|
|
53464
53656
|
documentDetails: documentDetails
|
|
53465
|
-
})))), /*#__PURE__*/React.createElement(
|
|
53466
|
-
|
|
53467
|
-
|
|
53468
|
-
|
|
53469
|
-
|
|
53657
|
+
})))), /*#__PURE__*/React.createElement(AuthenticationGuard, {
|
|
53658
|
+
authorizedComponent: function authorizedComponent() {
|
|
53659
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
53660
|
+
textAlign: "center"
|
|
53661
|
+
}, !_isEmpty(documentDetails.metadata) && /*#__PURE__*/React.createElement(DocumentStats, {
|
|
53662
|
+
document: documentDetails
|
|
53663
|
+
}));
|
|
53664
|
+
},
|
|
53665
|
+
loginComponent: function loginComponent() {
|
|
53666
|
+
return null;
|
|
53667
|
+
},
|
|
53668
|
+
silent: true
|
|
53669
|
+
})));
|
|
53470
53670
|
};
|
|
53471
53671
|
|
|
53472
53672
|
DocumentDetailsLayout.defaultProps = {
|
|
@@ -55779,7 +55979,7 @@ var LoansListEntry$1 = /*#__PURE__*/function (_Component) {
|
|
|
55779
55979
|
basic: true
|
|
55780
55980
|
}, "Loaned on", /*#__PURE__*/React.createElement(Label.Detail, null, DateTime.fromISO(startDate).toLocaleString())), /*#__PURE__*/React.createElement(Label, {
|
|
55781
55981
|
basic: true
|
|
55782
|
-
}, "Return
|
|
55982
|
+
}, "Return date", /*#__PURE__*/React.createElement(Label.Detail, null, DateTime.fromISO(endDate).toLocaleString())));
|
|
55783
55983
|
}
|
|
55784
55984
|
};
|
|
55785
55985
|
|
|
@@ -60311,5 +60511,5 @@ function IEFallback() {
|
|
|
60311
60511
|
};
|
|
60312
60512
|
}
|
|
60313
60513
|
|
|
60314
|
-
export { BackOfficeBase, BackOfficeRoutes, DocumentCardGroup$1 as DocumentCardGroup, DocumentIcon, DocumentRequestForm, FrontSiteRoutes, Headline$1 as Headline, HttpError$1 as HttpError, IEFallback, ILSStore, InfoPopup, App as InvenioILSApp, LiteratureSearch$1 as LiteratureSearch, Media, MetadataTable, NotFound, Pagination$1 as Pagination, ResultsTable, ScrollingMenuItem, add, bannerApi, borrowingRequestApi, circulationStatsApi, configureStore, documentApi, documentRequestApi, eItemApi, fileApi, getSearchConfig, getStaticPageByName, getStaticPageByRoute, getStaticPagesRoutes, history, http, injectAsyncReducer, internalLocationApi, invenioConfig, itemApi, literatureApi, loanApi, locationApi, orderApi, patronApi, recordToPidType, remove, seriesApi, statsApi, toShortDateTime, vocabularyApi, withCancel };
|
|
60514
|
+
export { BackOfficeBase, BackOfficeRoutes, DocumentCardGroup$1 as DocumentCardGroup, DocumentIcon, DocumentRequestForm, FrontSiteRoutes, Headline$1 as Headline, HttpError$1 as HttpError, IEFallback, ILSStore, InfoPopup, App as InvenioILSApp, LiteratureSearch$1 as LiteratureSearch, Media, MetadataTable, NotFound, Pagination$1 as Pagination, ResultsTable, ScrollingMenuItem, SeparatedList, add, bannerApi, borrowingRequestApi, circulationStatsApi, configureStore, documentApi, documentRequestApi, eItemApi, fileApi, getSearchConfig, getStaticPageByName, getStaticPageByRoute, getStaticPagesRoutes, history, http, injectAsyncReducer, internalLocationApi, invenioConfig, itemApi, literatureApi, loanApi, locationApi, orderApi, patronApi, recordToPidType, remove, seriesApi, statsApi, toShortDateTime, vocabularyApi, withCancel };
|
|
60315
60515
|
//# sourceMappingURL=index.js.map
|