Write a script to make origins as links refering to corresponding resource and chapter. This may later be extended to also refer to the exact bookmark if we separate bookmarks into individual pages.