anchor.diff:        <participating-org <% if d.iati_organizationid.present? %> ref="<%= d.iati_organizationid %>" <% end %> role="1"   <% if d.organization_type_code.present? %> type="<%= d.organization_type_code %>" <% end %> >
         <narrative><%= d.name %> </narrative>
       </participating-org>
  +    <% end %>
  +  <% end %>
  +  <% if project.geographical_scope && (project.geographical_scope == 'national' || project.geographical_scope == 'global') %>
  +    <% if project.geographical_scope == 'national' %>
  +      <activity-scope code="4" />
  +    <% else %>
  +      <activity-scope code="1" />
       <% end %>
     <% end %>
     <other-identifier ref="<%= project.intervention_id %>" type="A1">
  
positive.code:       <category code="A12" />
      </document-link>
    <% end %>
  </iati-activity>
negative.code:    <narrative><%= strip_tags(project.description) %></narrative>
    </description>
    <% if project.target %>
      <description type="3">
       <narrative><%= strip_tags(project.target) %></narrative>
      </description>
    <% end %>
    <% if project.activities %>
      <description type="4">
       <narrative><%= strip_tags(project.activities) %></narrative>
      </description>
    <% end %>
    <participating-org <% if project.primary_organization.iati_organizationid.present? %> ref="<%= project.primary_organization.try(:iati_organizationid) %>" <% end %> role="4" <% if project.primary_organization.organization_type_code.present? %> type="<%= project.primary_organization.try(:organization_type_code) %>" <% end %> >
      <narrative><%= project.primary_organization.try(:name) %> </narrative>
  