obsolete DTL chip substitution
The two gates on the left form a simple S-R latch. The other five gates function as a multiplexer that cross-connects the set and reset signals to the latch in either configuration.

Rather than following the topology of the original circuit exactly, you could reimplement the functionality directly in CMOS using a FF and a mux. This would avoid the need to deal with the wired-OR connections..