Bugzilla – Attachment 65479 Details for
Bug 17182
Allow Keyword to MARC mapping for acquisitions searches (subtitle)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 17182 - Allow Keyword to MARC mapping for acquisitions searches
SIGNED-OFF-Bug-17182---Allow-Keyword-to-MARC-mappi.patch (text/plain), 2.54 KB, created by
Owen Leonard
on 2017-08-03 16:03:32 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 17182 - Allow Keyword to MARC mapping for acquisitions searches
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2017-08-03 16:03:32 UTC
Size:
2.54 KB
patch
obsolete
>From 4780cf8b53bf563feed260e6017059903da13b8d Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 19 Jul 2017 14:10:05 +0000 >Subject: [PATCH] [SIGNED-OFF] Bug 17182 - Allow Keyword to MARC mapping for > acquisitions searches > >This patchset adds the 'subtitle' field to the results display on >acquistions search for adding an order form an existing item. > >Any field mapped to 'subtitle' in 'Keyword to MARC mapping' will be >fetched and displayed in the results > >To test: >1 - Perform an acquisitions search for existing record >2 - Note record subtitles are not displayed >3 - Map 245$b and 245$n to 'subtitle' in 'Keyword to MARC mapping' >4 - Note they are still not displayed ion acq results >5 - Apply patch >6 - subtitle fields should now display > >Sponsored by: Round Rock Public Library ><https://www.roundrocktexas.gov/departments/library/> > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > acqui/neworderbiblio.pl | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt | 1 + > 2 files changed, 2 insertions(+) > >diff --git a/acqui/neworderbiblio.pl b/acqui/neworderbiblio.pl >index 2e65569..beaa4da 100755 >--- a/acqui/neworderbiblio.pl >+++ b/acqui/neworderbiblio.pl >@@ -127,6 +127,7 @@ my @results; > foreach my $result ( @{$marcresults} ) { > my $marcrecord = C4::Search::new_record_from_zebra( 'biblioserver', $result ); > my $biblio = TransformMarcToKoha( $marcrecord, '' ); >+ $biblio->{subtitles} = GetRecordValue( 'subtitle', GetMarcBiblio( $biblio->{biblionumber} ), GetFrameworkCode( $biblio->{biblionumber} ) ); > > $biblio->{booksellerid} = $booksellerid; > push @results, $biblio; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt >index 3796d18..bf2dd47 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt >@@ -75,6 +75,7 @@ > <tr> > <td> > <p><span class="title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title | html %]</a></span> >+ [% FOREACH subtitle IN biblio.subtitles %] <span class="subtitle">[% subtitle.subfield %]</span>[% END %] > [% IF ( biblio.author ) %] by <span class="author">[% biblio.author %]</span>,[% END %]</p> > <p>[% IF ( biblio.isbn ) %] [% biblio.isbn %][% END %] > [% IF ( biblio.pages ) %] - [% biblio.pages %][% END %] >-- >2.1.4
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 17182
:
65101
|
65479
|
69648
|
69649