Will defo be the thin blue wire on the back of the alternator this is the earth for the bulb and is common for it to break so it will need repairing, it is actually very important as it's part of the charging circuit that excites the field windings so at the moment it's not charging at all. Revving to around 4K will also start charging.
Martin