The church managed to avoid being closed by the Austrian emperor Joseph II .
Part of the monastery was taken over for the city archive .
The church managed to avoid being closed by the Austrian emperor Joseph II , although part of the monastery was taken over for the city archive .