An appeal from an order of the probate court granting a petition seeking to commit a respondent to the custody of the department or designated mental health facility as the court may order lies to the circuit court for trial de novo unless the probate judge who granted the petition was learned in the law, in which case the appeal lies to the Alabama Court of Civil Appeals on the record. Notice of appeal shall be given in writing to the probate judge within five days after the respondent has received actual notice of the granting of the petition and shall be accompanied by security for costs, to be approved by the probate judge, unless the probate judge finds that the respondent is indigent, in which case no security for costs shall be required. Upon the filing of a notice of appeal, the probate judge shall determine and enter an order setting forth the limitations to be placed upon the liberty of the respondent pending the appeal. Upon the filing of a notice of appeal, the probate judge shall certify the record to the clerk of the reviewing court. The petition shall be set for hearing by the reviewing court within 60 days of the date the notice of appeal is filed in the probate court, and such hearing shall not be continued except upon motion in writing by the respondent for good cause. The costs of the proceedings in the reviewing court shall be taxed in the same manner as in the probate court. All requirements relative to hearings in probate court shall apply to appeals heard in the circuit court.