Hi there. After some research, I saw that I can suppress biblios to show on OPAC by set OPACSuppression to "hide" and having at least one biblio record with the field 942$n with the value 1. I'm using UNIMARC which doesn't have the field 942$n, so i've created it with the default value 0. Then I've created one biblio record, where the field 942$n was changed to 1. The cronjob to rebuild zebra is working fine, so after its run I've done the search for the biblio record. As expected the biblio record shows in the intranet, but when I've tried in the OPAC the search simply didn't work for any word... I've read that the Zebra must do suppress index, but how I can activate it? I'm doing something wrong? For example UNIMARC field for suppress can be another field than 942$n? Regards. Vitor Fernandes
Hello Vitor,
I'm using UNIMARC which doesn't have the field 942$n, so i've created it with the default value 0. Then I've created one biblio record, where the field 942$n was changed to 1.
I've read that the Zebra must do suppress index, but how I can activate it? I'm doing something wrong? For example UNIMARC field for suppress can be another field than 942$n?
MARC21 Zebra configuration coming with standard Koha has defined an index for this field. UNIMARC Zebra configuration hasn't. Take a look at: etc/zebradb/marc_defs/marc21/biblios/records.abs You will find the line which defines the Suppress index: melm 942$n Suppress:w,Suppress:n You must add an equivalent line in: etc/zebradb/marc_defs/unimarc/biblios/records.abs Rather that adding a new tag to UNIMARC framework, you can add a subfield to an existing one: 915$n for example. So you should add: melm 915$n Suppress:w,Suppress:n -- Frédéric
Thanks for the help Frédéric, The problem was exactly in the mapping of zebra index... Now it works fine. Regards. Vitor Fernandes 2011/1/28 Frédéric Demians <frederic@tamil.fr>:
Hello Vitor,
I'm using UNIMARC which doesn't have the field 942$n, so i've created it with the default value 0. Then I've created one biblio record, where the field 942$n was changed to 1.
I've read that the Zebra must do suppress index, but how I can activate it? I'm doing something wrong? For example UNIMARC field for suppress can be another field than 942$n?
MARC21 Zebra configuration coming with standard Koha has defined an index for this field. UNIMARC Zebra configuration hasn't. Take a look at:
etc/zebradb/marc_defs/marc21/biblios/records.abs
You will find the line which defines the Suppress index:
melm 942$n Suppress:w,Suppress:n
You must add an equivalent line in:
etc/zebradb/marc_defs/unimarc/biblios/records.abs
Rather that adding a new tag to UNIMARC framework, you can add a subfield to an existing one: 915$n for example. So you should add:
melm 915$n Suppress:w,Suppress:n
-- Frédéric
Hi, Frédéric and remaining community, there is anyway to list only the records that are suppressed in the OPAC? The advanced search does not allow to search by XML field and subfield... Regards. Vitor Fernandes 2011/1/28 Vitor Fernandes <vitorfernandes87@gmail.com>:
Thanks for the help Frédéric,
The problem was exactly in the mapping of zebra index... Now it works fine.
Regards. Vitor Fernandes
2011/1/28 Frédéric Demians <frederic@tamil.fr>:
Hello Vitor,
I'm using UNIMARC which doesn't have the field 942$n, so i've created it with the default value 0. Then I've created one biblio record, where the field 942$n was changed to 1.
I've read that the Zebra must do suppress index, but how I can activate it? I'm doing something wrong? For example UNIMARC field for suppress can be another field than 942$n?
MARC21 Zebra configuration coming with standard Koha has defined an index for this field. UNIMARC Zebra configuration hasn't. Take a look at:
etc/zebradb/marc_defs/marc21/biblios/records.abs
You will find the line which defines the Suppress index:
melm 942$n Suppress:w,Suppress:n
You must add an equivalent line in:
etc/zebradb/marc_defs/unimarc/biblios/records.abs
Rather that adding a new tag to UNIMARC framework, you can add a subfield to an existing one: 915$n for example. So you should add:
melm 915$n Suppress:w,Suppress:n
-- Frédéric
Le 28/02/2011 13:52, Vitor Fernandes a écrit :
Hi,
Frédéric and remaining community, there is anyway to list only the records that are suppressed in the OPAC? The advanced search does not allow to search by XML field and subfield...
Regards. Vitor Fernandes search for suppress=1 in the search box at intranet Or use the extractvalue function in mysql 5.1 which allows to search for a subfield in marcxml SELECT * from biblioitems where extractvalue(marcxml,'//record/datafield[@tag=998]/subfield[@code=q]') = 123
Hope that helps. -- Henri-Damien LAURENT
2011/1/28 Vitor Fernandes <vitorfernandes87@gmail.com>:
Thanks for the help Frédéric,
The problem was exactly in the mapping of zebra index... Now it works fine.
Regards. Vitor Fernandes
2011/1/28 Frédéric Demians <frederic@tamil.fr>:
Hello Vitor,
I'm using UNIMARC which doesn't have the field 942$n, so i've created it with the default value 0. Then I've created one biblio record, where the field 942$n was changed to 1.
I've read that the Zebra must do suppress index, but how I can activate it? I'm doing something wrong? For example UNIMARC field for suppress can be another field than 942$n?
MARC21 Zebra configuration coming with standard Koha has defined an index for this field. UNIMARC Zebra configuration hasn't. Take a look at:
etc/zebradb/marc_defs/marc21/biblios/records.abs
You will find the line which defines the Suppress index:
melm 942$n Suppress:w,Suppress:n
You must add an equivalent line in:
etc/zebradb/marc_defs/unimarc/biblios/records.abs
Rather that adding a new tag to UNIMARC framework, you can add a subfield to an existing one: 915$n for example. So you should add:
melm 915$n Suppress:w,Suppress:n
-- Frédéric
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Thank you very much Frédéric. Always a pleasure to learn something new about Koha :) Regards. Vitor Fernandes 2011/2/28 LAURENT Henri-Damien <henridamien.laurent@biblibre.com>:
Le 28/02/2011 13:52, Vitor Fernandes a écrit :
Hi,
Frédéric and remaining community, there is anyway to list only the records that are suppressed in the OPAC? The advanced search does not allow to search by XML field and subfield...
Regards. Vitor Fernandes search for suppress=1 in the search box at intranet Or use the extractvalue function in mysql 5.1 which allows to search for a subfield in marcxml SELECT * from biblioitems where extractvalue(marcxml,'//record/datafield[@tag=998]/subfield[@code=q]') = 123
Hope that helps. -- Henri-Damien LAURENT
2011/1/28 Vitor Fernandes <vitorfernandes87@gmail.com>:
Thanks for the help Frédéric,
The problem was exactly in the mapping of zebra index... Now it works fine.
Regards. Vitor Fernandes
2011/1/28 Frédéric Demians <frederic@tamil.fr>:
Hello Vitor,
I'm using UNIMARC which doesn't have the field 942$n, so i've created it with the default value 0. Then I've created one biblio record, where the field 942$n was changed to 1.
I've read that the Zebra must do suppress index, but how I can activate it? I'm doing something wrong? For example UNIMARC field for suppress can be another field than 942$n?
MARC21 Zebra configuration coming with standard Koha has defined an index for this field. UNIMARC Zebra configuration hasn't. Take a look at:
etc/zebradb/marc_defs/marc21/biblios/records.abs
You will find the line which defines the Suppress index:
melm 942$n Suppress:w,Suppress:n
You must add an equivalent line in:
etc/zebradb/marc_defs/unimarc/biblios/records.abs
Rather that adding a new tag to UNIMARC framework, you can add a subfield to an existing one: 915$n for example. So you should add:
melm 915$n Suppress:w,Suppress:n
-- Frédéric
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Thanks, that'e very useful! On Mon, Feb 28, 2011 at 1:47 PM, LAURENT Henri-Damien <henridamien.laurent@biblibre.com> wrote:
Le 28/02/2011 13:52, Vitor Fernandes a écrit :
Hi,
Frédéric and remaining community, there is anyway to list only the records that are suppressed in the OPAC? The advanced search does not allow to search by XML field and subfield...
Regards. Vitor Fernandes search for suppress=1 in the search box at intranet Or use the extractvalue function in mysql 5.1 which allows to search for a subfield in marcxml SELECT * from biblioitems where extractvalue(marcxml,'//record/datafield[@tag=998]/subfield[@code=q]') = 123
Hope that helps. -- Henri-Damien LAURENT
2011/1/28 Vitor Fernandes <vitorfernandes87@gmail.com>:
Thanks for the help Frédéric,
The problem was exactly in the mapping of zebra index... Now it works fine.
Regards. Vitor Fernandes
2011/1/28 Frédéric Demians <frederic@tamil.fr>:
Hello Vitor,
I'm using UNIMARC which doesn't have the field 942$n, so i've created it with the default value 0. Then I've created one biblio record, where the field 942$n was changed to 1.
I've read that the Zebra must do suppress index, but how I can activate it? I'm doing something wrong? For example UNIMARC field for suppress can be another field than 942$n?
MARC21 Zebra configuration coming with standard Koha has defined an index for this field. UNIMARC Zebra configuration hasn't. Take a look at:
etc/zebradb/marc_defs/marc21/biblios/records.abs
You will find the line which defines the Suppress index:
melm 942$n Suppress:w,Suppress:n
You must add an equivalent line in:
etc/zebradb/marc_defs/unimarc/biblios/records.abs
Rather that adding a new tag to UNIMARC framework, you can add a subfield to an existing one: 915$n for example. So you should add:
melm 915$n Suppress:w,Suppress:n
-- Frédéric
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Elaine Bradtke Data Wrangler VWML English Folk Dance and Song Society | http://www.efdss.org Cecil Sharp House, 2 Regent's Park Road, London NW1 7AY Tel +44 (0) 20 7485 2206 ext 36 -------------------------------------------------------------------------- Registered Company No. 297142 Charity Registered in England and Wales No. 305999 --------------------------------------------------------------------------- "Writing about music is like dancing about architecture" --Elvis Costello (Musician magazine No. 60 (October 1983), p. 52)
participants (4)
-
Elaine Bradtke -
Frédéric Demians -
LAURENT Henri-Damien -
Vitor Fernandes