code: def downloadRecords(search_result, from_doc=1):
      
      downer = Downloader()
  
      if "set_number" not in search_result:
          return []
  
      # set numbers should be probably aligned to some length
      set_number = str(search_result["set_number"])
      if len(set_number) < 6:
          set_number = (6 - len(set_number)) * "0" + set_number
  
      # download all no_records
      records = []
      for cnt in range(search_result["no_records"]):
          doc_number = from_doc + cnt
  
          if cnt >= MAX_RECORDS or doc_number > search_result["no_records"]:
              break
  
          set_data = downer.download(
              ALEPH_URL + Template(RECORD_URL_TEMPLATE).substitute(
                  SET_NUM=set_number,
                  RECORD_NUM=doc_number,
              )
          )
  
          records.append(set_data)
  
      return records
docs: Download `MAX_RECORDS` documents from `search_result` starting from
      `from_doc`.
  
      Attr:
          search_result (dict): returned from :func:`searchInAleph`.
          from_doc (int, default 1): Start from document number `from_doc`.
  
      Returns:
          list: List of XML strings with documents in MARC OAI.