relaton / relaton-iso

RelatonIso: ISO Standards metadata using the BibliographicItem model
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Fuzzy doc identifier search should also print out a warning on the finally retrieved document #76

Closed ronaldtse closed 4 years ago

ronaldtse commented 4 years ago

ISO 13584-35 is actually named ISO/TS 13584-35, so Relaton goes on a fuzzy search.

Eventually it is able to retrieve ISO/TS 13584-35.

However, in the logs, it doesn't tell me that it successfully retrieves ISO/TS 13584-35.

Logs now:

fetching ISO 13584-35...
Attempting NP stage retrieval
Attempting WD stage retrieval
Attempting CD stage retrieval
Attempting DIS stage retrieval
Attempting FDIS stage retrieval
Attempting PRF stage retrieval
Attempting IS stage retrieval
Attempting AWI stage retrieval

ISO Advanced Search immediately shows me that there is ISO/TC 13584-35.

Screen Shot 2019-11-10 at 2 37 22 PM

Since we are unsure if there are other in-development versions, Advanced Search shows that there aren't any.

Screen Shot 2019-11-10 at 2 47 55 PM

After this stage it means we don't need to check stages anymore, right?

How about we show this?

[relaton-iso] ("ISO 13584-35") fetching...
[relaton-iso] ("ISO 13584-35") found ISO/TS 13584-35
[relaton-iso] ("ISO 13584-35") checking for developmental versions of ISO 13584-35...
[relaton-iso] ("ISO 13584-35") none found. result is "ISO/TS 13584-35"
andrew2net commented 4 years ago

@ronaldtse at this time relaton-iso gets published and in-development documents in one request, and then search the most appropriating document in result:

image

Do we really need to make 2 requests instead of one?