Bugzilla – Attachment 13817 Details for
Bug 9123
Authorities search ordered by authid does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SINGED-OFF] Bug 9123: Authorities search ordered by authid does not work
SINGED-OFF-Bug-9123-Authorities-search-ordered-by-.patch (text/plain), 4.01 KB, created by
Katrin Fischer
on 2012-12-02 00:17:36 UTC
(
hide
)
Description:
[SINGED-OFF] Bug 9123: Authorities search ordered by authid does not work
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-12-02 00:17:36 UTC
Size:
4.01 KB
patch
obsolete
>From a5f65b6a83d6a14aa9fbde89c7480dd3f812ae7c Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Wed, 21 Nov 2012 11:05:05 +0100 >Subject: [PATCH] [SINGED-OFF] Bug 9123: Authorities search ordered by authid > does not work > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Tested with Zebra, marc21, grs1. >Discovered that paging through auth search results does no longer work, but that is not related to these changes. > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Tested with Zebra, marc21, dom. >All tests pass. >--- > C4/AuthoritiesMarc.pm | 4 ++-- > .../authorities/authority-koha-indexdefs.xml | 1 + > .../authorities/authority-zebra-indexdefs.xsl | 2 +- > .../marc_defs/marc21/authorities/record.abs | 2 +- > .../marc_defs/unimarc/authorities/record.abs | 2 +- > 5 files changed, 6 insertions(+), 5 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index c8183c1..4a3392f 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -292,9 +292,9 @@ sub SearchAuthorities { > } elsif ($sortby eq 'HeadingDsc') { > $orderstring = '@attr 7=2 @attr 1=Heading 0'; > } elsif ($sortby eq 'AuthidAsc') { >- $orderstring = '@attr 7=1 @attr 1=Local-Number 0'; >+ $orderstring = '@attr 7=1 @attr 4=109 @attr 1=Local-Number 0'; > } elsif ($sortby eq 'AuthidDsc') { >- $orderstring = '@attr 7=2 @attr 1=Local-Number 0'; >+ $orderstring = '@attr 7=2 @attr 4=109 @attr 1=Local-Number 0'; > } > $query=($query?$query:"\@attr 1=_ALLRECORDS \@attr 2=103 ''"); > $query="\@or $orderstring $query" if $orderstring; >diff --git a/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml b/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml >index 5a34eb2..752cd57 100644 >--- a/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml >@@ -24,6 +24,7 @@ authority-zebra-indexdefs.xsl` > <!-- Original record ID --> > <kohaidx:index_control_field tag="001"> > <kohaidx:target_index>Local-Number:w</kohaidx:target_index> >+ <kohaidx:target_index>Local-Number:n</kohaidx:target_index> > <kohaidx:target_index>Local-Number:s</kohaidx:target_index> > </kohaidx:index_control_field> > >diff --git a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl >index 02509b3..1a9257b 100644 >--- a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl >@@ -50,7 +50,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </z:index> > </xslo:template> > <xslo:template match="marc:controlfield[@tag='001']"> >- <z:index name="Local-Number:w Local-Number:s"> >+ <z:index name="Local-Number:w Local-Number:n Local-Number:s"> > <xslo:value-of select="."/> > </z:index> > </xslo:template> >diff --git a/etc/zebradb/marc_defs/marc21/authorities/record.abs b/etc/zebradb/marc_defs/marc21/authorities/record.abs >index e76107c..f185887 100644 >--- a/etc/zebradb/marc_defs/marc21/authorities/record.abs >+++ b/etc/zebradb/marc_defs/marc21/authorities/record.abs >@@ -19,7 +19,7 @@ systag sysno rank > xpath enable > > all any >-melm 001 Local-Number,Local-Number:s >+melm 001 Local-Number,Local-Number:n,Local-Number:s > melm 942$a authtype:w,authtype:p > > # Personal Name >diff --git a/etc/zebradb/marc_defs/unimarc/authorities/record.abs b/etc/zebradb/marc_defs/unimarc/authorities/record.abs >index 18245c0..c6ed01f 100644 >--- a/etc/zebradb/marc_defs/unimarc/authorities/record.abs >+++ b/etc/zebradb/marc_defs/unimarc/authorities/record.abs >@@ -11,7 +11,7 @@ systag sysno rank > xpath enable > > all any >-melm 001 Local-Number,Local-Number:s >+melm 001 Local-Number,Local-Number:n,Local-Number:s > melm 942$a authtype > melm 152$b authtype:w,authtype:p > >-- >1.7.9.5
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 9123
:
13572
|
13633
| 13817