Time |
Nick |
Message |
08:04 |
|
tsbere__ joined #evergreen |
08:55 |
|
krvmga joined #evergreen |
09:45 |
|
krvmga joined #evergreen |
12:58 |
|
Dyrcona joined #evergreen |
15:45 |
|
bmills joined #evergreen |
17:12 |
|
edoceo joined #evergreen |
17:33 |
|
maryj joined #evergreen |
17:47 |
|
maryj_ joined #evergreen |
19:40 |
|
maryj joined #evergreen |
20:10 |
|
maryj joined #evergreen |
21:08 |
|
kenstir joined #evergreen |
21:09 |
kenstir |
Hi folks, I am struggling to make open-ils.search.biblio.multiclass.query work the way I want. Anyone available to help? |
21:13 |
|
dcook joined #evergreen |
21:13 |
|
maryj_ joined #evergreen |
21:16 |
kenstir |
So I am trying to make the android app search better, by restricting to a selected format, e.g. searching only for search_format(dvd). |
21:16 |
kenstir |
gmcharlt suggested I could expand the query string, e.g. "avengers search_format(dvd)". That does work for me in srfsh against the demo DB, but not against C/W MARS live through the osrf gateway. |
21:24 |
gmcharlt |
kenstir: try this? http://bark.cwmars.org/gateway?service=open-ils.search&method=open-ils.search.biblio.multiclass.query&param={}¶m=%22avengers%20search_format(book)%22¶m=1 |
21:27 |
gmcharlt |
or http://bark.cwmars.org/gateway?service=open-ils.search&method=open-ils.search.biblio.multiclass.query&param={}¶m=%22the%20search_format(dvd)%20depth(0)%22¶m=1 |
21:31 |
|
maryj joined #evergreen |
21:31 |
kenstir |
Hey, gmcharlt. That is interesting. It seems to work via the web even when the first param is not empty, e.g. http://bark.cwmars.org/gateway?service=open-ils.search&method=open-ils.search.biblio.multiclass.query&param={%22org_unit%22:69,%22default_class%22:%22keyword%22}¶m=%22avengers%20search_format(dvd)%22¶m=1 |
21:32 |
kenstir |
but that isn't working in the app, so my problem must be elsewhere |
21:48 |
kenstir |
gmcharlt: working now, thanks a lot! In the end, the link http://wiki.evergreen-ils.org/doku.php?id=documentation:technical:search_grammar did not mention "search_format", but I groked it from tracing a web OPAC query. |
21:50 |
gmcharlt |
right - it's possible for the library to define custom search limiters, though most recent Evergreen catalogs are likely to have one named "search_format" |
21:51 |
kenstir |
Thanks for entertaining the n00b questions. |
21:52 |
kenstir |
Do you know if there is a method to look up the list of available formats? For instance, C/W Mars has "E-serials", but demo.evergreencatalog.com does not. |
21:58 |
gmcharlt |
kenstir: I've actually been spending the past few minutes double-checking that. at the moment, it doesn't look like there's a publicly accessible (i.e., via the gateway) API for getting at the list of search filters that a library has defined |
21:59 |
gmcharlt |
though scraping the catalog main page will almost always get whatever the library has set up as their primary search format limiter |
21:59 |
kenstir |
Dang, well thanks for looking. I will start with the default EG set of formats. This alone is a big improvement and worth releasing, being able to search for only DVDs or only books. |