An inmate who has been removed from a State correctional institution by a government official authorized by the court directing the presence of the inmate for a judicial proceeding shall be detained in the county prison if the inmate has been temporarily transferred more than twice in the preceding 6 months or the judicial proceeding is scheduled to last more than 1 week.
37 Pa. Code § 96a.3