{"action":"created","issue":{"url":"https://api.github.com/repos/american-art/aaa/issues/13","repository_url":"https://api.github.com/repos/american-art/aaa","labels_url":"https://api.github.com/repos/american-art/aaa/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/american-art/aaa/issues/13/comments","events_url":"https://api.github.com/repos/american-art/aaa/issues/13/events","html_url":"https://github.com/american-art/aaa/issues/13","id":229591869,"number":13,"title":"map DigitalResources","user":{"login":"VladimirAlexiev","id":536250,"avatar_url":"https://avatars0.githubusercontent.com/u/536250?v=3","gravatar_id":"","url":"https://api.github.com/users/VladimirAlexiev","html_url":"https://github.com/VladimirAlexiev","followers_url":"https://api.github.com/users/VladimirAlexiev/followers","following_url":"https://api.github.com/users/VladimirAlexiev/following{/other_user}","gists_url":"https://api.github.com/users/VladimirAlexiev/gists{/gist_id}","starred_url":"https://api.github.com/users/VladimirAlexiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladimirAlexiev/subscriptions","organizations_url":"https://api.github.com/users/VladimirAlexiev/orgs","repos_url":"https://api.github.com/users/VladimirAlexiev/repos","events_url":"https://api.github.com/users/VladimirAlexiev/events{/privacy}","received_events_url":"https://api.github.com/users/VladimirAlexiev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-05-18T08:26:10Z","updated_at":"2017-05-22T13:36:41Z","closed_at":null,"body":"@tobiashreiter: \"The Item_DigitalResources file was updated on May 15th to use our publicly facing URL\".\r\nThat file has very rich info and I think should be mapped. Columns:\r\n- DIGITALRESOURCEID: image ID\r\n- FKITEMID: object ID\r\n- PARTTYPE: page, cover, diary entry...\r\n- PARTNUM: eg page number\r\n- FULLSIZE: image URL (checked several, work ok). Only 1 audio file\r\n- ORDER: order in which the image should be presented\r\n\r\nAnalysis of PARTTYPE:\r\n```\r\n>csvcut -t -c PARTTYPE Item_DigitalResources.txt|sort|uniq -c\r\n      1 PARTTYPE\r\n    523 cover\r\n    341 cover back\r\n     89 cover verso\r\n     10 drawing\r\n   5723 entry  <<< diary entry\r\n    137 envelope\r\n     89 envelope verso\r\n     71 front\r\n    144 inside\r\n  11785 page\r\n  11214 pages  <<< same as \"page\"\r\n     41 postcard back\r\n    659 sketch\r\n   1462 sketchbook page\r\n     10 title page\r\n      1 track  <<< only one is an audio file not image\r\n   5601 verso\r\n```\r\n\r\nComparing PARTNUM vs ORDER (ignoring PARTNUM=0):\r\n```\r\n>perl -ne \"@a=split/\\t/; print if $a[3] && $a[3]!=$a[5]\" Item_DigitalResources.txt > Item_DigitalResources-mismatch.txt\r\n\r\n> wc -l *.txt\r\n   1271 Item_DigitalResources-mismatch.txt\r\n  37901 Item_DigitalResources.txt\r\n```\r\nSo they are different in 3% of all rows.\r\n\r\nAnalysis of PARTTYPE for those that have PARTNUM:\r\n```\r\n>perl -ne \"@a=split/\\t/; print qq{$a[2]\\n} if $a[3]\" Item_DigitalResources.txt|sort|uniq -c\r\n      1 PARTTYPE\r\n    153 cover\r\n    307 cover back\r\n     70 cover verso\r\n      6 entry\r\n     70 envelope\r\n     71 envelope verso\r\n     37 front\r\n    120 inside\r\n  11658 page\r\n  11208 pages\r\n     26 postcard back\r\n    653 sketch\r\n   1454 sketchbook page\r\n      6 title page\r\n      1 track\r\n   3238 verso\r\n```\r\nI think we should map both PARTNUM and ORDER:\r\n- PARTNUM shows the original data (eg page number)\r\n- ORDER is important for parts that don't have numbers (eg \"cover\" should be shown before \"cover back\")\r\n\r\nEvery image is used only once:\r\n```\r\n>csvcut -t -c FULLSIZE Item_DigitalResources.txt|sort|uniq -d\r\n```\r\nSo we can use FULLSIZE rather than DIGITALRESOURCEID for the URL."},"comment":{"url":"https://api.github.com/repos/american-art/aaa/issues/comments/303102069","html_url":"https://github.com/american-art/aaa/issues/13#issuecomment-303102069","issue_url":"https://api.github.com/repos/american-art/aaa/issues/13","id":303102069,"user":{"login":"tobiashreiter","id":24298344,"avatar_url":"https://avatars2.githubusercontent.com/u/24298344?v=3","gravatar_id":"","url":"https://api.github.com/users/tobiashreiter","html_url":"https://github.com/tobiashreiter","followers_url":"https://api.github.com/users/tobiashreiter/followers","following_url":"https://api.github.com/users/tobiashreiter/following{/other_user}","gists_url":"https://api.github.com/users/tobiashreiter/gists{/gist_id}","starred_url":"https://api.github.com/users/tobiashreiter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobiashreiter/subscriptions","organizations_url":"https://api.github.com/users/tobiashreiter/orgs","repos_url":"https://api.github.com/users/tobiashreiter/repos","events_url":"https://api.github.com/users/tobiashreiter/events{/privacy}","received_events_url":"https://api.github.com/users/tobiashreiter/received_events","type":"User","site_admin":false},"created_at":"2017-05-22T13:36:41Z","updated_at":"2017-05-22T13:36:41Z","body":"If so, can you please use has_representation and assign a \"classified by\" property of AAT:300404670 (preferred terms), so it's clear that this representative image is the manually curated representation for the item?"}}
{"actor":{"display_login":"tobiashreiter"}}