Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot link external suggestion #441

Open
kleinann opened this issue Dec 11, 2018 · 1 comment
Open

Cannot link external suggestion #441

kleinann opened this issue Dec 11, 2018 · 1 comment

Comments

@kleinann
Copy link

After clicking on "migrate and link", the button turns half-transparent and linking is not possible. After migrating Journal Article and Journal issue, it can't be found in the database.

{"msg":"REFERENCE TARGET SELECTED","title":"A recent greening of the Sahel—trends, patterns and potential causes","entry_id":"5bf6b908c707541a929bd578","current_selected_ids":[{"scheme":"DOI","literalValue":"10.1016/j.jaridenv.2005.03.008","_id":"5c0fd65115d7c70ac835f100"},{"scheme":"URL_CROSSREF","literalValue":"http://dx.doi.org/10.1016/j.jaridenv.2005.03.008","_id":"5c0fd65115d7c70ac835f0ff"}]}
Object { _headers: Map(1), _normalizedNames: Map(1) }

Object { method: null, headers: {…}, body: null, url: null, params: undefined, withCredentials: null, responseType: null }
main.11df37010d26c26da090.js:1:1004106
Response
Object { _body: "{"message":"Logging suceeded."}", status: 200, ok: true, statusText: "OK", headers: {…}, type: 2, url: "https://locdb.bib.uni-mannheim.de/locdb/log" }
main.11df37010d26c26da090.js:1:1004245
Success:
Object { message: "Logging suceeded." }
main.11df37010d26c26da090.js:1:1003871
Object { msg: "REFERENCE TARGET SELECTED", title: "A recent greening of the Sahel—trends, patterns and potential causes", entry_id: "5bf6b908c707541a929bd578", current_selected_ids: (2) […] }
main.11df37010d26c26da090.js:1:1003799
Uploading Log Object main.11df37010d26c26da090.js:1:1003971
{"msg":"REFERENCE TARGET SELECTED","title":"A recent greening of the Sahel—trends, patterns and potential causes","entry_id":"5bf6b908c707541a929bd578","current_selected_ids":[{"scheme":"DOI","literalValue":"10.1016/j.jaridenv.2005.03.008","_id":"5c0fd65115d7c70ac835f100"},{"scheme":"URL_CROSSREF","literalValue":"http://dx.doi.org/10.1016/j.jaridenv.2005.03.008","_id":"5c0fd65115d7c70ac835f0ff"}]}
Object { _headers: Map(1), _normalizedNames: Map(1) }

Object { method: null, headers: {…}, body: null, url: null, params: undefined, withCredentials: null, responseType: null }
main.11df37010d26c26da090.js:1:1004106
[debug] reconstructed agentRole:
Object { identifiers: [], roleType: "PUBLISHER", heldBy: {…} }
main.11df37010d26c26da090.js:1:1294853
Date setter called with
Date 2005-01-01T00:00:00.000Z
main.11df37010d26c26da090.js:1:941564
Setting publicationDate 2005-01-01 main.11df37010d26c26da090.js:1:941662
[BRF:prepareSaveResource] foreign properties
Object { journal_title: "Journal of Arid Environments", journal_subtitle: "", journalVolume_number: "63" }
main.11df37010d26c26da090.js:1:1295927
[BRF:prepareSaveResource] Setting journal_title to Journal of Arid Environments main.11df37010d26c26da090.js:1:1296052
[BRF:prepareSaveResource] Setting journal_subtitle to main.11df37010d26c26da090.js:1:1296052
[BRF:prepareSaveResource] Setting journalVolume_number to 63 main.11df37010d26c26da090.js:1:1296052
[BRF] Submitting resource:
Object { viewport_: "JOURNAL_ISSUE", prefix: "journalIssue", data: {…}, children: undefined }
main.11df37010d26c26da090.js:1:1293671
Response
Object { body: "{"message":"Logging suceeded."}", status: 200, ok: true, statusText: "OK", headers: {…}, type: 2, url: "https://locdb.bib.uni-mannheim.de/locdb/log" }
main.11df37010d26c26da090.js:1:1004245
Success:
Object { message: "Logging suceeded." }
main.11df37010d26c26da090.js:1:1003871
On Alternate Change:
Object { viewport
: "JOURNAL_ISSUE", prefix: "journalIssue", data: {…}, children: undefined }
main.11df37010d26c26da090.js:1:1341749
[RCC] Item at position 1 of tuple haschanged.
Object { viewport_: "JOURNAL_ISSUE", prefix: "journalIssue", data: {…}, children: undefined }
main.11df37010d26c26da090.js:1:1354535
[BRF] ngOnChanges triggered
Object { viewport_: "JOURNAL_ISSUE", prefix: "journalIssue", data: {…}, children: undefined }
main.11df37010d26c26da090.js:1:1293021
[debug] set contributors
Array [ {…} ]
main.11df37010d26c26da090.js:1:1290678
[debug] set resourceForm
Object { validator: null, asyncValidator: null, _onCollectionChange: _updateRegistrations()
, pristine: true, touched: false, _onDisabledChange: [], controls: {…}, valueChanges: {…}, statusChanges: {…}, status: "VALID", … }
main.11df37010d26c26da090.js:1:1291093
Object { msg: "REFERENCE TARGET SELECTED", title: "A recent greening of the Sahel—trends, patterns and potential causes", entry_id: "5bf6b908c707541a929bd578", current_selected_ids: (2) […] }
main.11df37010d26c26da090.js:1:1003799
Uploading Log Object main.11df37010d26c26da090.js:1:1003971
{"msg":"REFERENCE TARGET SELECTED","title":"A recent greening of the Sahel—trends, patterns and potential causes","entry_id":"5bf6b908c707541a929bd578","current_selected_ids":[{"scheme":"DOI","literalValue":"10.1016/j.jaridenv.2005.03.008","_id":"5c0fd65115d7c70ac835f100"},{"scheme":"URL_CROSSREF","literalValue":"http://dx.doi.org/10.1016/j.jaridenv.2005.03.008","_id":"5c0fd65115d7c70ac835f0ff"}]}
Object { _headers: Map(1), _normalizedNames: Map(1) }

Object { method: null, headers: {…}, body: null, url: null, params: undefined, withCredentials: null, responseType: null }
main.11df37010d26c26da090.js:1:1004106
Response
Object { body: "{"message":"Logging suceeded."}", status: 200, ok: true, statusText: "OK", headers: {…}, type: 2, url: "https://locdb.bib.uni-mannheim.de/locdb/log" }
main.11df37010d26c26da090.js:1:1004245
Success:
Object { message: "Logging suceeded." }
main.11df37010d26c26da090.js:1:1003871
On Resource Change:
Object { viewport
: "JOURNAL_ARTICLE", prefix: "journalArticle", data: {…}, children: undefined }
main.11df37010d26c26da090.js:1:1341625
[RCC] Item at position 0 of tuple haschanged.
Object { viewport_: "JOURNAL_ARTICLE", prefix: "journalArticle", data: {…}, children: undefined }
main.11df37010d26c26da090.js:1:1354535
Object { msg: "REFERENCE TARGET SELECTED", title: "A recent greening of the Sahel—trends, patterns and potential causes", entry_id: "5bf6b908c707541a929bd578", current_selected_ids: (2) […] }
main.11df37010d26c26da090.js:1:1003799
Uploading Log Object main.11df37010d26c26da090.js:1:1003971
{"msg":"REFERENCE TARGET SELECTED","title":"A recent greening of the Sahel—trends, patterns and potential causes","entry_id":"5bf6b908c707541a929bd578","current_selected_ids":[{"scheme":"DOI","literalValue":"10.1016/j.jaridenv.2005.03.008","_id":"5c0fd65115d7c70ac835f100"},{"scheme":"URL_CROSSREF","literalValue":"http://dx.doi.org/10.1016/j.jaridenv.2005.03.008","_id":"5c0fd65115d7c70ac835f0ff"}]}
Object { _headers: Map(1), _normalizedNames: Map(1) }

Object { method: null, headers: {…}, body: null, url: null, params: undefined, withCredentials: null, responseType: null }
main.11df37010d26c26da090.js:1:1004106
Response
Object { _body: "{"message":"Logging suceeded."}", status: 200, ok: true, statusText: "OK", headers: {…}, type: 2, url: "https://locdb.bib.uni-mannheim.de/locdb/log" }
main.11df37010d26c26da090.js:1:1004245
Success:
Object { message: "Logging suceeded." }

@lgalke
Copy link
Member

lgalke commented Jan 15, 2019

The problem is that the resource already exists and the back-end rejects creating the resource. @anlausch How do we deal with this? You could return the _id of the existing resource, or do this resolution step already before providing the suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants