This feature has been developed on top of Koha-Finland fork, find development status and code here https://github.com/KohaSuomi/Koha/pull/159. The work on Finnish fork was sponsored by the National Library of Finland. Feel free to rebase it on top of master if you need it. Finnish fork is based on 17.05.