Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vejledning i korrekt brug af "Info"-tool #269

Closed
klavspc opened this issue Mar 6, 2018 · 2 comments
Closed

Vejledning i korrekt brug af "Info"-tool #269

klavspc opened this issue Mar 6, 2018 · 2 comments
Assignees
Milestone

Comments

@klavspc
Copy link
Contributor

klavspc commented Mar 6, 2018

Med de store profiler, der nu bruges er "info"-toolet (s4-details-spatialquery-plugin) ikke længere særlig brugbart i standard-konfiguration, dvs istedet for
<tool module="s4" name="s4-details-spatialquery-plugin" />
skal man lave et custom tool, hvor man beskriver hvilke temaer, der skal søges i
<tool dir="custom" name="min-details-spatialquery-plugin" />

@klavspc klavspc added this to the 2.9 milestone Mar 6, 2018
@klavspc klavspc self-assigned this Mar 6, 2018
@flemmingrasbak
Copy link

Hvor i custom tool'et skal man beskrive, hvilke temaer der skal søges info i?

@klavspc
Copy link
Contributor Author

klavspc commented Apr 6, 2018

Med de store profiler, der nu bruges er "info"-toolet (s4-details-spatialquery-plugin) ikke længere særlig brugbart i standard-konfiguration, dvs istedet for
<tool module="s4" name="s4-details-spatialquery-plugin" />
skal man lave et custom tool, hvor man beskriver hvilke temaer, der skal søges i
<tool dir="custom" name="min_tilpassede-details-spatialquery-plugin" />

Fra dokumentationen:

  • Kopiér s4/tools/s4-details-spatialquery-plugin.xml til
  • config/tools/custom/min_tilpassede-details-spatialquery-plugin.xml og følg instruktionerne i Customize HERE afsnittene.
  • Redigér layers property til en liste af de tema-id'er der skal søges på
   var s4SqSearcher = new Septima.Search.SqSearcher({
       //Customize HERE
       layers: "theme_skole theme_park",
       profile: cbKort.getProfile(),
       profileQuery: 'info',
       buffer: 0,
       sessionId: cbKort.getSessionId(),
       allowDetails: true,
       onSelect: s4Hit             
   });
  • Include in profile:
<tool dir="custom" name="min_tilpassede-details-spatialquery-plugin" />

@klavspc klavspc closed this as completed Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants