I know that I should say:
Ich wohne in der Stadt.
and
Ich fahre in die Stadt.
Because direction is involved in the second verb.
However, should I say:
Muss die Rechtstruktur im Katalog eingebaut werden?
or
Muss die Rechtstruktur in den Katalog eingebaut werden?
Since it is not clear to me whether direction is involved in building a set of rights permissions into a catalog or not.