acdh-oeaw / apis-core

https://acdh-oeaw.github.io/apis-core/
MIT License
11 stars 3 forks source link

Strange first entry in relations list #184

Closed martinantonmueller closed 4 years ago

martinantonmueller commented 4 years ago

When I create a relation to a place already existing entries in the database are not listed as first results but only from 2 onwards. Result 1 can not be selected:

Bildschirmfoto 2020-01-29 um 15 49 24
sennierer commented 4 years ago

Yes, sorry. We should have communicated that change in behaviour:

We had problems with our reference resource indexes in stanbol not being complete and/or up-to-date. As a consequence we allow now to paste URLs from reference resources directly in the autocomplete fields. As they are not in the index we must allow to add new entries in the autocomplete. Therefore the first entry in the autocompletes is now whatever you entered in the search field. If you pasted e.g. an URL from GND the server will accept it and save the entity. If you enter the string "Berlin" it will tell you that "Berlin" is not an URL and that you either need to select an entry or use an URL. If you paste any URL e.g. http://test.at, the server will complain that test.at is not a configured URL.

This means that from now on you can either:

But you can not search for a string and select the first entry, as it is only your query string.

martinantonmueller commented 4 years ago

Ok! But wouldn't some kind of "starts-with(.,'https:') or sws:// make sense? so if I enter something that actually is an URI i can select it but not if it is not? or a simple: contains ://