Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Owen Leonard 0b9a7e3546
Bug 24347: Add a 'search to order' option similar to 'search to hold'
This patch modifes the process of searching for an existing record
to add to a basket. Now the search is performed as a keyword search in
the regular catalog rather than via a custom search script. Options are
added to the search results and detail pages to add results to an order.

This process follows the same pattern as the "Search to hold" feature:
When the search is initiated, a cookie is set with the requisite
information--in this case vendor id and basket number.

If the search results or bibliographic detail pages detect that a
"searchToOrder" cookie is present, the correct "Add order" link will be
shown. Like with the "search to hold" feature, the cookie expires in 10
minutes.

To test, apply the patch and log into the staff client as a user who has
permission to add to a basket in acquisitions.

 - Go to Acquisitions -> Vendor -> Basket -> Add to basket.
 - Using the "From an existing record" option, perform a search.
 - On the search results page, test the "Add order" link which appears
   with each result. Clicking the link should take you to the "New
   order" page for the correct vendor and basket. The catalog
   details section of the form should include the correct information.
 - From the search results page view the bibliographic details page for
   any record. There should be a new toolbar button, "Add order." Verify
   that it works correctly.
   - Test the same thing from all bibliographic detail pages: Normal,
     MARC, Labeled MARC, ISBD, as well as the items page
     (moredetail.pl).
 - Test this process for both the locations in acquisitions where one
   can add to an existing basket: Vendor search results and the basket
   detail page
 - Test the cookie timeout: Wait 10 minutes and perform another catalog
   search. The "Add order" link should no longer be present.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-30 10:58:03 +00:00
..
csv Bug 12502: (follow-up) Use modal to add/edit order notes 2020-01-20 16:37:21 +00:00
tables
acqui-home.tt Bug 22868: Move suggestions_manage subperm out of acquisition perm 2020-01-30 08:27:00 +00:00
addorder.tt
addorderiso2709.tt
ajax.tt
basket.tt Bug 24347: Add a 'search to order' option similar to 'search to hold' 2020-01-30 10:58:03 +00:00
basketgroup.tt
basketheader.tt Bug 23863: (QA follow-up) Add missing html filter 2019-10-24 10:56:17 +01:00
booksellers.tt Bug 24347: Add a 'search to order' option similar to 'search to hold' 2020-01-30 10:58:03 +00:00
cancelorder.tt
duplicate_orders.tt
edi_ean.tt
edifactmsgs.tt
edimsg.tt
histsearch.tt
invoice-files.tt
invoice.tt Bug 24404: Add missing space on invoices page / remove . from status 2020-01-20 14:03:49 +00:00
invoices.tt
lateorders.tt Bug 12502: (follow-up) Adds formatting for datatables export 2020-01-20 16:37:21 +00:00
modordernotes.tt
neworderbiblio.tt Bug 24347: Add a 'search to order' option similar to 'search to hold' 2020-01-30 10:58:03 +00:00
neworderempty.tt Bug 11500: Use dateformat syspref and datepicker on additems.pl (and other item cataloguing pages) 2019-12-23 12:01:45 +00:00
neworderempty_duplicate.tt Bug 23958: Use Font Awesome icon to replace "new window" icon image 2019-11-27 09:25:16 +00:00
newordersubscription.tt Bug 11500: Use dateformat syspref and datepicker on additems.pl (and other item cataloguing pages) 2019-12-23 12:01:45 +00:00
newordersuggestion.tt Bug 11500: Use dateformat syspref and datepicker on additems.pl (and other item cataloguing pages) 2019-12-23 12:01:45 +00:00
ordered.tt Bug 23983: Remove comment 2019-11-13 13:15:49 +00:00
orderreceive.tt
parcel.tt Bug 23983: Remove comment 2019-11-13 13:15:49 +00:00
parcels.tt
showorder.tt
spent.tt Bug 23983: Remove comment 2019-11-13 13:15:49 +00:00
supplier.tt
transferorder.tt Bug 23983: Remove comment 2019-11-13 13:15:49 +00:00
uncertainprice.tt Bug 23983: Remove comment 2019-11-13 13:15:49 +00:00
z3950_search.tt Bug 23983: Remove comment 2019-11-13 13:15:49 +00:00