Bugzilla – Attachment 160458 Details for
Bug 33171
Add coded_location_qualifier, barcode, and enumchron to MarcItemFieldsToOrder
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33171: Add coded_location_qualifier, barcode, and enumchron to MarcItemFieldsToOrder
Bug-33171-Add-codedlocationqualifier-barcode-and-e.patch (text/plain), 8.25 KB, created by
Nick Clemens (kidclamp)
on 2024-01-03 12:29:20 UTC
(
hide
)
Description:
Bug 33171: Add coded_location_qualifier, barcode, and enumchron to MarcItemFieldsToOrder
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-01-03 12:29:20 UTC
Size:
8.25 KB
patch
obsolete
>From 7f19910c61322fdf9d366e258c903d325784efe5 Mon Sep 17 00:00:00 2001 >From: Kyle Hall <kyle@bywatersolutions.com> >Date: Wed, 8 Mar 2023 11:08:37 -0500 >Subject: [PATCH] Bug 33171: Add coded_location_qualifier, barcode, and > enumchron to MarcItemFieldsToOrder > >Some libraries would like to use the following item fields with the MarcItemFieldsToOrder system preference: >* coded_location_qualifier >* barcode >* enumchron > >Test Plan: >1) Set up MarcItemFieldsToOrder, verify it is functioning >2) Test coded_location_qualifier, barcode, and enumchron >3) Note the fields are imported and set for the items > >Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > acqui/addorderiso2709.pl | 34 +++++++++++-------- > .../prog/en/modules/acqui/addorderiso2709.tt | 12 +++++++ > .../admin/preferences/acquisitions.pref | 4 +-- > 3 files changed, 34 insertions(+), 16 deletions(-) > >diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl >index e79a0ae4472..8810c7990ee 100755 >--- a/acqui/addorderiso2709.pl >+++ b/acqui/addorderiso2709.pl >@@ -229,6 +229,9 @@ if ($op eq ""){ > my @itemprices = $input->multi_param('itemprice_' . $import_record->import_record_id); > my @replacementprices = $input->multi_param('replacementprice_' . $import_record->import_record_id); > my @itemcallnumbers = $input->multi_param('itemcallnumber_' . $import_record->import_record_id); >+ my @coded_location_qualifiers = $input->multi_param('coded_location_qualifier_' . $import_record->import_record_id); >+ my @barcodes = $input->multi_param('barcode_' . $import_record->import_record_id); >+ my @enumchrons = $input->multi_param('enumchron_' . $import_record->import_record_id); > my $itemcreation = 0; > > my @itemnumbers; >@@ -236,20 +239,23 @@ if ($op eq ""){ > $itemcreation = 1; > my $item = Koha::Item->new( > { >- biblionumber => $biblionumber, >- homebranch => $homebranches[$i], >- holdingbranch => $holdingbranches[$i], >- itemnotes_nonpublic => $nonpublic_notes[$i], >- itemnotes => $public_notes[$i], >- location => $locs[$i], >- ccode => $ccodes[$i], >- itype => $itypes[$i], >- notforloan => $notforloans[$i], >- uri => $uris[$i], >- copynumber => $copynos[$i], >- price => $itemprices[$i], >- replacementprice => $replacementprices[$i], >- itemcallnumber => $itemcallnumbers[$i], >+ biblionumber => $biblionumber, >+ homebranch => $homebranches[$i], >+ holdingbranch => $holdingbranches[$i], >+ itemnotes_nonpublic => $nonpublic_notes[$i], >+ itemnotes => $public_notes[$i], >+ location => $locs[$i], >+ ccode => $ccodes[$i], >+ itype => $itypes[$i], >+ notforloan => $notforloans[$i], >+ uri => $uris[$i], >+ copynumber => $copynos[$i], >+ price => $itemprices[$i], >+ replacementprice => $replacementprices[$i], >+ itemcallnumber => $itemcallnumbers[$i], >+ coded_location_qualifier => $coded_location_qualifiers[$i], >+ barcode => $barcodes[$i], >+ enumchron => $enumchrons[$i], > } > )->store; > push( @itemnumbers, $item->itemnumber ); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >index 35692ee15e5..3b3d6a85f97 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >@@ -374,6 +374,18 @@ > <label for="callnumber_item_[% item.item_id | html %]">callnumber</label> > <input type="text" id="callnumber_item_[% item.item_id | html %]" name="itemcallnumber_[% biblio.import_record_id | html %]" value="[% item.itemcallnumber | html %]"> > </li> >+ <li> >+ <label for="coded_location_qualifier_item_[% item.item_id | html %]">coded location qualifier</label> >+ <input type="text" id="coded_location_qualifier_item_[% item.item_id | html %]" name="coded_location_qualifier_[% biblio.import_record_id | html %]" value="[% item.coded_location_qualifier | html %]"> >+ </li> >+ <li> >+ <label for="barcode_item_[% item.item_id | html %]">barcode</label> >+ <input type="text" id="barcode_item_[% item.item_id | html %]" name="barcode_[% biblio.import_record_id | html %]" value="[% item.barcode | html %]"> >+ </li> >+ <li> >+ <label for="enumchron_item_[% item.item_id | html %]">enumchron</label> >+ <input type="text" id="enumchron_item_[% item.item_id | html %]" name="enumchron_[% biblio.import_record_id | html %]" value="[% item.enumchron | html %]"> >+ </li> > </ol> > </fieldset> > [% END # /FOREACH item %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref >index a29c7b9dd56..e9be332383c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref >@@ -82,8 +82,8 @@ Acquisitions: > - pref: MarcItemFieldsToOrder > type: textarea > syntax: text/x-yaml >- - "<p>You can use the following fields: homebranch, holdingbranch, itype, nonpublic_note, public_note, loc, ccode, notforloan, uri, copyno, price, replacementprice and itemcallnumber. Special fields: quantity and budget_code</p>" >- - "<p>For example:<br/>holdingbranch: 975$b<br/>itype: 975$9|975$z</p>" >+ - "You can use the following fields: homebranch, holdingbranch, itype, nonpublic_note, public_note, loc, ccode, notforloan, uri, copyno, price, replacementprice, itemcallnumber, coded_location_qualifier, barcode, and enumchron. Special fields: quantity and budget_code" >+ - "<br/>For example:<br/>holdingbranch: 975$b<br/>itype: 975$9|975$z" > - "<p>If a field is missing or not mapped, <a href=\"/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=MarcFieldsToOrder\">MarcFieldsToOrder</a> will be checked and used for that field (except quantity).</p>" > - > - pref: ClaimsBccCopy >-- >2.30.2
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 33171
:
147964
|
147966
|
153294
|
159331
|
159332
|
159333
|
159429
|
159430
| 160458 |
160459