Main Koha release repository https://koha-community.org
Find a file
Adrien Saurat 28ef6c199b Bug 6893 : Updates suggestions list when adding orders
A suggestion added through addorder.pl now changes
to the ORDERED status as initially intended (but so
far it stayed as ACCEPTED).

This fixes the list of potential suggestions to order,
the ORDERED ones don't appear anymore.

Bug 6893 : Follow-up: Disabled WHERE clause excluding ORDERED status

In SearchSuggestions, a WHERE clause was excluding the ORDERED
suggestions from the results. Now replaced with 1=1.

(before 6893 correction, the WHERE clause was excluding the
STATUS='CLAIMED' suggestions, but this status cannot be found anywhere
else in the code... so I changed to STATUS='ORDERED' which
seemed more accurate, but it had impacts on OPAC and some Admin tabs)

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Both patches applied cleanly, sqashed them together after testing.

Tested:
1) Creating new suggestions
- from OPAC, shows up in patron account as 'requested', pending in staff
- from staff, shows up in list of pending suggestions
Status in database is ASKED

Note: suggestions made from staff for the same patron have suggestedby = 0
in the database, so are not showing up in the patron account. Is this by
intention? (if not, I think this is a separate bug)

2) Accepting suggestions
- from list
- from edit page
Status in database is ACCEPTED
Patron account shows 'Accepted by the library (Bestseller)'

Note: after changing the status from the list, bug 4068 kicks in and
some tabs and even suggestions are hidden. Going back to the acq start
page and going back to the suggestions page from there helps.

3) Rejecting suggestions
- from list
- from edit page
Status in database is REJECTED
Patron account in OPAC shows 'Suggestion declined'

Note: bug 4068 again.

4) Ordering from suggestions
- new basket
- ordered 2 accepted suggestions
SUCCESS! Great improvement:
- Status in database is now ORDERED
- Already ordered suggestions no longer show up on list of
  suggestions to order from.
- Patron account shows 'Ordered by the library (Bestseller)'
- Suggestion management page shows a new tab 'Ordered'
- For the suggestion with a valid 'suggestedby' borrowernumber,
  a mail was generated. (bug 7094)

5) Receive ordered suggestions
- received my ordered suggestions
This is is not in the scope of this bug, but for documentation:
- No message was generated to inform the patron
- Status stays ORDERED
- Patron account still shows item as ordered, no change to 4)

Looking at the suggestion.tt I think there should be another status
AVAILABLE.
216     [% ELSIF (suggestion.suggestiontypelabel == "Available") %]Available

Signing off, fixes bug reported. Danke!

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2011-12-06 20:30:04 +01:00
acqui Bug 6893 : Updates suggestions list when adding orders 2011-12-06 20:30:04 +01:00
admin Bug 6475 - Edit it's not possible in subfield "0" in MARC framework 2011-11-18 22:32:35 +01:00
authorities Bug 6977 : Adds support for repeatable subfields when importing authorities. 2011-10-13 11:07:17 +13:00
basket Bug 6050 Make calls to GetItemsInfo consistent 2011-06-14 14:12:02 +12:00
C4 Bug 6893 : Updates suggestions list when adding orders 2011-12-06 20:30:04 +01:00
catalogue Bug 3385 - Add checkout date and renewal date to display list of checked out items 2011-12-06 19:22:01 +01:00
cataloguing Bug 6679 : Tidying changed parts of file 2011-11-06 18:19:19 +01:00
circ Bug 4051: adds issuedate column to overdues export 2011-12-06 19:24:41 +01:00
debian Bug 7216 - koha-restore does not correctly set home 2011-12-06 17:01:56 +01:00
docs 160th developer + 2 events added (NZ tm and 3.6.1 released) 2011-12-06 12:07:48 +01:00
errors Housekeeping in errors scripts 2010-05-12 07:29:03 -04:00
etc Bug 7041: Sort >1000 search results with sortmax parameter in zebra config file 2011-12-03 08:15:34 +01:00
install_misc Bug 7063: add available perl packages for Debian in install_misc/debian.packages 2011-10-22 09:00:33 +13:00
installer Bug 6530 follow-up for fix Item_Due / Item_DUE in message_attributes 2011-12-06 20:05:25 +01:00
koha-tmpl Merge remote-tracking branch 'origin/new/bug_5604' 2011-12-06 19:46:55 +01:00
labels Bug 7207 - Reverting a portion of commit 607b5449bd which breaks the label export script. 2011-11-16 17:55:35 +01:00
members Bug 6328 Fixes for comment 35 2011-11-25 14:00:47 +01:00
misc Bug 2346 follow-up (UpdateBorrowerDebarred subroutine removed) 2011-12-06 19:13:55 +01:00
offline_circ Bug 5449: JSON malformed in Koha - Blocker with jQuery 1.4.x 2011-03-12 08:53:41 +13:00
opac Bug 6877 - use is executed and errors at compile time 2011-11-25 14:17:58 +01:00
patroncards bug_6253: Unified member Search() 2011-10-19 16:23:02 +13:00
reports Bug 2616: Remove unnecessary 'use HTML::Template' calls 2011-12-06 11:34:05 +01:00
reserve Bug 7059: Remove GetMemberDetails from reserve/request.pl 2011-10-20 14:07:51 +13:00
reviews Modifying Members : Add Mod and GetMember 2009-09-30 11:29:23 +02:00
rotating_collections Bug 6553 : Follow up adding license statements 2011-08-13 19:54:38 +12:00
selenium Adding selenium tests for filterMembers 2009-09-30 11:30:37 +02:00
serials Bug 6479 Converts all the serialseq variables to UTF-8. 2011-09-03 06:31:03 +12:00
skel
sms Bug 2505 - Add commented use warnings where missing in the sms/ directory 2010-04-21 20:25:08 +12:00
suggestion Bug 6894: Order from suggestion defaulting to wrong currency 2011-11-28 10:22:04 +01:00
svc bug 4896: granular permissions now always on (DB rev 138) 2010-06-19 07:56:03 -04:00
t Bug 2346: Remove C4::Overdues::UpdateBorrowerDebarred in favour of C4::Members::DebarMember 2011-12-06 19:12:20 +01:00
tags Fix for Bug 2377 - Review tags: format date according to system preference 2010-10-06 09:31:56 -04:00
test Bug 5449: JSON malformed in Koha - Blocker with jQuery 1.4.x 2011-03-12 08:53:41 +13:00
tmp/modified_authorities
tools bug_5211: LostItem() - added charge_fee param to control fee charging 2011-12-06 11:36:34 +01:00
virtualshelves Fix for Bug 6957, authors disappearing when emailing lists 2011-10-20 11:34:39 +13:00
xt fixing the translatable-template.t to handle localized setups 2011-11-28 12:13:42 +01:00
.htaccess Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
about.pl Bug 4330: Wrong address for Free Software Foundation 2011-11-24 14:15:55 +01:00
changelanguage.pl Bug 6755 Problems with switching languages 2011-09-23 09:47:09 +12:00
edithelp.pl Bug 7038 Contextual help is always in English 2011-10-18 16:01:25 +13:00
fix-perl-path.PL
help.pl Bug 6628 : Stopping a potential vulnerability 2011-11-28 10:05:58 +01:00
INSTALL Updating main INSTALL instructions 2011-10-22 09:04:19 +13:00
install-CPAN.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
INSTALL.debian Updating distro specific install files 2011-10-22 09:12:15 +13:00
INSTALL.fedora7 fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
INSTALL.opensuse Updating INSTALL.opensuse file with the changes by Freek de Kruijf 2011-06-09 09:45:22 +12:00
INSTALL.ubuntu Updating distro specific install files 2011-10-22 09:12:15 +13:00
INSTALL.ubuntu.lucid Updating distro specific install files 2011-10-22 09:12:15 +13:00
koha_perl_deps.pl Bug 6914 - fixes for the color option of koha_perl_deps.pl 2011-12-03 07:47:38 +01:00
kohaversion.pl Bug 6530 follow-up for fix Item_Due / Item_DUE in message_attributes 2011-12-06 20:05:25 +01:00
LICENSE Update LICENSE with a fresh copy from upstream. This updates the FSF address, and refers to the LGPL with its current name, and changes a few other minor things of the typographical sort. No semantic changes. 2010-03-16 20:17:48 -04:00
mainpage.pl Bug 4330: Wrong address for Free Software Foundation 2011-11-24 14:15:55 +01:00
Makefile.PL Updating perl version required to match reality 2011-10-19 02:57:18 +13:00
MANIFEST.SKIP
README updated links in README 2010-05-24 08:14:16 -04:00
README.robots Bug 6411 add another example to README.robots 2011-07-05 14:48:05 +12:00
rewrite-config.PL Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 2 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/