Great! Thank you. I will explore more.Hello, that chord is at bar 13 and 14 then in turns into minor. When I learn a song I learn ALL the chords. I know that E-7/A7/Dmaj are all in the key of D, but if I want to create some tension/release at that point I can alter the A7 with superlocrian or diminished scale (or other tools like substitution, upper structure ecc.) and then resolve it to D. So, playing the major scale is possible, but does not sound "jazz". Particularly in bebop and hard bop idioms altering the dominant (V) and then resolving on the tonic (I) is crucial and it is a charachteristic of that kind of music language. Of course I don't want to say that you must alter every V7, but it is important to know how to deal with it. If you look at my youtube channel there is a video about working on chords on a standard, I called it "chord workout". I don't want to link it here because I didn't play "a weaver of dreams"" on that video...
Also, I think we are talking about the same bar, I forgot to remove the intro.