year <- if (is.null(meta$Date)) format(Sys.Date(), "%Y") else sub("-.*", "", meta$Date)

bibentry(
  bibtype = "Manual",
  title = "{ausPH}: Retrieve Data from the Parliamentary Handbook of the Commonwealth of Australia",
  author = person("Pat", "Leslie", comment = c(ORCID = "0000-0002-9218-8981")),
  year = year,
  note = paste("R package version", meta$Version),
  url = "https://github.com/palesl/ausPH",
  doi = "10.5281/zenodo.24095468",
  textVersion = paste0(
    "Leslie, P. (", year, "). ",
    "ausPH: Retrieve Data from the Parliamentary Handbook of the Commonwealth of Australia. ",
    "R package version ", meta$Version, ". https://doi.org/10.5281/zenodo.24095468"
  )
)
