Commit 07f4290 1 parent a5aa988 commit 07f4290 Copy full SHA for 07f4290
File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ class AlertBuilder {
87
87
88
88
// output all collected alerts
89
89
getAlerts ( ) {
90
+ console . log ( "Alerts:" ) ;
91
+ console . log ( JSON . stringify ( this . alerts , null , 2 ) ) ;
90
92
return this . alerts ;
91
93
}
92
94
}
Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ export default {
422
422
/* istanbul ignore if */
423
423
if (this .currentRecord .fairsharingRecord .doi ) {
424
424
citeAsUrl = " https://doi.org/" + this .currentRecord .fairsharingRecord .doi ;
425
- describedByUrl = this .getHostname () + this .currentRecord .fairsharingRecord .doi .split (/ \/ / )[1 ];
425
+ describedByUrl = this .getHostname () + this .currentRecord .fairsharingRecord .doi .split (/ \/ / )[1 ];
426
426
}
427
427
else {
428
428
citeAsUrl = this .getHostname () + this .recordID ;
@@ -933,7 +933,9 @@ export default {
933
933
async checkClaimStatus () {
934
934
let _module = this ;
935
935
if (_module .user ().isLoggedIn ) {
936
- const recordID = _module .currentRecord [' fairsharingRecord' ].id ;
936
+ // const recordID = _module.currentRecord['fairsharingRecord'].id;
937
+ _module .canClaim = false ;
938
+ /*
937
939
try {
938
940
const claim = await client.canClaim(recordID, _module.user().credentials.token);
939
941
if (claim.error) {
@@ -962,10 +964,11 @@ export default {
962
964
_module.noClaimRegistered = true;
963
965
}
964
966
}
965
- catch (e) {
966
- /* istanbul ignore next */
967
- _module .canClaim = false ;
968
- }
967
+ */
968
+ // catch (e) {
969
+ // /* istanbul ignore next */
970
+ // _module.canClaim = false;
971
+ // }
969
972
}
970
973
},
971
974
/**
You can’t perform that action at this time.
0 commit comments