Koha/koha-tmpl/intranet-tmpl/prog/js
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
..
pages Bug 23885: Move staff client search results JavaScript into separate file 2020-01-29 09:05:01 +00:00
acq.js
acquisitions-menu.js Bug 24347: Add a 'search to order' option similar to 'search to hold' 2020-01-30 10:58:03 +00:00
additem.js
addorderiso2709.js Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js
basketgroup.js
biblio_framework.js Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
cart.js
catalog.js
cataloging.js Bug 7882: Add ability to move and reorder fields in MARC editor 2020-01-03 16:27:59 +00:00
cataloging_additem.js
categories.js Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
charts.js
checkouts.js Bug 23493: (RM follow-up) Let datatables calculate colspan for us 2020-01-30 09:39:43 +00:00
circ-patron-search-results.js
commons.js
datatables.js Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
file-upload.js
funds_sorts.js
holds.js Bug 21296: suspend hold ignores system preference on intranet 2020-01-20 14:03:50 +00:00
ill-list-table.js Bug 23529: (QA follow-up) Fix closing bracket, add label 2019-10-25 13:18:20 +01:00
item_search_fields.js
letter.js Bug 23278: Reopen last panel upon "Save and continue" in notices 2019-07-19 14:07:36 +01:00
localcovers.js
mana.js Bug 22249: Mana - Move comment process in a dedicated sub 2019-07-26 16:08:08 +01:00
marc_modification_templates.js
marc_subfields_structure.js Bug 10469: Display more when editing subfields in frameworks 2020-01-03 16:32:26 +00:00
members-menu.js Bug 23697: (follow-up) Add autocompletion search in patron module 2019-10-08 14:51:04 +01:00
members.js Bug 24113: guarantor info lost when a duplicate is found 2019-11-27 07:51:04 +00:00
merge-record.js
messaging-preference-form.js Bug 22744: Changes for opac and remove JS 2019-09-23 11:57:46 +01:00
offlinecirc.js
onboarding.js
rotating-collections.js Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 21245: Move 'Last patron' button into 'breadcrumb' bar 2019-10-08 14:18:21 +01:00
subscription-add.js Bug 24358: (bug 21232) Make the alert string translatable 2020-01-10 16:08:55 +00:00
table_filters.js Bug 24046: Untranslatable 'Activate filters' 2019-12-23 11:25:13 +00:00
tools-menu.js
xmlControlfield.js
z3950_search.js