Beit-Hatfutsot / dbs-back

The MoJP RESTfull API server
GNU Affero General Public License v3.0
1 stars 4 forks source link

investigate how to match bagnowka image to dbs mongo photoUnit and/or photo documents #131

Closed OriHoch closed 7 years ago

OriHoch commented 7 years ago

Each bagnowka image has 6 attributes (photo_name, url, photographer etc..) - see below for details

We would like to add those images as photoUnits and/or photo documents to our mongo / elasticsearch database.

For this issue we need to research how to match the bagnowka images json to our mongo / elasticsearch format.

example bagnowka images json

[
...
  {
    "photo_name": "Children of polish workers and kids from orphanage",
    "url": "media/1/2600/24914aa 006.jpg",
    "photographer": "Tomek Wisniewski\n",
    "description_today": "Russia",
    "date": "1905",
    "gallery_name": "Petersburg Sankt"
  }
...
  {
    "photo_name": null,
    "url": "media/1/3819/42993poryck 101.jpg",
    "photographer": "\n",
    "description_today": "Ukraine, in 1918 - 1939 Poland. Pre 1914 Russia, pre 1795 Poland",
    "date": "",
    "gallery_name": "Ukraina Poryck Poryck & France - 280 ph. 1917"
  },
  {
    "photo_name": null,
    "url": "media/1/3819/42994poryck 102.jpg",
    "photographer": "\n",
    "description_today": "Ukraine, in 1918 - 1939 Poland. Pre 1914 Russia, pre 1795 Poland",
    "date": "",
    "gallery_name": "Ukraina Poryck Poryck & France - 280 ph. 1917"
  }
...
]
Libisch commented 7 years ago

Done. opening new issues for back and front for assigning AWS urls to images when "bagnowka": True