Bugzilla – Attachment 30575 Details for
Bug 9810
Search limit 'available' does not hide damaged, withdrawn, or not-for-loan items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9810: Add index notforloan for unimarc
Bug-9810-Add-index-notforloan-for-unimarc.patch (text/plain), 3.65 KB, created by
Marcel de Rooy
on 2014-08-07 11:54:42 UTC
(
hide
)
Description:
Bug 9810: Add index notforloan for unimarc
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2014-08-07 11:54:42 UTC
Size:
3.65 KB
patch
obsolete
>From 37c4bc681f6c4031b6019759f6f0a35c891cfc5c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 11 Jul 2014 17:20:48 +0200 >Subject: [PATCH] Bug 9810: Add index notforloan for unimarc >Content-Type: text/plain; charset=utf-8 > >This patch adds the notforloan index for UNIMARC (GRS-1 and DOM). > >Not that the original patch does not work out of the box: the >notforloan, withdrawn and damaged indexes are not defined in the >frameworks and mapping. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../unimarc/biblios/biblio-koha-indexdefs.xml | 5 +++++ > .../unimarc/biblios/biblio-zebra-indexdefs.xsl | 9 +++++++-- > etc/zebradb/marc_defs/unimarc/biblios/record.abs | 3 ++- > 3 files changed, 14 insertions(+), 3 deletions(-) > >diff --git a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml >index e70a12c..2aa41f2 100644 >--- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml >@@ -1412,6 +1412,11 @@ > <target_index>onloan:w</target_index> > <target_index>item:w</target_index> > </index_subfields> >+ <!--995$o notforloan:n,notforloan:w--> >+ <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="o"> >+ <target_index>notforloan:n</target_index> >+ <target_index>notforloan:w</target_index> >+ </index_subfields> > <!--995$u Note,Note:p,item--> > <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="u"> > <target_index>Note:w</target_index> >diff --git a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >index c1a41aa..125a80c 100644 >--- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >@@ -342,6 +342,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('o', @code)"> >+ <z:index name="notforloan:n notforloan:w"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('u', @code)"> > <z:index name="Note:w Note:p item:w"> > <xslo:value-of select="."/> >@@ -436,8 +443,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </z:index> > </xslo:if> > </xslo:for-each> >- </xslo:template> >- <xslo:template mode="index_subfields" match="marc:datafield[@tag='101']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('c', @code)"> > <z:index name="language-original:w"> >diff --git a/etc/zebradb/marc_defs/unimarc/biblios/record.abs b/etc/zebradb/marc_defs/unimarc/biblios/record.abs >index 4fadcc1..961e587 100644 >--- a/etc/zebradb/marc_defs/unimarc/biblios/record.abs >+++ b/etc/zebradb/marc_defs/unimarc/biblios/record.abs >@@ -529,8 +529,9 @@ melm 995$k Call-Number,Local-classification,Call-Number:p,Local-classificatio > # (in 995 recommandation : $m - Date of loan or deposit) > # $n - Expiration of loan > melm 995$n onloan:d,onloan:n,onloan:s,onloan:w,item >-# $o - not used currently >+# $o - not for loan > # (in 995 recommandation : $o - Circulation type (not for loan)) >+melm 995$o notforloan:n,notforloan:w > > # 4 - Sorting and statistic information > # $p - not used currently >-- >1.7.7.6
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9810
:
16094
|
16402
|
16542
|
28526
|
29579
|
29580
|
29644
|
30573
|
30574
| 30575 |
30576
|
105399