docs: def patch(patch, ids):
      """Patch existing bibliographic record."""
      records_deprecation_warning()
  
      from .api import Record
  
      patch_content = patch.read()
  
      if ids:
          for id_ in ids:
              rec = Record.get_record(id_).patch(patch_content).commit()
              current_app.logger.info("Created new revision {0}".format(
                  rec.revision_id))
              click.echo(rec.id)
          db.session.commit()