Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

XML Export of related elements – nesting problem - SOLVED

Hi! I’ve come across a problem concerning the XML Export of related elements (entities, places, occurences).

For instance, I need to export related places with their geoname ID. It’s working using the attached mapping (see row 44-46). The output I get is:

  <abgebildete_orte>
    <abgebildeter_ort_name>Köln
        <abgebildeter_ort_geoname-id>2886242</abgebildeter_ort_geoname-id>
    </abgebildeter_ort_name>
    <abgebildeter_ort_name>Marburg
        <abgebildeter_ort_geoname-id>2873759</abgebildeter_ort_geoname-id>
    </abgebildeter_ort_name>
  </abgebildete_orte>

Now the place that will get our data needs the XML be formatted like this, with no nesting inside XML Tags (so,  <abgebildeter_ort_name> needs to be closed before <abgebildeter_ort_geoname-id> starts):

  <abgebildete_orte>
    <abgebildeter_ort_name>Köln</abgebildeter_ort_name>
      <abgebildeter_ort_geoname-id>2886242</abgebildeter_ort_geoname-id>
  </abgebildete_orte>
  <abgebildete_orte>
    <abgebildeter_ort_name>Marburg</abgebildeter_ort_name>
      <abgebildeter_ort_geoname-id>2873759</abgebildeter_ort_geoname-id>
  </abgebildete_orte>

Any help on how to archive this would be great! Thanks

Comments

  • manged to get it working – here is what I did for abgelbildete_orte for example (added a blank tag abgebildeter_ort)

    Mappingabgebildete_orteobjectabgebildete_orte{"omitIfEmpty": "ca_places.preferred_labels"}Abgebilete OrteWAHR
    Mappingabgebildeter_ortabgebildete_orteabgebildeter_ortca_places{"context": "ca_places", "restrictToRelationshipTypes": ["abgebildete_orte"]}Abgebilete OrtWAHR
    Mappingabgebildeter_ort_nameabgebildeter_ortabgebildeter_ort_nameca_places.preferred_labels{"restrictToRelationshipTypes": ["abgebildete_orte"]}Abgebilete Ort NameWAHR
    Mappingabgebildeter_ort_geoname-idabgebildeter_ortabgebildeter_ort_geoname-idca_places.georeference{"restrictToRelationshipTypes": ["abgebildete_orte"]}Abgebilete Ort GeoreferenceWAHR
Sign In or Register to comment.