Bugzilla – Attachment 147966 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), 7.82 KB, created by
Kyle M Hall (khall)
on 2023-03-08 16:20:05 UTC
(
hide
)
Description:
Bug 33171: Add coded_location_qualifier, barcode, and enumchron to MarcItemFieldsToOrder
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2023-03-08 16:20:05 UTC
Size:
7.82 KB
patch
obsolete
>From a1b46319cf6394398c5ada30a7254e953ab8779a 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 >--- > acqui/addorderiso2709.pl | 34 +++++++++++-------- > .../prog/en/modules/acqui/addorderiso2709.tt | 12 +++++++ > .../admin/preferences/acquisitions.pref | 2 +- > 3 files changed, 33 insertions(+), 15 deletions(-) > >diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl >index 36f06b7d5a..034dd551d9 100755 >--- a/acqui/addorderiso2709.pl >+++ b/acqui/addorderiso2709.pl >@@ -228,6 +228,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; >@@ -235,20 +238,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 8724346cb9..1e7b24464b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >@@ -329,6 +329,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="itembarcode_[% biblio.import_record_id | html %]" value="[% item.itembarcode | html %]"> >+ </li> >+ <li> >+ <label for="enumchron_item_[% item.item_id | html %]">enumchron</label> >+ <input type="text" id="enumchron_item_[% item.item_id | html %]" name="itemenumchron_[% biblio.import_record_id | html %]" value="[% item.itemenumchron | 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 3f0560aac5..233d15e05d 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 >@@ -70,7 +70,7 @@ Acquisitions: > - pref: MarcItemFieldsToOrder > type: textarea > syntax: text/x-yaml >- - "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" >+ - "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" > - > - 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