I'm seriously considering making a simplified set of these for bookshelf/bayonet storage.
I'd let mine lay flat open against the wall to display the bayonets and since they aren't high-security items I could use a simple door slide lock with a channel cut through the top of the shelf, attach it to a book and done. Slide book back to open, slide forward to re lock.
No pistons, no magnets, I'm thinking a lowes trip for:
Trim moulding
2 boards to length/width
Hinges
Sliding door locks