The people chose to serve the Lord, a decision which Joshua recorded in the Book of the Law of God.
The decision of the people to serve the Lord is presented as a significant event, recorded in the Book of God's Law by Joshua.