From 091d3100169a12e9498f6d58c8b61ac01a5a5db6 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Sat, 26 Mar 2011 18:24:19 -0400 Subject: [PATCH 01/15] Bug 3629 : search limit by group is not OK MT4491 : limitation by library group - the group list was not displayed in OPAC (even if everything else was here - the group limit was not working due to a missing () author=jean et group=droit" resulted in: author=jean and branch=b1 or branch=b2 or branch=b3 that is wrong (executed from left to right) the fix add () to have : author=jean and (branch=b1 or branch=b2 or branch=b3) that is OK Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- catalogue/search.pl | 2 +- .../opac-tmpl/prog/en/modules/opac-advsearch.tmpl | 10 +++++++++- opac/opac-search.pl | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index b22837ad83..968f2a1b2b 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -396,7 +396,7 @@ my @limits; @limits = split("\0",$params->{'limit'}) if $params->{'limit'}; if($params->{'multibranchlimit'}) { -push @limits, join(" or ", map { "branch: $_ "} @{GetBranchesInCategory($params->{'multibranchlimit'})}) ; + push @limits, '('.join( " or ", map { "branch: $_ " } @{ GetBranchesInCategory( $params->{'multibranchlimit'} ) } ).')'; } my $available; diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl index f7c2adf6cd..bd0752cd08 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl @@ -247,7 +247,15 @@ - + +

OR

+ +
diff --git a/opac/opac-search.pl b/opac/opac-search.pl index d22049f3fe..c145729d7e 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -317,7 +317,7 @@ my @limits; @limits = split("\0",$params->{'limit'}) if $params->{'limit'}; if($params->{'multibranchlimit'}) { -push @limits, join(" or ", map { "branch: $_ "} @{GetBranchesInCategory($params->{'multibranchlimit'})}) ; + push @limits, '('.join( " or ", map { "branch: $_ " } @{ GetBranchesInCategory( $params->{'multibranchlimit'} ) } ).')'; } my $available; From c83589e0e18e6eece98b3cfe713a646ab6b55c0f Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 29 Mar 2011 18:30:13 -0400 Subject: [PATCH 02/15] Bug 5687: Add pref StaffAuthorisedValueImages for staff search results This patch contains the functionality, not the install stuff. Revised: with input of Ian Walls: populate authorised_value_images only if needed; no changes anymore for template and search.pl. Signed-off-by: Ian Walls Signed-off-by: Chris Cormack --- C4/Search.pm | 2 +- .../prog/en/modules/admin/preferences/staff_client.pref | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 21c61fba1d..f618c6a081 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1482,7 +1482,7 @@ sub searchResults { # add imageurl to itemtype if there is one $oldbiblio->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} ); - $oldbiblio->{'authorised_value_images'} = C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $oldbiblio->{'biblionumber'}, $marcrecord ) ); + $oldbiblio->{'authorised_value_images'} = ($search_context eq 'opac' && C4::Context->preference('AuthorisedValueImages')) || ($search_context eq 'intranet' && C4::Context->preference('StaffAuthorisedValueImages')) ? C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $oldbiblio->{'biblionumber'}, $marcrecord ) ) : []; $oldbiblio->{normalized_upc} = GetNormalizedUPC( $marcrecord,$marcflavour); $oldbiblio->{normalized_ean} = GetNormalizedEAN( $marcrecord,$marcflavour); $oldbiblio->{normalized_oclc} = GetNormalizedOCLCNumber($marcrecord,$marcflavour); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref index 50dae66872..b65895481d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref @@ -68,6 +68,12 @@ Staff Client: choices: local: "included with Koha (faster, will work if internet goes down)." "http://yui.yahooapis.com/2.5.1/build": "from Yahoo's own servers (less demand on your servers)." + - + - pref: StaffAuthorisedValueImages + choices: + yes: Show + no: "Don't show" + - images for authorized values (such as lost statuses and locations) in search results. Options: - - pref: viewMARC From 5d43524cdbc2c9fa4b5de83dcb9d51f9a154efc2 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 29 Mar 2011 18:31:24 -0400 Subject: [PATCH 03/15] Bug 5687: Add pref StaffAuthorisedValueImages for staff search results (install) This patch contains only the install stuff. (Functionality in previous patch.) Rebased on March 28. Signed-off-by: Ian Walls Signed-off-by: Chris Cormack --- installer/data/mysql/de-DE/mandatory/sysprefs.sql | 1 + installer/data/mysql/en/mandatory/sysprefs.sql | 1 + .../fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql | 2 +- installer/data/mysql/it-IT/necessari/sysprefs.sql | 3 ++- installer/data/mysql/pl-PL/mandatory/sysprefs.sql | 1 + .../system_preferences_full_optimal_for_install_only.sql | 3 ++- .../system_preferences_full_optimal_for_install_only.sql | 1 + installer/data/mysql/updatedatabase.pl | 7 +++++++ 8 files changed, 16 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/de-DE/mandatory/sysprefs.sql b/installer/data/mysql/de-DE/mandatory/sysprefs.sql index 7b62465774..c9bf007296 100644 --- a/installer/data/mysql/de-DE/mandatory/sysprefs.sql +++ b/installer/data/mysql/de-DE/mandatory/sysprefs.sql @@ -299,3 +299,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo'); diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql index cb06622c10..64cb64d783 100644 --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ b/installer/data/mysql/en/mandatory/sysprefs.sql @@ -299,3 +299,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo'); diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql index 68d78a0c56..f3fac344b2 100644 --- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql +++ b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -301,4 +301,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo'); - +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo'); diff --git a/installer/data/mysql/it-IT/necessari/sysprefs.sql b/installer/data/mysql/it-IT/necessari/sysprefs.sql index 35116c1852..03700d5e26 100644 --- a/installer/data/mysql/it-IT/necessari/sysprefs.sql +++ b/installer/data/mysql/it-IT/necessari/sysprefs.sql @@ -285,4 +285,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('AllowPurchaseSuggestionBranchChoice', 0, 'Allow user to choose branch when making a purchase suggestion','1','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo'); diff --git a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql b/installer/data/mysql/pl-PL/mandatory/sysprefs.sql index 231e541ead..5a75e97a0c 100644 --- a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql +++ b/installer/data/mysql/pl-PL/mandatory/sysprefs.sql @@ -298,3 +298,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo'); diff --git a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql index af69408149..3d20f0e135 100644 --- a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql +++ b/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql @@ -352,4 +352,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('AllowPurchaseSuggestionBranchChoice', 0, 'Allow user to choose branch when making a purchase suggestion','1','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo'); \ No newline at end of file +INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo'); diff --git a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql index a72e79aa67..42baaaa6cb 100644 --- a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql +++ b/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql @@ -378,3 +378,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 23b5d6723b..afc0164224 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4134,6 +4134,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = '3.03.00.XXX'; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages', '1', '', NULL, 'YesNo')"); + print "Upgrade to $DBversion done (System pref StaffAuthorisedValueImages)\n"; + SetVersion ($DBversion); +} + =head1 FUNCTIONS =head2 DropAllForeignKeys($table) From 5a89ef7ea5733ba8c8ff4c49efebb3ab8d760eda Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 30 Mar 2011 19:36:20 +1300 Subject: [PATCH 04/15] Bug 5687 : Bumping database version --- installer/data/mysql/updatedatabase.pl | 2 +- kohaversion.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index afc0164224..6528a2a49b 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4134,7 +4134,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } -$DBversion = '3.03.00.XXX'; +$DBversion = '3.03.00.033'; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages', '1', '', NULL, 'YesNo')"); print "Upgrade to $DBversion done (System pref StaffAuthorisedValueImages)\n"; diff --git a/kohaversion.pl b/kohaversion.pl index 3fbc4e1b34..b7ab6cfc90 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts : use strict; sub kohaversion { - our $VERSION = '3.03.00.032'; + our $VERSION = '3.03.00.033'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install From f144af1a958acb36cf7bbf2b745e62a4656913d0 Mon Sep 17 00:00:00 2001 From: "Nicole C. Engard" Date: Tue, 29 Mar 2011 10:21:15 -0400 Subject: [PATCH 05/15] Bug 5940: Acq and Suggestion Help Files for 3.4 Signed-off-by: Nicole C. Engard Signed-off-by: Ian Walls Signed-off-by: Chris Cormack --- .../en/modules/help/acqui/acqcontract.tmpl | 19 ++++ .../en/modules/help/acqui/acqui-home.tmpl | 18 ++- .../prog/en/modules/help/acqui/basket.tmpl | 105 +++++++++++++++--- .../en/modules/help/acqui/basketgroup.tmpl | 12 ++ .../en/modules/help/acqui/basketheader.tmpl | 16 +++ .../en/modules/help/acqui/booksellers.tmpl | 59 +--------- .../en/modules/help/acqui/lateorders.tmpl | 18 +-- .../en/modules/help/acqui/neworderbiblio.tmpl | 15 +++ .../en/modules/help/acqui/neworderempty.tmpl | 17 +-- .../help/acqui/newordersuggestion.tmpl | 11 ++ .../en/modules/help/acqui/orderreceive.tmpl | 28 ++--- .../prog/en/modules/help/acqui/parcel.tmpl | 37 ++---- .../prog/en/modules/help/acqui/parcels.tmpl | 37 ++---- .../prog/en/modules/help/acqui/supplier.tmpl | 88 ++++++++------- .../en/modules/help/acqui/z3950_search.tmpl | 17 +++ .../modules/help/suggestion/suggestion.tmpl | 75 +++---------- 16 files changed, 308 insertions(+), 264 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/acqcontract.tmpl create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/basketgroup.tmpl create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/basketheader.tmpl create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/neworderbiblio.tmpl create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/newordersuggestion.tmpl create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/z3950_search.tmpl diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/acqcontract.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/acqcontract.tmpl new file mode 100644 index 0000000000..da0cf817ae --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/acqcontract.tmpl @@ -0,0 +1,19 @@ + + +

Vendor Contracts

+ +

You can define contracts (with a start and end date) and attach it to a vendor. This is used so that at the end of the year you can see how much you spent on a specific contract with a vendor. In some places, contracts are set up with a minimum and maximum yearly amount.

+ +

Add a Contract

+ +

At the top of a vendor search results page with only result or at the top of a vendor information page you will see a 'New Contract' button.

+ +

The contract form will ask for some very basic information about the contract.

+ +

Important: You will not be able to enter a contract retrospectively, the end date must not be before today's date.

+ +

Once the contract is saved it will appear below the vendor information.

+ +

It will also be an option when creating a basket.

+ + \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/acqui-home.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/acqui-home.tmpl index 278302d355..8b0c0e05b9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/acqui-home.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/acqui-home.tmpl @@ -1,17 +1,13 @@ -

Acquisitions Help

+

Acquisitions

-

What is Acquisitions?

The Koha Acquisitions module provides a way where the library can record orders placed with vendors and manage purchase budgets.

-

You do not need to use Acquisitions to add items to your catalog. If you do not want to track orders and budget expenditure, then use the "Add MARC" feature in Cataloging to add new bibliographic and item records.

-

How to place an order?

+

You do not need to use Acquisitions to add items to your catalog, Acquisitions is used only to track vendors and spending against your budgets.

-

To place an order, the first step is to locate your Vendor (supplier). If no Vendor exists, you will need to create one. Once you have a Vendor you can place an order.

What needs to be setup to use Acquisitions?

-

To make the most of acquisitions the following needs to be setup under System Administration

-
    -
  • Budgets and Funds - "Funds" are used to group "Budgets". For example a Fund may be called "General Stack", and will have a "Budget" which records the amount availalbe to spend during the period of the budget. A budget must have a start and end date.
  • -
  • Exchange Rates (optional)- If making purchases in overseas currency, the exchange rate will need to be set realtive to your local currency. Remember that your local currency should be set to 1.00
    NOTE: Exchanges Rates need to be updated manually.
  • -
  • Vendor(s) - These are the entities where items are purchased, or donated from. Orders are placed with Vendors.
  • -
\ No newline at end of file +

Before using the Acquisitions Module you will want to make sure that you have completed all of the set up.

+ +

First, set your Acquisitions System Preferences and Acquisitions Administration to match your library's workflow.

+ + \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/basket.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/basket.tmpl index 5b7799a3c8..99d97a0298 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/basket.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/basket.tmpl @@ -1,20 +1,95 @@ -

Placing an Order Help

+

Placing an Order

-

What is a Basket and Order?

-

A Basket is used to group a set of order lines. An order is placed for an individual item.

-

An Order can have multiple copies/units placed against it. A Basket can have multiple Orders.

+

Once your basket is created you are presented with several options for adding items to the order.

-

How do I add Items to an Order?

-
    -
  1. From an existing record - Use the search to locate the bibliographic record of the item that you wish to order more copies of.
  2. -
  3. From A Suggestion - view suggestions placed by Patrons and add to the item to the basket.
  4. -
  5. From a new (empty) record - If you know that the item is not in the library already, then create a new record from scratch.
  6. -
- -

TIP: Always check your Catalog first

-

It is highly advisable that you get in the habit of checking the catalog first before placing an order for a new item. This saves unnecessary duplicate bibliographic records in your database and any need to merge/deduplicate records.

+
    +
  • If you are ordering another copy of an existing item, you can simply search for the record in your system +
      +
    • From the results, simply click 'Order' to be brought to the order form +
        +
      • All of the details associated with the item will already be listed under 'Catalog details'
      • +
      +
    • +
    +
  • +
  • If you allow patrons to make purchase suggestions (learn more in the Managing Suggestions section of this manual) then you can place orders from those suggestions +
      +
    • +
        +
      • From this form you can make changes to the Catalog Details if necessary
      • +
      +
    • +
    +
  • +
  • To order from a record that can't be found anywhere else, choose the 'From a new (empty) record' +
      +
    • You will be presented with an empty form to fill in all of the necessary details about the item you are ordering
    • +
    +
  • +
  • If you want to search other libraries for an item to purchase you can use the 'From an external source' option which will allow you to order from a MARC record found via a Z39.50 search +
      +
    • From the results click the Order link next to the item you want to purchase
    • +
    • If the item you're ordering from an external source looks like it might be a duplicate, Koha will warn you and give you options on how to proceed +
        +
      • From the warning you can choose to just order another copy on the existing bib record, create a new bib record, or cancel your order of this item.
      • +
      +
    • +
    • In the order form that pops up you will not be able to edit the catalog details
    • +
    +
  • +
  • The final option for ordering is to order from a staged record (learn more about staging records) +
      +
    • From the list of files you are presented with, choose the 'Add orders' link +
        +
      • From the list of records, click 'Add order' next to the item you want to add to your order +
          +
        • From the order form you will not be able to edit the catalog details.
        • +
        +
      • +
      +
    • +
    +
  • +
-

Do I have to "Close" a Basket?

-

No, this is not necessary, you will still be able to mark items received without closing a basket. Closing a basket is good practice for keeping track of late orders which is discussed in this manual.

\ No newline at end of file +

Once you have entered the info about the item you need to enter the Accounting information.

+ +
    +
  • Quantity is populated by the number of items you've added to the order above
  • +
  • The list of funds is populated by the funds you have assigned in the Acquisitions Administration area.
  • +
  • The vendor price will be used to calculate the rest of the amount fields below
  • +
  • If the price is uncertain, check the uncertain price box. +
      +
    • A basket with at least one uncertain price can't be closed
    • +
    +
  • +
  • If you added Planning Values when creating the Fund those values will appear in the two planning value fields
  • +
+ +

Once an item is added to the basket you will be presented with a basket summary.

+ +

From here you can edit or remove the items you have added.

+ +

Also on the summary page you have the option to edit the information you entered about the basket by clicking the 'Edit basket header information' button, deleting the basket altogether by clicking the 'Delete this basket' button, or exporting your basket as a CSV file by clicking the 'Export this basket as CSV' button.

+ +

Once you're sure your basket is complete you can click 'Close this basket' button to indicate that this basket is complete and has been sent to the vendor.

+ +

Important: A basket with at least one items marked as 'uncertain price' will not be able to be closed

+ +

Clicking the 'Uncertain Prices' button will up a list of items with uncertain prices to quick editing.

+ +

Important: The Uncertain Prices page is independent of the basket, it is linked to the vendor, so you will see all items on order for this vendor with uncertain prices.

+ +

Printing Baskets

+ +

When you are finished adding items to your basket you want to click 'Close this Basket'

+ +

You will be asked if you want to create a purchase order at this time.

+ +

Your completed order will be listed on the Basket Grouping page for the printing or further modification.

+ +

Clicking 'Print' below your order will generate a PDF for printing. The PDF will have all of your library information followed by the items in your order.

+ + \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/basketgroup.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/basketgroup.tmpl new file mode 100644 index 0000000000..b43f0f58d8 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/basketgroup.tmpl @@ -0,0 +1,12 @@ + + +

Basket Groups

+ +

A basket group is a group of closed baskets that you can perform actions on.

+ +

Create a basket group

+ +

A basket group is simply a group of baskets. In some libraries, you have several staff members that create baskets, and, at the end of a period of time, someone then groups them together to send to the vendor in bulk. That said, it is possible to have one basket in a basket group if that's the workflow used in your library.

+ + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/basketheader.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/basketheader.tmpl new file mode 100644 index 0000000000..48cde6e607 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/basketheader.tmpl @@ -0,0 +1,16 @@ + + +

Adding a Basket

+ +

When adding a basket you want to give it a name that will help you identify it later. The notes fields are optional and can contain any type of information.

+ +

If you have added contracts to the vendor you're ordering from, you will also have an option to choose which contract you're ordering these items under.

+ +

When finished, click 'Save'

+ +

Editing Basket Headers

+ +

After creating your basket you can edit the name of the basket, the notes associated with it and the contract you're ordering against.

+ + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/booksellers.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/booksellers.tmpl index 7a16728b0e..effa75922e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/booksellers.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/booksellers.tmpl @@ -1,58 +1,9 @@ -

Ordering

-
    -
  • Click 'New order'
  • -
  • You can add a new order from a book you already have in your catalog, a suggestion from a patron or an empty form. -
      -
    • - -TIP: For instructions on ordering from a suggestion see 'Managing Suggestions' in this manual
    • -
  • -
  • To order from an existing record, search for the record in your system
  • -
  • To order a new book, click 'From a new (empty) record'
  • -
  • Fill in the fields for your order. -
      -
    • - -TIP: After entering a quantity and vendor price, the other fields will be calculated automatically.
    • -
    • -Actual Cost will be used to subtract from your budgets (whereas the other fees will be used when calculating replacement costs)
    • -
  • -
  • After clicking 'Save' you will be brought to an order summary
  • -
  • If you are done adding to that order, click the 'Close this basket' link -
      -
    • - -TIP: This is not necessary, you will still be able to mark items received without closing a basket.  Closing a basket is good practice for keeping track of late orders which is discussed in this manual.
    • -
  • -
-

- Receiving OrdersAfter your orders have been entered into the system and sent off to the vendors, you will need to mark them received. - -TIP: To receive serials see the 'Receiving Serials' part of this manual.

-
    -
  • To receive an order click 'Receive Shipment'
  • -
  • Enter the invoice number is 'Vendor invoice' and the shipment date in 'Shipment date'
  • -
  • Click 'Save'
  • -
  • You'll need to choose which items arrived in this shipment
  • -
  • Either search by title or ISBN or click 'Receive order' next to the item you'd like to mark as received
  • -
  • Be sure to update the 'Quantity received' as well as any other information you need for your records -
      -
    • - -TIP: To add another received item, click the '+' (plus) icon at the bottom left.  If you add too many click the '-' (minus) to the right of the '+' (plus)
    • -
  • -
  • Click 'Save'
  • -
  • You will now see the received items in the summary of 'Items in this shipment'
  • -
  • When you've added all of the items to your shipment you can browse away from the page. -
      -
    • To make edits to your shipment return to Acquisitions and search for the vendor in question. -
        -
      • Click the 'Receive Parcel' button
      • -
      • Your previous orders will be searchable and editable from here
      • -
    • -
  • -
+

Vendor Search

+ +

At the top of the various Acquisition pages there is a quick search box where you can perform either a Vendor Search or an Order Search.

+ +

In the Vendor Search you can enter any part of the vendor name to get results.

\ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/lateorders.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/lateorders.tmpl index 70ff67f132..2ae604450a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/lateorders.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/lateorders.tmpl @@ -1,13 +1,15 @@ -

Late Orders

-

-Late orders is a report that checks for orders that were placed X days ago and still haven't been marked as received. -

-
    -
  • Click on 'Late Orders' on the menu on the left
  • -
  • You will be presented with a list of orders with baskets that have been closed for 30+ days
  • -
+

Claims & Late Orders

+

If you have entered in an email address for the vendors in your system you can send them claim emails when an order is late. Before you can send claims you will need to set up an acquisitions claim notice.

+ +

Upon clicking on the link to 'Late Orders' from the Acquisitions page you will be presented with a series of filter options on the left hand side.

+ +

Once you filter your orders to show you the things you consider to be late you will be presented with a list of these items.

+ +

To the right of each late title you will be see a checkbox. Check off the ones you want a claim letter sent to and click 'Claim Order.' This will automatically send an email to the vendor at the email address you have on file.

+ +

If you would rather use a different acquisition claim letter (other than the default) you can create that in the notices module and choose it from the menu above the list of late items.

\ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/neworderbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/neworderbiblio.tmpl new file mode 100644 index 0000000000..e37523a3f7 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/neworderbiblio.tmpl @@ -0,0 +1,15 @@ + + +

Order from an Existing Record

+ +

If you are ordering another copy of an existing item, you can simply search for the record in your system

+ +
    +
  • From the results, simply click 'Order' to be brought to the order form +
      +
    • All of the details associated with the item will already be listed under 'Catalog details'
    • +
    +
  • +
+ + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/neworderempty.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/neworderempty.tmpl index 85af6a9c02..0cd90a02e5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/neworderempty.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/neworderempty.tmpl @@ -1,18 +1,11 @@ -

Order Details Help

+

Order from a New Empty Record

-

What is the "Vendor Price"?

-

The vendor price is the price given to you by the vendor, sometimes called the "List Price". Depending on how the Vendor is setup this may or maynot include any discount given to you by the vendor and/or any sales tax. See Vendors for more information.

+

To order from a record that can't be found anywhere else, choose the 'From a new (empty) record'

-

What is the "Replacement Price"?

-

The replacement price is the total cost of what it would cost to replace the item if you had to purchase the item retail at recommended retail. This is the amount that a patron could be charged if item is lost or damaged beyond repair.

- -

What is the "Budgeted Price"?

-

This is the price you expect to pay for the item, including any discount and any relevant sales tax (depending on the vendor setup) and is the amount that will be charged to your Committed budget.

- -

What is the "Actual Price"?

-

This is the price that shows on the invoice or packing slip when you receive the item. When placing an order, Koha will automatically calculate this for you. When an item is received, this can be over keyed with the actual value. This is to take into account any slight differences in rounding or price fluctuations between ordering the item and actually recieving it.

-

The Actual price is what is committed to your Spent budget.

+
    +
  • You will be presented with an empty form to fill in all of the necessary details about the item you are ordering
  • +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/newordersuggestion.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/newordersuggestion.tmpl new file mode 100644 index 0000000000..b7075c70e5 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/newordersuggestion.tmpl @@ -0,0 +1,11 @@ + + +

Order from Purchase Suggestion

+ +

If you allow patrons to make purchase suggestions then you can place orders from those suggestions

+ +
    +
  • From this form you can make changes to the Catalog Details if necessary
  • +
+ + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/orderreceive.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/orderreceive.tmpl index e74243668a..dcf43f7aad 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/orderreceive.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/orderreceive.tmpl @@ -1,21 +1,17 @@ -

Receiving Orders Help

+

Receiving Orders

-

How do I receive items that have arrived?

-

Firstly, check the catalog details that you are recieiving the right item. If these are correct, you can add the item details.

-

For each item you will need to check the following:

-
    -
  • Volume/Copy for Serials
  • -
  • Item Barcode scan or enter the barcode that has been assigned to the item
  • -
  • Home Library choose the home library for the item from the drop down list
  • -
  • Item Type choose the item type from the drop down.
  • -
- -

How do I receive multiple identical items?

-

If you have ordered multiple copies of the same item, then use the "+" to bring up another Item Details input fieldset.

-

For each copy you will need to set that Item Barcode, Home Library and Item Type.

-

Each time you add a new item, the Quantity Received under Accounting Details should be updated.

-

If you press the "+" by mistake, use the "-" button to remove the unwanted Item Details input fieldset

+

Orders can be received from the vendor information page or the vendor search results page.

+ +

After clicking 'Receive shipment' you will be asked to enter a vendor invoice number and a shipment received date.

+ +

The receive page will list all items still on order with the vendor regardless of the basket the item is from.

+ +

To receive a specific item, click the 'Receive' link to the right of the item.

+ +

From this form you can alter the cost information. You can also choose to only receive 1 of multiple items if only 1 arrived. Once you have made any changes necessary, click 'Save' to mark the item as received.

+ +

You will also see that the item is received if you view the basket.

\ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/parcel.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/parcel.tmpl index 59877f9547..841136b3a1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/parcel.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/parcel.tmpl @@ -1,30 +1,17 @@

Receiving Orders

-

After your orders have been entered into the system and sent off to the vendors, you will need to mark them received. -TIP: To receive serials see the 'Receiving Serials' part of this manual.

-
    -
  • To receive an order click 'Receive Shipment'
  • -
  • Enter the invoice number is 'Vendor invoice' and the shipment date in 'Shipment date'
  • -
  • Click 'Save'
  • -
  • You'll need to choose which items arrived in this shipment
  • -
  • Either search by title or ISBN or click 'Receive order' next to the item you'd like to mark as received
  • -
  • Be sure to update the 'Quantity received' as well as any other information you need for your records -
      -
    • - -TIP: To add another received item, click the '+' (plus) icon at the bottom left.  If you add too many click the '-' (minus) to the right of the '+' (plus)
    • -
  • -
  • Click 'Save'
  • -
  • You will now see the received items in the summary of 'Items in this shipment'
  • -
  • When you've added all of the items to your shipment you can browse away from the page. -
      -
    • To make edits to your shipment return to Acquisitions and search for the vendor in question.
      -
        -
      • Click the 'Receive Parcel' button
      • -
      • Your previous orders will be searchable and editable from here
      • -
    • -
  • -
+ +

Orders can be received from the vendor information page or the vendor search results page.

+ +

After clicking 'Receive shipment' you will be asked to enter a vendor invoice number and a shipment received date.

+ +

The receive page will list all items still on order with the vendor regardless of the basket the item is from.

+ +

To receive a specific item, click the 'Receive' link to the right of the item.

+ +

From this form you can alter the cost information. You can also choose to only receive 1 of multiple items if only 1 arrived. Once you have made any changes necessary, click 'Save' to mark the item as received.

+ +

You will also see that the item is received if you view the basket.

\ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/parcels.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/parcels.tmpl index f7b2eddaa2..f1dd6b3ac2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/parcels.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/parcels.tmpl @@ -2,29 +2,16 @@

Receiving Orders

-

After your orders have been entered into the system and sent off to the vendors, you will need to mark them received.

+

Orders can be received from the vendor information page or the vendor search results page.

-
    -
  • You must first pick a vendor
  • -
  • After searching for a vendor you will see all open orders on a summary page
  • -
  • To receive an order click 'Receive order' (link) or 'Receive Parcel' (button)
  • -
  • Enter the invoice number is 'Vendor invoice' and the shipment date in 'Shipment date'
  • -
  • Click 'Save'
  • -
  • You'll need to choose which items arrived in this shipment
  • -
  • Either search by title or ISBN or click 'Receive order' next to the item you'd like to mark as received
  • -
  • Be sure to update the 'Quantity received' as well as any other information you need for your records -
      -
    • - -TIP: To add another received item, click the '+' (plus) icon at the bottom left. If you add too many click the '-' (minus) to the right of the '+' (plus)
    • -
  • -
  • Click 'Save'
  • -
  • You will now see the received items in the summary of 'Items in this shipment'
  • -
  • When you've added all of the items to your shipment you can browse away from the page. -
      -
    • To make edits to your shipment return to Acquisitions and search for the vendor in question.
    • -
    • Click the 'Receive Parcel' button
    • -
    • Your previous orders will be searchable and editable from here
    • -
  • -
- \ No newline at end of file +

After clicking 'Receive shipment' you will be asked to enter a vendor invoice number and a shipment received date.

+ +

The receive page will list all items still on order with the vendor regardless of the basket the item is from.

+ +

To receive a specific item, click the 'Receive' link to the right of the item.

+ +

From this form you can alter the cost information. You can also choose to only receive 1 of multiple items if only 1 arrived. Once you have made any changes necessary, click 'Save' to mark the item as received.

+ +

You will also see that the item is received if you view the basket.

+ + \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/supplier.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/supplier.tmpl index bc169d1ac6..20783841c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/supplier.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/supplier.tmpl @@ -1,43 +1,51 @@ -

Creating a vendor

+

Vendors

-
    -
  • Search for the vendor you want by using the 'Vendor Search' at the top.
  • -
  • If 'no results found', click on 'New Vendor'.
  • -
  • Enter the contact information for your vendor -
      -
    • - -TIP: Only the 'Company Name' is required but the more contact information you provide, the easier it will be to contact vendors when necessary
    • -
  • -
  • Enter additional infomration for your vendor -
      -
    • Active/Inactive
      -
        -
      • Orders can only be placed against Active vendors.
      • -
      • - -TIP: Mark vendors inactive if you no longer order from them or if they merged with another vendor, but you want to keep the data of your orders with them
      • -
    • -
    • Preferred publishers
      -
        -
      • This is for information only and is a space where you can record what the vendor sells
      • -
    • -
    • List Prices/Invoice Prices
      -
        -
      • If using multiple currencies you will need to pick which currency the totals are in when listed by the vendor and on the invoice.
      • -
      • - -TIP: Some vendors will list the prices in their own currency, but bill in your currency
      • -
    • -
    • Discount
      -
        -
      • Some vendors will offer a blanket discount to all orders placed with them, this will be calculated from their list price.
      • -
    • -
    • Notes -
        -
      • Include any notes that you may want to record for internal purposes.
      • -
    • -
  • -
\ No newline at end of file +

Before any orders can be places you must first enter at least one vendor.

+ +

Add a Vendor

+ +

To add a vendor click the 'New Vendor' button on the Acquisitions page.

+ +

The vendor add form is broken into three pieces.

+ +
    +
  • The first section is for basic information about the Vendor +
      +
    • Of these fields, only the Vendor name is required, the rest of the information should be added to help with generating claim letters and invoices
    • +
    +
  • +
  • The second section is for information regarding your contact at the Vendor's office +
      +
    • None of these fields are required, they should only be entered if you want to keep track of your contact's information within Koha
    • +
    +
  • +
  • The final section is for billing information +
      +
    • To be able to order from a vendor you must make them 'Active'
    • +
    • For List Prices and Invoice Prices choose the currency +
        +
      • Currencies are assigned in the Currencies & Exchange Rates admin area
      • +
      +
    • +
    • If the vendor offers a consistent blank discount, enter that in the 'Discount' field +
        +
      • You can enter item specific discounts when placing an order
      • +
      +
    • +
    • GST rate is for any tax the vendor may charge
    • +
    • Notes are for internal use
    • +
    +
  • +
+ +

View/Edit a Vendor

+ +

To view a vendor's information page you must search for the vendor from the Acquisitions home page. Your search can be for any part of the Vendor's name.

+ +

From the results, click on the name of the vendor you want to view or edit.

+ +

To make changes to the vendor, simply click the 'Edit' button.

+ + \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/z3950_search.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/z3950_search.tmpl new file mode 100644 index 0000000000..61571747d2 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/z3950_search.tmpl @@ -0,0 +1,17 @@ + + +

Order from an External Source

+ +

If you want to search other libraries for an item to purchase you can use the 'From an external source' option which will allow you to order from a MARC record found via a Z39.50 search

+ +
    +
  • From the results click the Order link next to the item you want to purchase
  • +
  • If the item you're ordering from an external source looks like it might be a duplicate, Koha will warn you and give you options on how to proceed +
      +
    • From the warning you can choose to just order another copy on the existing bib record, create a new bib record, or cancel your order of this item.
    • +
    +
  • +
  • In the order form that pops up you will not be able to edit the catalog details
  • +
+ + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/suggestion/suggestion.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/suggestion/suggestion.tmpl index 9089b01d6b..3a5a3967bb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/suggestion/suggestion.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/suggestion/suggestion.tmpl @@ -1,65 +1,24 @@ -

Suggestions Management

-

What are Purchase Suggestions?

-

-Purchase suggestions give the users of the OPAC a way to lodge requests for the library to purchase for items. -

-

-IMPORTANT: To use this feature, purchase suggestions need to be turned on in -system preferences.
+

Purchase Suggestions

-

-
    -
  • Get there: More > Administration > Global System Preferences > OPAC > suggestion
  • -
-IMPORTANT: Suggestions are only managed here if the emailPurchaseSuggestions preference is turned off.
+

Depending on your settings in the suggestion system preference, patrons may be able to make purchase suggestions via the OPAC. When a suggestion is waiting for library review, it will appear on the Acquisitions home page in the list of links on the left of the page.

-
    -
  • Get there: More > Administration > Global System Preferences > Acquisitions > emailPurchaseSuggestions
  • -
-

Manage Suggestions
-

-

-To manage suggestions, go to More > Acquisitions -

-
    -
  • Click 'Manage suggestions'
  • -
  • If you have suggestions to manage they will appear here -
  • -
  • IMPORTANT: You need to have authorized values for 'Reason' already set before working with suggestions
  • -
      -
    • TIP: Reasons are the librarian's reason for accepting/rejecting request
    • -
    • If reasons are not set the Suggestions page will look like this:
      -
    • -
    • If you get this error, click 'authorized values' -
        -
      • TIP: You can also edit these values by going to More > Administration > Authorized Values
      • -
      -
    • -
    • Choose SUGGEST from the pull down -
      -
    • -
    • Enter a short 'Authorized value' and a longer 'Description' (this second field is optional)
      -
    • -
    • This will result in a list of values that can be added to or edited at any time -
      -
    • -
    • It will also add these values to the pull down on the manage suggestions page -
      -
    • -
    -
  • If there are no errors, continue to approving or rejecting the request and submitting a reason -
    -
  • -
  • TIP: By choosing 'Others...' from the reason pull down you will be able to enter a free text reason.
    -
  • -
  • After choosing your reason, click 'Change Status'
  • -
  • TIP: Statuses can be updated in bulk by choosing from the pull down at the bottom and clicking 'Mark all with this reason'
    -
  • -
  • The item will be moved to the 'Accepted' or 'Rejected' menu
  • -
  • If you accidentally pick the wrong option (accept or reject) you can always edit your selection by visiting the appropriate tab
  • -
+

Clicking 'Manage suggestions' will take you to the suggestion management tool. If there are no pending suggestions you can access the suggestion management tool by clicking the 'Manage suggestions' link on the menu on the left of the Acquisitions page.

+ +

Your suggestions will be sorted into three categories: Accepted, Pending, and Rejected. Each accepted or rejected suggestion will show the name of the librarian who managed the suggestion and the reason they gave for accepting or rejecting it (found under 'Status').

+ +

For libraries with lots of suggestions, there are filters on the left hand side of the Manage Suggestions page to assist in limiting the number of titles displayed on the screen.

+ +

Clicking on the blue headings will expand the filtering options and clicking '[clear]' will clear all filters and show all suggestions.

+ +

When reviewing 'Pending' suggestions you can choose to check the box next to the item(s) you want to approve/reject and then choose the status and reason for your selection. You can also choose to completely delete the suggestion by checking the 'Delete selected' box.

+ +

Reasons for accepting and rejecting suggestions are defined by the SUGGEST authorized value.

+ +

If you choose 'Others...' as your reason you will be prompted to enter your reason in a text box. Clicking 'Cancel' to the right of the box will bring back the pull down menu with authorized reasons.

+ +

Once you have clicked 'Submit' the suggestion will be moved to the matching tab. The status will also be updated on the patron's account in the OPAC and an email notice will be sent to the patron using the template that matches the status you have chosen.

From 813f5c3f5164707041fcaa90839f4368355eb8e9 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Tue, 29 Mar 2011 12:04:21 -0400 Subject: [PATCH 06/15] Bug 5964 : Translation problem on aqbudgets.tmpl Signed-off-by: Owen Leonard Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl index 39e341a637..fbf66e0e7b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl @@ -411,7 +411,9 @@ From 51604b548756fbf74620061a779d0182167c36f3 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Sat, 26 Mar 2011 06:01:51 -0400 Subject: [PATCH 07/15] Bug 4393: Scan Indexes results cannot be sorted Because of the way Scan Indexes works, the results cannot be sorted. Previously when any sort other than relevance (or in some cases popularity) was used, the search failed. This patch disables sorting on Scan results. This patch also fixes the index selection dropdown on the results page, which was not being populated correctly from the Advanced Search screen. Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- C4/Search.pm | 2 +- catalogue/search.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index f618c6a081..f970caf5c2 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -391,7 +391,7 @@ sub getRecords { warn "Ignoring unrecognized sort '$sort' requested" if $sort_by; } } - if ($sort_by) { + if ($sort_by && !$scan) { if ( $results[$i]->sort( "yaz", $sort_by ) < 0 ) { warn "WARNING sort $sort_by failed"; } diff --git a/catalogue/search.pl b/catalogue/search.pl index 968f2a1b2b..b1a0b4fe1d 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -383,7 +383,7 @@ my @indexes; @indexes = split("\0",$params->{'idx'}); # if a simple index (only one) display the index used in the top search box -if ($indexes[0] && !$indexes[1]) { +if ($indexes[0] && (!$indexes[1] || $params->{'scan'})) { $template->param("ms_".$indexes[0] => 1);} From 84e43e06155e107e3965f06ea5ba37cc5d1b7d30 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 26 Mar 2011 14:26:47 -0400 Subject: [PATCH 08/15] Fix for Bug 5971, Minor markup error in holds queue report Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- .../intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tmpl index c21bc945e9..1464d43c18 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tmpl @@ -57,9 +57,9 @@ - Only Item: + Only Item: -
or Any available + or any available

#reserves">, ()

From 735d986a0c976a888948ddd912917ad091267b7e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 26 Mar 2011 11:06:51 -0400 Subject: [PATCH 09/15] Fix for Bug 5972 - DisplayClearScreenButton preference introduces invalid markup Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index dc7ed5f412..4d509c3dd3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -415,7 +415,7 @@ No patron matched
- + From 268f860e24171f3c5fe5f4b2c4a752e7c5abd5c1 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Sat, 26 Mar 2011 18:17:58 -0400 Subject: [PATCH 10/15] Bug 5982 : OPAC Serials Minor change in description Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index 468e90f78a..95a8fed1e3 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -582,7 +582,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () {

At library:

At branch:

-

Issues between: and: now (current)

+

Subscription from: to: now (current)

Missing issues:

()

From 88cb47339a8eab4ff4b95956207bf2d1dcdffeff Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Tue, 29 Mar 2011 09:57:41 -0400 Subject: [PATCH 11/15] Bug 5708 : Get Correct Discount when levying rentalcharge Branch can be a parameter so it should be included in the rule retrieval Need to select the most appropriate rule from those returned (was defaulting to first returned!) Try to make what's happening a bit less opaque null fields are returned as undefined not 'NULL' by DBI Signed-off-by: Owen Leonard Signed-off-by: Chris Cormack --- C4/Circulation.pm | 87 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 63 insertions(+), 24 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 516a111dd7..625a31ed07 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2307,39 +2307,78 @@ sub GetIssuingCharges { my $item_type; # Get the book's item type and rental charge (via its biblioitem). - my $qcharge = "SELECT itemtypes.itemtype,rentalcharge FROM items - LEFT JOIN biblioitems ON biblioitems.biblioitemnumber = items.biblioitemnumber"; - $qcharge .= (C4::Context->preference('item-level_itypes')) - ? " LEFT JOIN itemtypes ON items.itype = itemtypes.itemtype " - : " LEFT JOIN itemtypes ON biblioitems.itemtype = itemtypes.itemtype "; - - $qcharge .= "WHERE items.itemnumber =?"; - - my $sth1 = $dbh->prepare($qcharge); - $sth1->execute($itemnumber); - if ( my $data1 = $sth1->fetchrow_hashref ) { - $item_type = $data1->{'itemtype'}; - $charge = $data1->{'rentalcharge'}; - my $q2 = "SELECT rentaldiscount FROM borrowers + my $charge_query = 'SELECT itemtypes.itemtype,rentalcharge FROM items + LEFT JOIN biblioitems ON biblioitems.biblioitemnumber = items.biblioitemnumber'; + $charge_query .= (C4::Context->preference('item-level_itypes')) + ? ' LEFT JOIN itemtypes ON items.itype = itemtypes.itemtype' + : ' LEFT JOIN itemtypes ON biblioitems.itemtype = itemtypes.itemtype'; + + $charge_query .= ' WHERE items.itemnumber =?'; + + my $sth = $dbh->prepare($charge_query); + $sth->execute($itemnumber); + if ( my $item_data = $sth->fetchrow_hashref ) { + $item_type = $item_data->{itemtype}; + $charge = $item_data->{rentalcharge}; + my $branch = C4::Branch::mybranch(); + my $discount_query = q|SELECT rentaldiscount, + issuingrules.itemtype, issuingrules.branchcode + FROM borrowers LEFT JOIN issuingrules ON borrowers.categorycode = issuingrules.categorycode WHERE borrowers.borrowernumber = ? - AND (issuingrules.itemtype = ? OR issuingrules.itemtype = '*')"; - my $sth2 = $dbh->prepare($q2); - $sth2->execute( $borrowernumber, $item_type ); - if ( my $data2 = $sth2->fetchrow_hashref ) { - my $discount = $data2->{'rentaldiscount'}; - if ( $discount eq 'NULL' ) { - $discount = 0; - } + AND (issuingrules.itemtype = ? OR issuingrules.itemtype = '*') + AND (issuingrules.branchcode = ? OR issuingrules.branchcode = '*')|; + my $discount_sth = $dbh->prepare($discount_query); + $discount_sth->execute( $borrowernumber, $item_type, $branch ); + my $discount_rules = $discount_sth->fetchall_arrayref({}); + if (@{$discount_rules}) { + # We may have multiple rules so get the most specific + my $discount = _get_discount_from_rule($discount_rules, $branch, $item_type); $charge = ( $charge * ( 100 - $discount ) ) / 100; } - $sth2->finish; } - $sth1->finish; + $sth->finish; # we havent _explicitly_ fetched all rows return ( $charge, $item_type ); } +# Select most appropriate discount rule from those returned +sub _get_discount_from_rule { + my ($rules_ref, $branch, $itemtype) = @_; + my $discount; + + if (@{$rules_ref} == 1) { # only 1 applicable rule use it + $discount = $rules_ref->[0]->{rentaldiscount}; + return (defined $discount) ? $discount : 0; + } + # could have up to 4 does one match $branch and $itemtype + my @d = grep { $_->{branchcode} eq $branch && $_->{itemtype} eq $itemtype } @{$rules_ref}; + if (@d) { + $discount = $d[0]->{rentaldiscount}; + return (defined $discount) ? $discount : 0; + } + # do we have item type + all branches + @d = grep { $_->{branchcode} eq q{*} && $_->{itemtype} eq $itemtype } @{$rules_ref}; + if (@d) { + $discount = $d[0]->{rentaldiscount}; + return (defined $discount) ? $discount : 0; + } + # do we all item types + this branch + @d = grep { $_->{branchcode} eq $branch && $_->{itemtype} eq q{*} } @{$rules_ref}; + if (@d) { + $discount = $d[0]->{rentaldiscount}; + return (defined $discount) ? $discount : 0; + } + # so all and all (surely we wont get here) + @d = grep { $_->{branchcode} eq q{*} && $_->{itemtype} eq q{*} } @{$rules_ref}; + if (@d) { + $discount = $d[0]->{rentaldiscount}; + return (defined $discount) ? $discount : 0; + } + # none of the above + return 0; +} + =head2 AddIssuingCharge &AddIssuingCharge( $itemno, $borrowernumber, $charge ) From 48ee1dcb3f835fb8250bcdd781085521411e6c26 Mon Sep 17 00:00:00 2001 From: Ian Walls Date: Mon, 28 Mar 2011 10:21:02 -0400 Subject: [PATCH 12/15] Bug 5547: Hide Lost Items dev Adds a Hide Lost Items option to the staff client, as detailed in the enhancement request at http://wiki.koha-community.org/wiki/Hidelostitems_option_for_the_staff_client_RFC Minor edits: Whitespace Signed-off-by: Owen Leonard Signed-off-by: Chris Cormack --- C4/Members.pm | 21 ++++++++++++++++ C4/Search.pm | 4 +++- admin/categorie.pl | 15 +++++++----- catalogue/detail.pl | 16 ++++++++++--- catalogue/moredetail.pl | 24 +++++++++++++++---- installer/data/mysql/kohastructure.sql | 1 + installer/data/mysql/updatedatabase.pl | 7 ++++++ .../prog/en/modules/admin/categorie.tmpl | 12 ++++++++++ .../prog/en/modules/catalogue/detail.tmpl | 7 +++++- .../prog/en/modules/catalogue/moredetail.tmpl | 3 ++- .../prog/en/modules/reserve/request.tmpl | 8 ++++++- reserve/request.pl | 9 ++++++- 12 files changed, 108 insertions(+), 19 deletions(-) diff --git a/C4/Members.pm b/C4/Members.pm index ace939da2b..9fdb357664 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -70,6 +70,8 @@ BEGIN { &PutPatronImage &RmPatronImage + &GetHideLostItemsPreference + &IsMemberBlocked &GetMemberAccountRecords &GetBorNotifyAcctRecord @@ -1807,6 +1809,25 @@ sub RmPatronImage { return $dberror; } +=head2 GetHideLostItemsPreference + + $hidelostitemspref = &GetHideLostItemsPreference($borrowernumber); + +Returns the HideLostItems preference for the patron category of the supplied borrowernumber +C<&$hidelostitemspref>return value of function, 0 or 1 + +=cut + +sub GetHideLostItemsPreference { + my ($borrowernumber) = @_; + my $dbh = C4::Context->dbh; + my $query = "SELECT hidelostitems FROM borrowers,categories WHERE borrowers.categorycode = categories.categorycode AND borrowernumber = ?"; + my $sth = $dbh->prepare($query); + $sth->execute($borrowernumber); + my $hidelostitems = $sth->fetchrow; + return $hidelostitems; +} + =head2 GetRoadTypeDetails (OUEST-PROVENCE) ($roadtype) = &GetRoadTypeDetails($roadtypeid); diff --git a/C4/Search.pm b/C4/Search.pm index f970caf5c2..35f016665a 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -25,6 +25,7 @@ use Lingua::Stem; use C4::Search::PazPar2; use XML::Simple; use C4::Dates qw(format_date); +use C4::Members qw(GetHideLostItemsPreference); use C4::XSLT; use C4::Branch; use C4::Reserves; # CheckReserves @@ -1593,7 +1594,8 @@ sub searchResults { my $prefix = $item->{$hbranch} . '--' . $item->{location} . $item->{itype} . $item->{itemcallnumber}; # For each grouping of items (onloan, available, unavailable), we build a key to store relevant info about that item - if ( $item->{onloan} ) { + my $userenv = C4::Context->userenv; + if ( $item->{onloan} && !(C4::Members::GetHideLostItemsPreference($userenv->{'number'}) && $item->{itemlost}) ) { $onloan_count++; my $key = $prefix . $item->{onloan} . $item->{barcode}; $onloan_items->{$key}->{due_date} = format_date($item->{onloan}); diff --git a/admin/categorie.pl b/admin/categorie.pl index 4a5d68390c..d0211fdb03 100755 --- a/admin/categorie.pl +++ b/admin/categorie.pl @@ -92,7 +92,7 @@ if ($op eq 'add_form') { my $data; if ($categorycode) { my $dbh = C4::Context->dbh; - my $sth=$dbh->prepare("select categorycode,description,enrolmentperiod,enrolmentperioddate,upperagelimit,dateofbirthrequired,enrolmentfee,issuelimit,reservefee,overduenoticerequired,category_type from categories where categorycode=?"); + my $sth=$dbh->prepare("select categorycode,description,enrolmentperiod,enrolmentperioddate,upperagelimit,dateofbirthrequired,enrolmentfee,issuelimit,reservefee,hidelostitems,overduenoticerequired,category_type from categories where categorycode=?"); $sth->execute($categorycode); $data=$sth->fetchrow_hashref; $sth->finish; @@ -109,6 +109,7 @@ if ($op eq 'add_form') { overduenoticerequired => $data->{'overduenoticerequired'}, issuelimit => $data->{'issuelimit'}, reservefee => sprintf("%.2f",$data->{'reservefee'}), + hidelostitems => $data->{'hidelostitems'}, category_type => $data->{'category_type'}, DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), "type_".$data->{'category_type'} => 1, @@ -128,12 +129,12 @@ if ($op eq 'add_form') { } if ($is_a_modif) { - my $sth=$dbh->prepare("UPDATE categories SET description=?,enrolmentperiod=?, enrolmentperioddate=?,upperagelimit=?,dateofbirthrequired=?,enrolmentfee=?,reservefee=?,overduenoticerequired=?,category_type=? WHERE categorycode=?"); - $sth->execute(map { $input->param($_) } ('description','enrolmentperiod','enrolmentperioddate','upperagelimit','dateofbirthrequired','enrolmentfee','reservefee','overduenoticerequired','category_type','categorycode')); + my $sth=$dbh->prepare("UPDATE categories SET description=?,enrolmentperiod=?, enrolmentperioddate=?,upperagelimit=?,dateofbirthrequired=?,enrolmentfee=?,reservefee=?,hidelostitems=?,overduenoticerequired=?,category_type=? WHERE categorycode=?"); + $sth->execute(map { $input->param($_) } ('description','enrolmentperiod','enrolmentperioddate','upperagelimit','dateofbirthrequired','enrolmentfee','reservefee','hidelostitems','overduenoticerequired','category_type','categorycode')); $sth->finish; } else { - my $sth=$dbh->prepare("INSERT INTO categories (categorycode,description,enrolmentperiod,enrolmentperioddate,upperagelimit,dateofbirthrequired,enrolmentfee,reservefee,overduenoticerequired,category_type) values (?,?,?,?,?,?,?,?,?,?)"); - $sth->execute(map { $input->param($_) } ('categorycode','description','enrolmentperiod','enrolmentperioddate','upperagelimit','dateofbirthrequired','enrolmentfee','reservefee','overduenoticerequired','category_type')); + my $sth=$dbh->prepare("INSERT INTO categories (categorycode,description,enrolmentperiod,enrolmentperioddate,upperagelimit,dateofbirthrequired,enrolmentfee,reservefee,hidelostitems,overduenoticerequired,category_type) values (?,?,?,?,?,?,?,?,?,?)"); + $sth->execute(map { $input->param($_) } ('categorycode','description','enrolmentperiod','enrolmentperioddate','upperagelimit','dateofbirthrequired','enrolmentfee','reservefee','hidelostitems','overduenoticerequired','category_type')); $sth->finish; } if (C4::Context->preference('EnhancedMessagingPreferences')) { @@ -156,7 +157,7 @@ if ($op eq 'add_form') { $sth->finish; $template->param(total => $total->{'total'}); - my $sth2=$dbh->prepare("select categorycode,description,enrolmentperiod,enrolmentperioddate,upperagelimit,dateofbirthrequired,enrolmentfee,issuelimit,reservefee,overduenoticerequired,category_type from categories where categorycode=?"); + my $sth2=$dbh->prepare("select categorycode,description,enrolmentperiod,enrolmentperioddate,upperagelimit,dateofbirthrequired,enrolmentfee,issuelimit,reservefee,hidelostitems,overduenoticerequired,category_type from categories where categorycode=?"); $sth2->execute($categorycode); my $data=$sth2->fetchrow_hashref; $sth2->finish; @@ -173,6 +174,7 @@ if ($op eq 'add_form') { overduenoticerequired => $data->{'overduenoticerequired'}, issuelimit => $data->{'issuelimit'}, reservefee => sprintf("%.2f",$data->{'reservefee'}), + hidelostitems => $data->{'hidelostitems'}, category_type => $data->{'category_type'}, ); # END $OP eq DELETE_CONFIRM @@ -205,6 +207,7 @@ if ($op eq 'add_form') { overduenoticerequired => $results->[$i]{'overduenoticerequired'}, issuelimit => $results->[$i]{'issuelimit'}, reservefee => sprintf("%.2f",$results->[$i]{'reservefee'}), + hidelostitems => $results->[$i]{'hidelostitems'}, category_type => $results->[$i]{'category_type'}, "type_".$results->[$i]{'category_type'} => 1); if (C4::Context->preference('EnhancedMessagingPreferences')) { diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 3d42326fc3..5542163b17 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -64,6 +64,8 @@ if($query->cookie("holdfor")){ my $biblionumber = $query->param('biblionumber'); my $fw = GetFrameworkCode($biblionumber); +my $showallitems = $query->param('showallitems'); + ## get notes and subjects from MARC record my $marcflavour = C4::Context->preference("marcflavour"); my $record = GetMarcBiblio($biblionumber); @@ -109,8 +111,12 @@ my $branches = GetBranches(); my $itemtypes = GetItemTypes(); my $dbh = C4::Context->dbh; -# change back when ive fixed request.pl -my @items = &GetItemsInfo( $biblionumber, 'intra' ); +# 'intra' param included, even though it's not respected in GetItemsInfo currently +my @all_items= GetItemsInfo($biblionumber, 'intra'); +my @items; +for my $itm (@all_items) { + push @items, $itm unless ( $itm->{itemlost} && GetHideLostItemsPreference($borrowernumber) && !$showallitems); +} my $dat = &GetBiblioData($biblionumber); # get count of holds @@ -141,7 +147,11 @@ foreach my $subscription (@subscriptions) { if ( defined $dat->{'itemtype'} ) { $dat->{imageurl} = getitemtypeimagelocation( 'intranet', $itemtypes->{ $dat->{itemtype} }{imageurl} ); } -$dat->{'count'} = scalar @items; + +$dat->{'count'} = scalar @all_items; +$dat->{'showncount'} = scalar @items; +$dat->{'hiddencount'} = scalar @all_items - scalar @items; + my $shelflocations = GetKohaAuthorisedValues('items.location', $fw); my $collections = GetKohaAuthorisedValues('items.ccode' , $fw); my (@itemloop, %itemfields); diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index 054229f397..d848188ef8 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -34,6 +34,7 @@ use C4::Dates qw/format_date/; use C4::Circulation; # to use itemissues use C4::Members; # to use GetMember use C4::Search; # enabled_staff_search_views +use C4::Members qw/GetHideLostItemsPreference/; my $query=new CGI; @@ -66,8 +67,10 @@ my $biblionumber=$query->param('biblionumber'); my $title=$query->param('title'); my $bi=$query->param('bi'); $bi = $biblionumber unless $bi; +my $itemnumber = $query->param('itemnumber'); my $data=GetBiblioData($biblionumber); my $dewey = $data->{'dewey'}; +my $showallitems = $query->param('showallitems'); #coping with subscriptions my $subscriptionsnumber = CountSubscriptionFromBiblionumber($biblionumber); @@ -85,16 +88,27 @@ my $subscriptionsnumber = CountSubscriptionFromBiblionumber($biblionumber); my @results; my $fw = GetFrameworkCode($biblionumber); -my @items= GetItemsInfo($biblionumber); -my $count=@items; -$data->{'count'}=$count; +my @all_items= GetItemsInfo($biblionumber); +my @items; +for my $itm (@all_items) { + push @items, $itm unless ( $itm->{itemlost} && + GetHideLostItemsPreference($loggedinuser) && + !$showallitems && + ($itemnumber != $itm->{itemnumber})); +} + +my $totalcount=@all_items; +my $showncount=@items; +my $hiddencount = $totalcount - $showncount; +$data->{'count'}=$totalcount; +$data->{'showncount'}=$showncount; +$data->{'hiddencount'}=$hiddencount; # can be zero my $ccodes= GetKohaAuthorisedValues('items.ccode',$fw); my $itemtypes = GetItemTypes; $data->{'itemtypename'} = $itemtypes->{$data->{'itemtype'}}->{'description'}; $results[0]=$data; -my $itemnumber; ($itemnumber) and @items = (grep {$_->{'itemnumber'} == $itemnumber} @items); foreach my $item (@items){ $item->{itemlostloop}= GetAuthorisedValues(GetAuthValCode('items.itemlost',$fw),$item->{itemlost}) if GetAuthValCode('items.itemlost',$fw); @@ -144,7 +158,7 @@ $template->param(loggedinuser => $loggedinuser); $template->param(biblionumber => $biblionumber); $template->param(biblioitemnumber => $bi); $template->param(itemnumber => $itemnumber); -$template->param(ONLY_ONE => 1) if ( $itemnumber && $count != @items ); +$template->param(ONLY_ONE => 1) if ( $itemnumber && $showncount != @items ); $template->param(z3950_search_params => C4::Search::z3950_search_args(GetBiblioData($biblionumber))); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index a62e07c9fb..b9e4df6316 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -420,6 +420,7 @@ CREATE TABLE `categories` ( `overduenoticerequired` tinyint(1) default NULL, `issuelimit` smallint(6) default NULL, `reservefee` decimal(28,6) default NULL, + `hidelostitems` tinyint(1) NOT NULL default '0' `category_type` varchar(1) NOT NULL default 'A', PRIMARY KEY (`categorycode`), UNIQUE KEY `categorycode` (`categorycode`) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6528a2a49b..bace1399cc 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4141,6 +4141,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = '3.03.00.XXX'; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("ALTER TABLE `categories` ADD `hidelostitems` tinyint(1) NOT NULL default '0' AFTER `reservefee`"); + print "Upgrade to $DBversion done (Add hidelostitems preference to borrower categories)\n"; + SetVersion ($DBversion); +} + =head1 FUNCTIONS =head2 DropAllForeignKeys($table) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tmpl index ba9e468b14..52e8657ae8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tmpl @@ -151,6 +151,15 @@ +
  •  
  • " />
  •   Clone these rules to: + + before + on + after + + + None defined @@ -133,6 +146,29 @@ for="tobranch">Clone these rules to: + + " /> + + /lib/calendar/cal.gif" alt="Show Calendar" border="0" id="CalendarDueDate" style="cursor: pointer;"/> + + From 223436970b44098b97679fc6e696b88eb74f2db3 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 30 Mar 2011 20:37:49 +1300 Subject: [PATCH 15/15] Bug 5548 bumping db version number --- installer/data/mysql/updatedatabase.pl | 2 +- kohaversion.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index afa35f8d91..f2d6776e2a 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4149,7 +4149,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } -$DBversion = '3.03.00.XXX'; +$DBversion = '3.03.00.035'; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do("ALTER TABLE `issuingrules` ADD hardduedate date default NULL AFTER issuelength"); $dbh->do("ALTER TABLE `issuingrules` ADD hardduedatecompare tinyint NOT NULL default 0 AFTER hardduedate"); diff --git a/kohaversion.pl b/kohaversion.pl index 344e334265..cd55624253 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts : use strict; sub kohaversion { - our $VERSION = '3.03.00.034'; + our $VERSION = '3.03.00.035'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install