Bugzilla – Attachment 25736 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.
0001-Add-the-Call-number-fields-column-to-the-Z39.50-sear.patch (text/plain), 2.97 KB, created by
Frédérick Capovilla
on 2014-02-28 17:28:09 UTC
(
hide
)
Description:
Add the "Call number fields" column to the Z39.50 search results.
Filename:
MIME Type:
Creator:
Frédérick Capovilla
Created:
2014-02-28 17:28:09 UTC
Size:
2.97 KB
patch
obsolete
>From c6c4f62b210ca79502ed685da249b7cb28a97093 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) > >--- > C4/Breeding.pm | 22 ++++++++++++++++++++ > .../prog/en/modules/cataloguing/z3950_search.tt | 12 ++++++++++ > 2 files changed, 34 insertions(+), 0 deletions(-) > >diff --git a/C4/Breeding.pm b/C4/Breeding.pm >index 8e01d41..a6a7b0e 100644 >--- a/C4/Breeding.pm >+++ b/C4/Breeding.pm >@@ -441,6 +441,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 d8d370e..4e5fe1d 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 >@@ -159,6 +159,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> >@@ -174,6 +175,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.7.2.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 11874
:
25736
|
36751