"id","hoardName","coinCount","alternativeName","address","city","county","region","ancientPlace","latitude","longitude","altitude","summary",{% if is_authenticated %}"internalNote",{% endif %}"findSpotComment","discoveryDay1","discoveryMonth1","discoveryYear1","discoveryDay2","discoveryMonth2","discoveryYear2","openingYear1","openingYear2","terminalYear1","terminalYear2","reference_string","references","permalinkOnlineDatabases","coinLevelData","discoveryDepth","disposition","finder","discoveryComment","archaeologyStartYear","archaeologyEndYear","archaeologyNaturalFeatures","archaeologySiteComment","archaeologyContextDate1","archaeologyContextDate2","archaeologyAssociatedFeatures","numismaticRatingComment","validatedByUser","hoardType","country","province","findSpotLocationDetail","closingReign1","closingReign2","discoveryMethod","discoveryLandUse","archaeologyRecoveryMethod","archaeologySiteClass","archaeologyContext","archaeologyPeriod","archaeologyDepositionalContext","archaeologyEndPeriod","findSpotRating","contextualRating","numismaticRating","containers","objects","credit"
{% for hoard in data %}
"{{ hoard.id }}","{{ hoard.findSpotName | replace({"\r\n":"", "'":"’"}) }}","{% if hoard.coinCount %}{{hoard.coinCount[0].coinCount}}{% endif %}","{{ hoard.findSpotOtherNames | replace({"\r\n":"", "'":"’"}) }}","{% if hoard.can_see_location and not hoard.hideCity %}{{ hoard.address | replace({"\r\n":"", "'":"’"}) }}{% endif %}","{% if hoard.can_see_location and not hoard.hideCity %}{{ hoard.city | replace({"\r\n":"", "'":"’"}) }}{% endif %}","{% if not hoard.hideCounty %}{{ hoard.county | replace({"\r\n":"", "'":"’"}) }}{% endif %}","{{ hoard.region | replace({"\r\n":"", "'":"’"}) }}","{% if not hoard.hideLocation %}{% if hoard.ancientPlace %}{{ hoard.ancientPlace.ancientPlace }}{% endif %}{% endif %}","{% if not hoard.hideLocation %}{{ hoard.findSpotLatitude }}{% endif %}","{% if not hoard.hideLocation %}{{ hoard.findSpotLongitude }}{% endif %}","{% if not hoard.hideLocation %}{{ hoard.findSpotAltitude }}{% endif %}","{{ hoard.comment | replace({"\r\n":"", "'":"’"}) }}",{% if is_authenticated %}"{{ hoard.internalNote }}",{% endif %}"{% if not hoard.hideLocation %}{{ hoard.findSpotComment | replace({"\r\n":"", "'":"’"}) }}{% endif %}","{{ hoard.discoveryDay1 }}","{{ hoard.discoveryMonth1 }}","{{ hoard.discoveryYear1 }}","{{ hoard.discoveryDay2 }}","{{ hoard.discoveryMonth2 }}","{{ hoard.discoveryYear2 }}","{{ hoard.openingYear1 }}","{{ hoard.openingYear2 }}","{{ hoard.terminalYear1 }}","{{ hoard.terminalYear2 }}","{{ hoard.reference_string | replace({"\r\n":"", "'":"’"}) }}","{% for hr in hoard.hoardReferences %}{% if hr.reference %}{% if hr.reference.abbreviation %}{{hr.reference.abbreviation}}{% else %}{{hr.reference.authors}} - {{hr.reference.year}} - {% if hr.reference.title %}{{hr.reference.title}}{% else %}Untitled{% endif %}{% endif %}{% endif %}{% if hr.reference_str %}: {{hr.reference_str}}{% endif %}{% if not loop.last %}; {% endif %}{% endfor %}","{% for hr in hoard.hoardOnlineDatabases %}{% if hr.reference %}{% if hr.reference.abbreviation %}{{hr.reference.abbreviation}}{% else %}{{hr.reference.authors}} - {{hr.reference.year}} - {% if hr.reference.title %}{{hr.reference.title}}{% else %}Untitled{% endif %}{% endif %}{% endif %}{% if hr.reference_str %}: {{hr.reference_str}}{% endif %}{% if not loop.last %}; {% endif %}{% endfor %}","{% if hoard.coinLevelData %}{{ hoard.coinLevelData.coinLevelData }}{% endif %}","{{ hoard.discoveryDepth }}","{{ hoard.owner | replace({"\r\n":"", "'":"’"}) }}","{% if not hoard.hideFinder %}{{ hoard.finder | replace({"\r\n":"", "'":"’"}) }}{% endif %}","{{ hoard.discoveryComment | replace({"\r\n":"", "'":"’"})}}","{{ hoard.archaeologyStartYear }}","{{ hoard.archaeologyEndYear }}","{{ hoard.archaeologyNaturalFeatures | replace({"\r\n":"", "'":"’"}) }}","{{ hoard.archaeologySiteComment | replace({"\r\n":"", "'":"’"}) }}","{{ hoard.archaeologyContextDate1 }}","{{ hoard.archaeologyContextDate2 }}","{{ hoard.archaeologyAssociatedFeatures | replace({"\r\n":"", "'":"’"}) }}","{{ hoard.ratingComment | replace({"\r\n":"", "'":"’"}) }}","{{ hoard.validatedByUser }}","{% if hoard.hoardType %}{{ hoard.hoardType.hoardType }}{% endif %}","{% if hoard.countries %}{% for country in hoard.countries %}{{ country.country }}{% if not loop.last %}; {% endif %}{% endfor %}{% endif %}","{% if hoard.province %}{{ hoard.province.province }}{% endif %}","{% if not hoard.hideLocation %}{% if hoard.findSpotLocationDetail %}{{ hoard.findSpotLocationDetail.findSpotLocationDetail }}{% endif %}{% endif %}","{% if hoard.closingReign1 %}{{ hoard.closingReign1.reign }}{% endif %}","{% if hoard.closingReign2 %}{{ hoard.closingReign2.reign }}{% endif %}","{% if hoard.discoveryMethod %}{{ hoard.discoveryMethod.discoveryMethod}}{% endif %}","{% if hoard.discoveryLandUse %}{{ hoard.discoveryLandUse.discoveryLandUse }}{% endif %}","{% if hoard.archaeologyRecoveryMethod %}{{ hoard.archaeologyRecoveryMethod.archaeologyRecoveryMethod }}{% endif %}","{% if hoard.archaeologySiteContext %}{{ hoard.archaeologySiteContext.archaeologySiteContext }}{% endif %}","{% if hoard.archaeologySiteContextDetails %}{% for detail in hoard.archaeologySiteContextDetails %}{{ detail.archaeologySiteContextDetail }}{% if not loop.last %}; {% endif %}{% endfor %}{% endif %}","{% if hoard.archaeologyPeriod %}{{ hoard.archaeologyPeriod.archaeologyPeriod }}{% endif %}","{% if hoard.archaeologyContextNatures %}{% for nature in hoard.archaeologyContextNatures %}{{ nature.title }}{% if not loop.last %}; {% endif %}{% endfor %}{% endif %}","{% if hoard.archaeologyEndPeriod %}{{ hoard.archaeologyEndPeriod.archaeologyPeriod }}{% endif %}","{% if hoard.findSpotRating %}{{ hoard.findSpotRating.rating }}{% endif %}","{% if hoard.contextualRating %}{{ hoard.contextualRating.rating}}{% endif %}","{% if hoard.rating %}{{ hoard.rating.rating }}{% endif %}","{% for c in hoard.containers %}{{ c.container }}{% if not loop.last %}; {% endif %}{% endfor %}","{% for c in hoard.objects %}{{ c.object }}{% if not loop.last %}; {% endif %}{% endfor %}","{{ hoard.credit | replace({"\r\n":"", "'":"’"}) }}"
{% endfor %}