{"action":"created","issue":{"url":"https://api.github.com/repos/eXistSolutions/hsg-shell/issues/61","labels_url":"https://api.github.com/repos/eXistSolutions/hsg-shell/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/eXistSolutions/hsg-shell/issues/61/comments","events_url":"https://api.github.com/repos/eXistSolutions/hsg-shell/issues/61/events","html_url":"https://github.com/eXistSolutions/hsg-shell/issues/61","id":122142818,"number":61,"title":"templating breaks when multiple URL parameters have the same name","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/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/eXistSolutions/hsg-shell/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/eXistSolutions/hsg-shell/labels/high%20priority","name":"high priority","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/eXistSolutions/hsg-shell/milestones/1","html_url":"https://github.com/eXistSolutions/hsg-shell/milestones/launch%20of%20new%20website","labels_url":"https://api.github.com/repos/eXistSolutions/hsg-shell/milestones/1/labels","id":1419768,"number":1,"title":"launch of new website","description":"production launch of the new, technically completely reworked website with TEI-Simple and new templating.\r\n\r\nThis milestone does NOT include the transition to US Web Design Standards.","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":20,"closed_issues":22,"state":"open","created_at":"2015-11-19T12:57:08Z","updated_at":"2015-12-15T14:32:10Z","due_on":"2015-12-16T05:00:00Z","closed_at":null},"comments":3,"created_at":"2015-12-14T22:09:05Z","updated_at":"2015-12-15T14:32:11Z","closed_at":"2015-12-15T14:32:10Z","body":"As I noted in commit log of https://github.com/eXistSolutions/hsg-shell/commit/c4480cea212e95576ba85160de4cfbe4ce468e6f, search breaks when there are 2 within parameters. example URLs that exhibit this behavior:\r\n\r\n- http://localhost:8080/exist/apps/hsg-shell/search?q=nixon&within=frus1969-76v17&within=frus1969-76v18\r\n- http://localhost:8080/exist/apps/hsg-shell/search?q=nixon&within=department&within=milestones\r\n\r\nWe use multiple `within` parameters to restrict scope. Because of the way checkboxes are submitted in HTML forms, we can't concatenate the values into a single parameter (e.g., `within=department;milestones`). I think these are legal URLs and so hope we can get the templating framework to handle them.\r\n\r\nUnfortunately, I'm having trouble understanding the error message below. Line 49 column 9 of **which** module? If it's in templates.xql, 48:9 doesn't make sense. Please help!\r\n\r\n```\r\nexerr:ERROR err:FORG0006: effectiveBooleanValue: first item of '(frus1969-76v17, fru...' is not a node, and sequence length > 1 [at line 48, column 9]\r\nIn function:\r\n\ttemplates:if-parameter-set(node(), map, xs:string) [48:9:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call-with-args(function, function*, element(), map) [208:13:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process-output(element(), map, item()*, element()) [205:9:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call-by-introspection(element(), map, map, function) [187:28:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call(item(), element(), map) [135:36:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [146:81:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [512:13:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:each(node(), map, xs:string, xs:string) [48:9:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call-with-args(function, function*, element(), map) [208:13:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process-output(element(), map, item()*, element()) [205:9:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call-by-introspection(element(), map, map, function) [187:28:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call(item(), element(), map) [135:36:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [60:18:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\tsearch:load-sections(item()*, item()*) [48:9:/db/apps/hsg-shell/modules/search.xqm]\r\n\ttemplates:call-with-args(function, function*, element(), map) [208:13:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process-output(element(), map, item()*, element()) [205:9:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call-by-introspection(element(), map, map, function) [187:28:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call(item(), element(), map) [135:36:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [146:81:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [22:19:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\tapp:fix-links(node()*) [22:5:/db/apps/hsg-shell/modules/app.xqm]\r\n\tapp:fix-links(node(), map) [48:9:/db/apps/hsg-shell/modules/app.xqm]\r\n\ttemplates:call-with-args(function, function*, element(), map) [208:13:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process-output(element(), map, item()*, element()) [205:9:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call-by-introspection(element(), map, map, function) [187:28:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call(item(), element(), map) [135:36:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [146:81:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [146:81:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [146:81:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [146:81:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [377:25:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\tpages:app-root(node(), map) [48:9:/db/apps/hsg-shell/modules/pages.xqm]\r\n\ttemplates:call-with-args(function, function*, element(), map) [208:13:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process-output(element(), map, item()*, element()) [205:9:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call-by-introspection(element(), map, map, function) [187:28:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call(item(), element(), map) [135:36:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [465:17:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process-output(element(), map, item()*) [273:9:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process-output(element(), map, item()*, element()) [205:9:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call-by-introspection(element(), map, map, function) [187:28:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call(item(), element(), map) [135:36:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [131:51:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [88:9:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:apply(node()+, function, map?, map?) [59:5:/Users/joe/workspace/eXist-LTS/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]\r\n```"},"comment":{"url":"https://api.github.com/repos/eXistSolutions/hsg-shell/issues/comments/164781277","html_url":"https://github.com/eXistSolutions/hsg-shell/issues/61#issuecomment-164781277","issue_url":"https://api.github.com/repos/eXistSolutions/hsg-shell/issues/61","id":164781277,"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},"created_at":"2015-12-15T14:32:10Z","updated_at":"2015-12-15T14:32:10Z","body":"Or are you suggesting that I use a non templating approach?"}}