[Koha-devel] [Koha] Search by barcode or item number in OPAC
Brice Sanchez
brice.sanchez at sys-tech.net
Thu Aug 12 19:25:24 CEST 2010
Thanks for the reply but now i have the answer for KOHA 3.2 :
1 . In system preferences, search for /OPACUSERJS/, and add the
following code :
/$(document).ready(function(){/
/$("#masthead_search").append("<option
value=\"bc\">Barcode</option><option value=\"bit\">Biblio item
number</option>");/
/});
/
2 . Go to koha/etc/zebradb/biblios/etc/**bib1.att
**
3 . Check or add these lines* :*
/* att 8023 barcode*/
/* [...]*/
/* att 9002 biblioitemnumber*/
*
4 . Go to koha/etc/zebradb/marc_defs/marc21/biblios/**record.abs*
5 . Check or add these lines* :
*
/* melm 952$p barcode,barcode:n*/
/* [...]*/
/* melm 999$d biblioitemnumber:n,biblioitemnumber:w,biblioitemnumber:s*/
*
6 . Go to koha/etc/zebradb/**ccl.properties
*
7 . Check or add these lines* :*
/* barcode 1=8023 */
/* bc barcode*/
/* [...]*/
/* biblioitemnumber 1=9002 */
/* bit biblioitemnumber*/
8 . Rebuild Zebra in command line
/cd /src/misc/migration_tools
/
/./rebuild_zebra.pl -b -a -r
/
9. Done
On 12/08/2010 13:00, Fridolyn SOMERS wrote:
> Test with :
> http://[your.site]/cgi-bin/koha/opac-search.pl?q=ccl=bc:12345
> <http://opac-search.pl?q=ccl=barcode:12345>
>
> In ccl.properties, do you have bc and barecode ?
>
>
> On 06/08/2010 10:55, Tomas Cohen Arazi wrote:
>> 2010/8/6 Brice Sanchez<brice.sanchez at sys-tech.net> <mailto:brice.sanchez at sys-tech.net>:
>>
>>> Thanks for your answers :
>>>
>>> The barcode works if i put it directly in the search box.
>>>
>>> but bc:12345, bc:'12345',
>>> http://[your.site]/cgi-bin/koha/opac-search.pl?q=ccl=barcode:12345 <http://opac-search.pl?q=ccl=barcode:12345> doesn't
>>> works on my Koha, i need to find why?
>>>
>>>
>> Are you using Zebra? bc is a zebra index as far as I know.
>>
>> To+
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> <mailto:Koha-devel at lists.koha-community.org>
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
>
>
>
>
> --
> Fridolyn SOMERS
> Information and Communication Technologies engineer
> Lyon - FRANCE
> fridolyn.somers at gmail.com <mailto:fridolyn.somers at gmail.com>
--
*Brice Sanchez*
Programmeur Web
brice.sanchez at sys-tech.net <mailto:brice.sanchez at sys-tech.net>
418 520-0739 poste 136
514 907-0036 / 1-877-969-8324
*SYS-TECH / Technologies de l'information libres*
6700 BOUL PIERRE-BERTRAND BUREAU 209
QUÉBEC QC G2J 0B4
http://www.sys-tech.net
/Membre supporteur de l'Association TYPO3 <http://typo3.org>/
*Avant d'imprimer, pensez à l'environnement...*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20100812/f3fb6a4e/attachment.htm>
More information about the Koha-devel
mailing list