Adding search options to drop-down menu

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding search options to drop-down menu

King, Fred
Greetings, all,

I want to make some changes/additional options to the search menus in masthead.inc and opac-advsearch.tt. For example, I'd like to limit the subject field to only 650$a and add separate fields for $651a and $656$a. Also, I'd like to add search options for 190$a and 253$a.*

I went into Keyword to MARC mapping and created fields mapped to a single MARC subfield, for example, mesh** is mapped to 650a. Then I added the line
   <option value="mesh">MeSH Term</option>
to my search. That doesn't work-the search comes up empty.

Can someone point me in the right direction? I've looked in the wiki and the documentation and I haven't found anything.

I'm using Koha 17.11 and Ubuntu 16.04.

Thanks,

*Those fields don't exist? They do in my catalog. See http://medstarauthors.org.
**Medical subject heading, in case you were wondering.

Fred King
Medical Librarian, MedStar Washington Hospital Center
[hidden email]<mailto:[hidden email]>
202-877-6670
ORCID 0000-0001-5266-0279
MedStar Authors Catalog: http://medstarauthors.org

Sometimes I wake up from a dream and then go back to it in disguise so I can find out what they're saying about me behind my back.
--Bill in Portland

_______________________________________________
Koha mailing list  http://koha-community.org
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha
Reply | Threaded
Open this post in threaded view
|

Re: Adding search options to drop-down menu

barton
Fred,

Zebra search or Elastic?

--Barton

On Mon, Mar 5, 2018 at 1:34 PM, King, Fred <[hidden email]> wrote:

> Greetings, all,
>
> I want to make some changes/additional options to the search menus in
> masthead.inc and opac-advsearch.tt. For example, I'd like to limit the
> subject field to only 650$a and add separate fields for $651a and $656$a.
> Also, I'd like to add search options for 190$a and 253$a.*
>
> I went into Keyword to MARC mapping and created fields mapped to a single
> MARC subfield, for example, mesh** is mapped to 650a. Then I added the line
>    <option value="mesh">MeSH Term</option>
> to my search. That doesn't work-the search comes up empty.
>
> Can someone point me in the right direction? I've looked in the wiki and
> the documentation and I haven't found anything.
>
> I'm using Koha 17.11 and Ubuntu 16.04.
>
> Thanks,
>
> *Those fields don't exist? They do in my catalog. See
> http://medstarauthors.org.
> **Medical subject heading, in case you were wondering.
>
> Fred King
> Medical Librarian, MedStar Washington Hospital Center
> [hidden email]<mailto:[hidden email]>
> 202-877-6670
> ORCID 0000-0001-5266-0279
> MedStar Authors Catalog: http://medstarauthors.org
>
> Sometimes I wake up from a dream and then go back to it in disguise so I
> can find out what they're saying about me behind my back.
> --Bill in Portland
>
> _______________________________________________
> Koha mailing list  http://koha-community.org
> [hidden email]
> https://lists.katipo.co.nz/mailman/listinfo/koha
>
_______________________________________________
Koha mailing list  http://koha-community.org
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha
Reply | Threaded
Open this post in threaded view
|

Re: Adding search options to drop-down menu

Katrin Fischer-2
In reply to this post by King, Fred
Hi Fred,

if we are talking about Zebra, this might help:

https://wiki.koha-community.org/wiki/MRenvoize/zebra

I'd try and test if searching with mesh:... works in the keyword search.
If it doesn't something might be missing from your index configuration,
like adding it to the list of indexes in Search.pm.

Hope this helps,

Katrin

On 05.03.2018 19:34, King, Fred wrote:

> Greetings, all,
>
> I want to make some changes/additional options to the search menus in masthead.inc and opac-advsearch.tt. For example, I'd like to limit the subject field to only 650$a and add separate fields for $651a and $656$a. Also, I'd like to add search options for 190$a and 253$a.*
>
> I went into Keyword to MARC mapping and created fields mapped to a single MARC subfield, for example, mesh** is mapped to 650a. Then I added the line
>     <option value="mesh">MeSH Term</option>
> to my search. That doesn't work-the search comes up empty.
>
> Can someone point me in the right direction? I've looked in the wiki and the documentation and I haven't found anything.
>
> I'm using Koha 17.11 and Ubuntu 16.04.
>
> Thanks,
>
> *Those fields don't exist? They do in my catalog. See http://medstarauthors.org.
> **Medical subject heading, in case you were wondering.
>
> Fred King
> Medical Librarian, MedStar Washington Hospital Center
> [hidden email]<mailto:[hidden email]>
> 202-877-6670
> ORCID 0000-0001-5266-0279
> MedStar Authors Catalog: http://medstarauthors.org
>
> Sometimes I wake up from a dream and then go back to it in disguise so I can find out what they're saying about me behind my back.
> --Bill in Portland
>
> _______________________________________________
> Koha mailing list  http://koha-community.org
> [hidden email]
> https://lists.katipo.co.nz/mailman/listinfo/koha

_______________________________________________
Koha mailing list  http://koha-community.org
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha
Reply | Threaded
Open this post in threaded view
|

Re: Adding search options to drop-down menu

King, Fred
In reply to this post by barton
Zebra. Elastic is on my things-to-learn list.

Fred King
Medical Librarian, MedStar Washington Hospital Center
[hidden email]<mailto:[hidden email]>
202-877-6670
ORCID 0000-0001-5266-0279
MedStar Authors Catalog: http://medstarauthors.org

Sometimes I wake up from a dream and then go back to it in disguise so I can find out what they’re saying about me behind my back.
--Bill in Portland

From: Barton Chittenden [mailto:[hidden email]]
Sent: Monday, March 05, 2018 5:38 PM
To: King, Fred
Cc: [hidden email]
Subject: Re: [Koha] Adding search options to drop-down menu

Fred,

Zebra search or Elastic?

--Barton

On Mon, Mar 5, 2018 at 1:34 PM, King, Fred <[hidden email]<mailto:[hidden email]>> wrote:
Greetings, all,

I want to make some changes/additional options to the search menus in masthead.inc and opac-advsearch.tt<https://urldefense.proofpoint.com/v2/url?u=http-3A__opac-2Dadvsearch.tt&d=DwMFaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=30CbvGuVdxWeKwDx2F3UTjjlEP9aueo_DXcwQiw0M0g&s=e7imzJ6oQh2L59vXx7APEVpSa278PFCSSPc54XXM2-o&e=>. For example, I'd like to limit the subject field to only 650$a and add separate fields for $651a and $656$a. Also, I'd like to add search options for 190$a and 253$a.*

I went into Keyword to MARC mapping and created fields mapped to a single MARC subfield, for example, mesh** is mapped to 650a. Then I added the line
   <option value="mesh">MeSH Term</option>
to my search. That doesn't work-the search comes up empty.

Can someone point me in the right direction? I've looked in the wiki and the documentation and I haven't found anything.

I'm using Koha 17.11 and Ubuntu 16.04.

Thanks,

*Those fields don't exist? They do in my catalog. See http://medstarauthors.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__medstarauthors.org&d=DwMFaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=30CbvGuVdxWeKwDx2F3UTjjlEP9aueo_DXcwQiw0M0g&s=cfsXxGj0HjzYhIl6tuwvywHKKnMsQ0DRphFKpVx3Xso&e=>.
**Medical subject heading, in case you were wondering.

Fred King
Medical Librarian, MedStar Washington Hospital Center
[hidden email]<mailto:[hidden email]><mailto:[hidden email]<mailto:[hidden email]>>
202-877-6670<tel:202-877-6670>
ORCID 0000-0001-5266-0279
MedStar Authors Catalog: http://medstarauthors.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__medstarauthors.org&d=DwMFaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=30CbvGuVdxWeKwDx2F3UTjjlEP9aueo_DXcwQiw0M0g&s=cfsXxGj0HjzYhIl6tuwvywHKKnMsQ0DRphFKpVx3Xso&e=>

Sometimes I wake up from a dream and then go back to it in disguise so I can find out what they're saying about me behind my back.
--Bill in Portland

_______________________________________________
Koha mailing list  http://koha-community.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__koha-2Dcommunity.org&d=DwMFaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=30CbvGuVdxWeKwDx2F3UTjjlEP9aueo_DXcwQiw0M0g&s=8ZdWVcimRfFd8hbh27etRPYuzUxxKuFKqmjANKBhGE4&e=>
[hidden email]<mailto:[hidden email]>
https://lists.katipo.co.nz/mailman/listinfo/koha<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.katipo.co.nz_mailman_listinfo_koha&d=DwMFaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=30CbvGuVdxWeKwDx2F3UTjjlEP9aueo_DXcwQiw0M0g&s=vqMXJzG1qnFKFz-LA9i83YheO6KoKpmNofY9rTkEZVg&e=>

_______________________________________________
Koha mailing list  http://koha-community.org
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha