nie-ine / inseri

inseri serves as an online collaborative work and publish environment.
https://nie-ine.github.io/inseri
Other
13 stars 4 forks source link

gnd app #388

Closed janCstoffregen closed 4 years ago

janCstoffregen commented 4 years ago

get gnd info for a person

musicEnfanthen commented 4 years ago

see https://www.npmjs.com/package/lobid-client

janCstoffregen commented 4 years ago

@musicEnfanthen , can you exchange the localStorage.setItem() in your application by the following please:

window.parent.window.postMessage({'for':'user','gnd':'123234X'}, 'http://localhost:4200');

... of course replace the 123234X with the regarding variable...

Thank you!

janCstoffregen commented 4 years ago

... http://localhost:4200 bitte so lassen, das zeigt an, unter welcher Adresse inseri läuft, und ich möchte es ja erst einmal lokal weiterentwickeln...

musicEnfanthen commented 4 years ago

Ok, can try. Are you sure about the duplicated window call. Isn't window.parent.postMessage sufficient?

janCstoffregen commented 4 years ago

please try it like this, it worked when I tried it

musicEnfanthen commented 4 years ago

Done via webern-unibas-ch/awg-app@80648c5204a7bc0a46455491bff5de23497978f1 and running now live with Version 0.7.1

janCstoffregen commented 4 years ago

Hi, it works, can you give me another Person with another GND? I already implemented the app and have to test it a little

janCstoffregen commented 4 years ago
Screenshot 2020-02-14 at 14 41 25
janCstoffregen commented 4 years ago

and can you add a second line to the already existing one, right below:

window.parent.window.postMessage({'for':'user','gnd':'123234X'}, 'http://test-nieos.nie-ine.ch/');
janCstoffregen commented 4 years ago

and please user instead of

{'for':'user','gnd':'123234X'}

the following

{'param':'gnd','value':'<vairableThatContainsTheValue>'}
janCstoffregen commented 4 years ago

ok, hab jetzt 2 personen mit einer gnd gefunden, Jokl und Apostel

janCstoffregen commented 4 years ago

I'll close this now, it'll work next week as discussed