Bugzilla – Attachment 11553 Details for
Bug 7991
Display in a holding summary tab information about serial record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7991: Add itemcallnumber into the serial collection tab
Bug-7991-Add-itemcallnumber-into-the-serial-collec.patch (text/plain), 2.90 KB, created by
Jared Camins-Esakov
on 2012-08-11 16:35:55 UTC
(
hide
)
Description:
Bug 7991: Add itemcallnumber into the serial collection tab
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-08-11 16:35:55 UTC
Size:
2.90 KB
patch
obsolete
>From 36902754250847680364550ae517c9390d51f0aa Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 3 May 2012 14:58:25 +0200 >Subject: [PATCH] Bug 7991: Add itemcallnumber into the serial collection tab >Content-Type: text/plain; charset="UTF-8" > >This patch adds a new column containing the itemcallnumber value into >the serial collection tab (opac detail). > 930$a for UNIMARC > 852$h for others > >Signed-off-by: Stephane Delaye <stephane.delaye@biblibre.com> > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >(Added Stephane Delaye's sign off at the same time as mine) >As this view has never worked with MARC21, I am comfortable signing >off on the fact that the patch does not in any way impact the MARC21 >display. >--- > koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 6 ++++-- > opac/opac-detail.pl | 11 ++++++++++- > 2 files changed, 14 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >index 54ed48e..0fc6e49 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >@@ -685,8 +685,9 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > <table id="serialcollectiont"> > <thead> > <tr> >- <th id="serial_library">Library</th> >- <th id="seral_collection">Serial collection</th> >+ <th id="serial_library">Library</th> >+ <th id="serial_collection">Serial collection</th> >+ <th id="serial_itemcallnumber">Item callnumber</th> > </tr> > </thead> > <tbody> >@@ -694,6 +695,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > <tr> > <td>[% serialcollection.branch %]</td> > <td>[% serialcollection.text %]</td> >+ <td>[% serialcollection.itemcallnumber %]</td> > </tr> > [% END %] > </tbody> >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 0bafabd..de2c40e 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -723,6 +723,9 @@ if (C4::Context->preference("OPACFRBRizeEditions")==1) { > > # Serial Collection > my @sc_fields = $record->field(955); >+my @lc_fields = $marcflavour eq 'UNIMARC' >+ ? $record->field(930) >+ : $record->field(852); > my @serialcollections = (); > > foreach my $sc_field (@sc_fields) { >@@ -730,9 +733,15 @@ foreach my $sc_field (@sc_fields) { > > $row_data{text} = $sc_field->subfield('r'); > $row_data{branch} = $sc_field->subfield('9'); >+ foreach my $lc_field (@lc_fields) { >+ $row_data{itemcallnumber} = $marcflavour eq 'UNIMARC' >+ ? $lc_field->subfield('a') # 930$a >+ : $lc_field->subfield('h') # 852$h >+ if ($sc_field->subfield('5') eq $lc_field->subfield('5')); >+ } > > if ($row_data{text} && $row_data{branch}) { >- push (@serialcollections, \%row_data); >+ push (@serialcollections, \%row_data); > } > } > >-- >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 7991
:
9400
|
10406
| 11553