ropensci / popler

The R package to browse and query the popler database
https://docs.ropensci.org/popler
MIT License
8 stars 7 forks source link

metadata_url() #30

Closed AldoCompagnoni closed 6 years ago

AldoCompagnoni commented 7 years ago
  1. Get function metadata_url to work with browse objects
  2. Test all metalinks in browse's main table. Several links from Bonanza, for example, are broken.
AldoCompagnoni commented 7 years ago

Update on 1) Using metadata_url on browse might open up to hundreds of tabs. Hence, the function should ask the user whether she/he wants to go ahead and open all those links, or whether he/she wants to refine the search.

AldoCompagnoni commented 7 years ago
  1. metadata_url accepts popler objects produced by either browse or get_data. Previous metadata_url version used URL links found in the object summary_table. Hence, I test whether the object was produced by get_data or browse, and I refer to summary_table to obtain the URL links.
  2. metadata_url now prompts the reader to specify he/she wants to continue whenever the number of URL to open are more than 5. The prompt also points out how many URL links will be opened in case the user hits "yes".

I suggest to close this issue.