Some aspects of nuclear electro- and photoproduction at medium energies