The measure will be compulsory for primary schools, with secondary institutions given greater flexibility