Fetch Fennica Collection Records by Year Ranges from Finna API (Including NA Dates)
Source:R/full_fennica_records.R
full_fennica_records.Rd
This function fetches records from the Finna API in chunks divided by year ranges, handling missing date values for the Fennica collection.
Arguments
- base_query
The base query string, defaults to "*".
- base_filters
A character vector of filters for the search, e.g.,
c('collection:"FEN"')
.- year_ranges
A list of numeric vectors specifying year ranges, e.g.,
list(c(2000, 2005), c(2006, 2010))
.- include_na
Whether to include records with missing
main_date_str
. Default isTRUE
.- limit_per_query
Maximum number of records to fetch per query. Default is 100000.
- total_limit
Maximum number of records to fetch overall. Default is
Inf
.- delay_after_query
Delay in seconds between queries. Default is 5.