Q3 definitely looks like a LM317L. Pins 2,3,6 and 7 are all the output (shorted together). The circuit makes more sense if you show pins 2 and 3 connected to pins 5 and 6. Pins 5 and 8 are not connected, so this board just connects them to the output for convenience.
Q1 and Q2 are general purpose transistors like 2N2222. Q2 is limiting the output current (emitter on neg rail, base via resistor to neg output, collector connected to the LM317 adjust input. Basically when the current reaches a point when the voltage across r23/r25 reaches about 0.65V, Q2 starts to turn on pulling the sense input of the LM317 lower. The output diode is interesting. It does two things, It stops a voltage on the output terminals getting back into the supply, particularly is the supply is off. Maybe more importantly, it adds a diode drop between the regulator output and the output pins. When the circuit is in current limit, you get another diode drop across R23/R25 so that means if there is a dead short on the output, the voltage regulator output will be at about 1.3 V, which means it is still regulating. So the output current means the current limiting will still work with a short on the output. Without the diode, the current limiting would not work properly with a short.
The output diode does mean the regulation on the output is not great, so the designer was not bothered if the 24V output varied by a few hundred millivolts.
It is almost like a battery charger, but I would expect to see a different voltage. Perhaps a mains supply for equipment that normally runs of a 24V battery.
Q1 is connected with the emitter to the negative rail, and the collector to the relay coil. Once you have connected the LM317 output pins in your diagram
Overall, you have pretty much got the circuit correct.
Richard.