Bugzilla – Attachment 36751 Details for
Bug 11874
Add a "Call number fields" column to the Z39.50 search results.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add the "Call number fields" column to the Z39.50 search results. (MARC21)
Add-the-Call-number-fields-column-to-the-Z3950-sea.patch (text/plain), 3.00 KB, created by
Charles Farmer
on 2015-03-09 19:38:46 UTC
(
hide
)
Description:
Add the "Call number fields" column to the Z39.50 search results. (MARC21)
Filename:
MIME Type:
Creator:
Charles Farmer
Created:
2015-03-09 19:38:46 UTC
Size:
3.00 KB
patch
obsolete
>From c78c01a6e13d70af91472edde0ffce7c8e26ffec Mon Sep 17 00:00:00 2001 >From: Maxime Pelletier <maxime.pelletier@libeo.com> >Date: Fri, 28 Feb 2014 12:12:31 -0500 >Subject: [PATCH] Add the "Call number fields" column to the Z39.50 search > results. (MARC21) > >http://bugs.koha-community.org/show_bug.cgi?id=11874 >--- > C4/Breeding.pm | 22 ++++++++++++++++++++++ > .../prog/en/modules/cataloguing/z3950_search.tt | 12 ++++++++++++ > 2 files changed, 34 insertions(+) > >diff --git a/C4/Breeding.pm b/C4/Breeding.pm >index b5a4717..5334d53 100644 >--- a/C4/Breeding.pm >+++ b/C4/Breeding.pm >@@ -340,6 +340,28 @@ sub _add_rowdata { > } > $row->{date}//= $row->{date2}; > $row->{isbn}=_isbn_replace($row->{isbn}); >+ >+ my $field_50 = ''; >+ my $field_82 = ''; >+ my $field_90 = ''; >+ >+ my $temp50 = $record->field('050'); >+ if ($temp50) { >+ $field_50 = $temp50->subfield('a') . ' ' . $temp50->subfield('b'); >+ } >+ my $temp82 = $record->field('082'); >+ if ($temp82) { >+ $field_82 = $temp82->subfield('a') . ' ' . $temp82->subfield('b'); >+ } >+ my $temp90 = $record->field('090'); >+ if ($temp90) { >+ $field_90 = $temp90->subfield('a') . ' ' . $temp90->subfield('b'); >+ } >+ >+ $row->{field_50} = $field_50; >+ $row->{field_82} = $field_82; >+ $row->{field_90} = $field_90; >+ > return $row; > } > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt >index 79e8015..4b1dcec 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt >@@ -184,6 +184,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : > <th>Date</th> > <th>Edition</th> > <th>ISBN</th> >+ <th>Call number fields</th> > <th>LCCN</th> > <th>MARC</th> > <th>Card</th> >@@ -199,6 +200,17 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : > <td>[% breeding_loo.date %]</td> > <td>[% breeding_loo.edition %]</td> > <td>[% breeding_loo.isbn %]</td> >+ <td class="single-line"> >+ [% IF ( breeding_loo.field_50 ) %] >+ 050ab: [% breeding_loo.field_50 %]<br /> >+ [% END %] >+ [% IF ( breeding_loo.field_82 ) %] >+ 082ab: [% breeding_loo.field_82 %]<br /> >+ [% END %] >+ [% IF ( breeding_loo.field_90 ) %] >+ 090ab: [% breeding_loo.field_90 %] >+ [% END %] >+ </td> > <td>[% breeding_loo.lccn %]</td> > <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" title="MARC" rel="gb_page_center[600,500]">MARC</a></td> > <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td> >-- >1.9.1
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 11874
:
25736
| 36751