This is not your average Harlequin romance.

A New Jersey middle-school librarian is accused of having a sexual relationship with a 14-year-old student — and will head to trial for the alleged misconduct during class hours.

Kimberly Pinkham, 38, appeared Thursday morning in Gloucester County court where she rejected a plea deal, NJ.com reported.

Pinkham, who worked in the Kingsway Regional School District for the last six years, was charged in May with official misconduct and endangering the welfare of a child.

Prosecutors say Pinkham used her position to forge an inappropriate relationship in which “she engaged in inappropriate sexual conduct with the student both during school hours and after.”

She rejected a plea deal that would have barred her from contacting the student and required her to submit to a mental-health evaluation in exchange for an unspecified sentence, according to NJ.com.

A grand jury in Gloucester County will consider an indictment against her.