{"action":"opened","issue":{"url":"https://api.github.com/repos/eXistSolutions/hsg-shell/issues/153","repository_url":"https://api.github.com/repos/eXistSolutions/hsg-shell","labels_url":"https://api.github.com/repos/eXistSolutions/hsg-shell/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/eXistSolutions/hsg-shell/issues/153/comments","events_url":"https://api.github.com/repos/eXistSolutions/hsg-shell/issues/153/events","html_url":"https://github.com/eXistSolutions/hsg-shell/issues/153","id":141317722,"number":153,"title":"Create unified breadcrumb module","user":{"login":"joewiz","id":59118,"avatar_url":"https://avatars.githubusercontent.com/u/59118?v=3","gravatar_id":"","url":"https://api.github.com/users/joewiz","html_url":"https://github.com/joewiz","followers_url":"https://api.github.com/users/joewiz/followers","following_url":"https://api.github.com/users/joewiz/following{/other_user}","gists_url":"https://api.github.com/users/joewiz/gists{/gist_id}","starred_url":"https://api.github.com/users/joewiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joewiz/subscriptions","organizations_url":"https://api.github.com/users/joewiz/orgs","repos_url":"https://api.github.com/users/joewiz/repos","events_url":"https://api.github.com/users/joewiz/events{/privacy}","received_events_url":"https://api.github.com/users/joewiz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eXistSolutions/hsg-shell/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/eXistSolutions/hsg-shell/labels/xquery","name":"xquery","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/eXistSolutions/hsg-shell/milestones/3","html_url":"https://github.com/eXistSolutions/hsg-shell/milestones/2.0","labels_url":"https://api.github.com/repos/eXistSolutions/hsg-shell/milestones/3/labels","id":1463228,"number":3,"title":"2.0","description":"no description yet","creator":{"login":"JoernT","id":484059,"avatar_url":"https://avatars.githubusercontent.com/u/484059?v=3","gravatar_id":"","url":"https://api.github.com/users/JoernT","html_url":"https://github.com/JoernT","followers_url":"https://api.github.com/users/JoernT/followers","following_url":"https://api.github.com/users/JoernT/following{/other_user}","gists_url":"https://api.github.com/users/JoernT/gists{/gist_id}","starred_url":"https://api.github.com/users/JoernT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoernT/subscriptions","organizations_url":"https://api.github.com/users/JoernT/orgs","repos_url":"https://api.github.com/users/JoernT/repos","events_url":"https://api.github.com/users/JoernT/events{/privacy}","received_events_url":"https://api.github.com/users/JoernT/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2015-12-16T13:59:30Z","updated_at":"2016-03-16T15:57:16Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-03-16T15:57:15Z","updated_at":"2016-03-16T15:57:15Z","closed_at":null,"body":"As noted in #117 and demonstrated in #141, a unified breadcrumb module would help with maintenance and predictability. \r\n\r\nProblems with current approach:\r\n- Each page that needs breadcrumbs uses a combination of hard-coded and dynamically generated breadcrumbs (i.e., breadcrumbs generated by referencing templating functions)\r\n- Hard-coded breadcrumbs are repetitive across pages and typo-prone\r\n- Dynamic breadcrumb functions vary\r\n- Moving a page or section requires manual tweaks to each page's breadcrumbs\r\n\r\nIdeally, breadcrumbs would be:\r\n- Centrally defined in `$config:PUBLICATIONS` \r\n- Modular - allowing a deeper URL to reference breadcrumbs for its parent/ancestor pages\r\n\r\nExamples of current approach:\r\n- hard coded: https://github.com/eXistSolutions/hsg-shell/blob/master/pages/historicaldocuments/index.html#L5-L12\r\n- dynamic: \r\n  - https://github.com/eXistSolutions/hsg-shell/blob/master/modules/frus-html.xqm#L307-L347\r\n  - https://github.com/eXistSolutions/hsg-shell/blob/master/modules/tags-html.xqm#L70-L74"}}