vortex lattice with dislocations generated by thermal fluctuations and
by disorder is studied. The dislocations are restricted to parallel e
dge dislocations which applies, e.g., to magnetic field parallel to th
e superconducting layers. We allow for two types of disorder: point di
sorder with Fourier component comparable to the flux periodicity, and
long wavelength disorder. It is known that point disorder leads to a 3
-dimensional (3D) Bragg glass phase with algebraic correlations and a
3D to 2D transition. By using replica symmetry breaking methods, we fi
nd a new relevant term in the free energy which allows the long wavele
ngth disorder to have significant effects on the phase diagram. First,
it produces a first order transition within the 3D glass phase and se
cond, in the absence of point disorder it allows for a glass phase wit
h long range order. Furthermore, we find that the long wavelength diso
rder leads by itself to a continous 3D to 2D transition.