@@ -, +, @@ display 1 - Apply patch, update database 2 - Edit/create a vendor in acquisitions 3 - Note new 'Vendor type' field, free text in editor 4 - Save a value 5 - Confirm it displays in vendor search results and vendor main page 6 - In Authorised values add a new value to 'VENDOR_TYPE' category 7 - Confirm the description of VENDOR_TYPE shows and makes sense 8 - Add/Edit a vendor, note the vendor type is now a dropdown selection 9 - Save with a value --- acqui/booksellers.pl | 1 + acqui/updatesupplier.pl | 1 + .../intranet-tmpl/prog/en/modules/acqui/booksellers.tt | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt | 8 +++++++- .../prog/en/modules/admin/authorised_values.tt | 2 ++ 5 files changed, 13 insertions(+), 1 deletion(-) --- a/acqui/booksellers.pl +++ a/acqui/booksellers.pl @@ -150,6 +150,7 @@ for my $vendor (@suppliers) { booksellerid => $vendor->id, name => $vendor->name, active => $vendor->active, + vendor_type => $vendor->vendor_type, basketcount => $vendor->baskets->count, subscriptioncount => $vendor->subscriptions->count, }; --- a/acqui/updatesupplier.pl +++ a/acqui/updatesupplier.pl @@ -76,6 +76,7 @@ $data{'address3'}=$addresses[2]; $data{'address4'}=$addresses[3]; $data{'phone'}=$input->param('company_phone'); $data{'accountnumber'}=$input->param('accountnumber'); +$data{'vendor_type'}=$input->param('vendor_type'); $data{'fax'}=$input->param('company_fax'); $data{'url'}=$input->param('website'); # warn "".$data{'contnotes'}; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt @@ -1,6 +1,7 @@ [% PROCESS 'i18n.inc' %] [% USE raw %] [% USE Asset %] +[% USE AuthorisedValues %] [% USE KohaDates %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] @@ -86,6 +87,7 @@ [% END %] + [% IF (supplier.vendor_type) %]([% AuthorisedValues.GetByCode( 'VENDOR_TYPE', supplier.vendor_type ) | html %])[% END %] [% IF ( !supplier.active ) %](inactive)[% END %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -172,7 +172,12 @@
  • -
  • + +
  • + + [% PROCESS 'av-build-dropbox.inc' name="vendor_type", category="VENDOR_TYPE", default=vendor_type, empty=1, size = 20 %] +
  • +
    Contacts @@ -316,6 +321,7 @@

    Vendor details

    +

    Type: [% vendor_type | html %]

    Company name: [% name | html %]

    Postal address: [% postal | html %]

    Physical address: [% address1 | html %][% address2 | html %][% address3 | html %][% address4 | html %]

    --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -548,6 +548,8 @@

    Terms to be used in Course Reserves module. Enter terms that will show in the drop down menu when setting up a Course reserve. (For example: Spring, Summer, Winter, Fall).

    [% CASE 'UPLOAD' %]

    Categories to be assigned to file uploads. Without a category an upload is considered temporary and may be removed during automated cleanup.

    + [% CASE 'VENDOR_TYPE' %] +

    Values that can be entered to fill in the 'Vendor type' field in the acquisitions module, that can be used for statistical purposes

    [% CASE 'WITHDRAWN' %]

    Description of a withdrawn item (appears when adding or editing an item)

    [% CASE 'YES_NO' %] --