Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Fridolin Somers 3ce2c0235c Bug 12405 - Search links on callnumber fails on intranet results page
On intranet results page, the callnumber of items is a search like :
/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=[% result.itemcallnumber |url %]

The callnumber should be URI-escaped to avoid special URI characters like & , ? ...
If the callnumber contains some CCL words or parenthesis, the search will fail, it should be wrapped with double-quotes.

This patch adds this to catalogue/results.pl and catalogue/shelves.pl :
- uri TT filter instead of url
- adds double-quotes using there URI code %22 since its in a HTML attribute using double-quotes

Test plan :
- Edit an item callnumber with : & ABC 123
- Index zebraqueue
- Perform a search returning this item
- Click on the callnumber
=> Without this patch you get no result, because URL parameters are : idx=callnum&q=& ABC 123
=> With this patch you get results
- Set syspref QueryWeightFields off (because this is no bug if on)
- Edit an item callnumber with : AB(C) AND OR
- Index zebraqueue
- Perform a search returning this item
- Click on the callnumber
=> Without this patch you get no result, because the search contains CCL words "OR" and "AND"
=> With this patch you get results

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Tested all with and without queryweightfields -
all searches from clicked call numbers for given callnumbers fail without the patch, all are successful with the patch.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described - no problems found.
Passes tests and QA script.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-09-18 09:43:16 -03:00
..
acqui Bug 12835 - Acquisitions: Show search terms in z39.50 results 2014-09-08 10:55:45 -03:00
admin Bug 12882 - Translations: Resolve ambiguity for word "checked" in Z39.50 server administration 2014-09-17 21:52:30 -03:00
authorities Bug 12708 - Unexpected behaviour in IE 9 and lower when using openWindow 2014-08-19 09:31:25 -03:00
basket Bug 11357 - biblioitems.size value not correctly displayed in list emails sent from OPAC and intranet 2014-07-01 15:29:29 +12:00
batch
catalogue Bug 12405 - Search links on callnumber fails on intranet results page 2014-09-18 09:43:16 -03:00
cataloguing Bug 12765: Fix capitalization - "Try another search" 2014-09-08 10:49:31 -03:00
circ Bug 11577: Add 'auto_renew' and 'auto_too_soon' to renewal page 2014-09-17 19:23:16 -03:00
course_reserves Bug 12635 - Course reserves item list should use "Checked out" instead of "On Loan" 2014-08-07 11:03:56 -03:00
errors
help Bug 12882 - Translations: Resolve ambiguity for word "checked" in Z39.50 server administration 2014-09-17 21:52:30 -03:00
installer Bug 12658: Wording of link text and translatability inside JavaScript 2014-08-15 15:36:11 -03:00
labels Bug 12589 - Manage label batch view should show item type description instead of code 2014-08-19 12:44:55 -03:00
members Bug 12811 - Patron 'Details' and 'Check out' pages not working for staff users without renewal override permissions 2014-09-16 15:18:54 -03:00
offline_circ Bug 12107 - Move checkboxes jQuery plugin outside of language-specific directory 2014-04-25 15:12:20 +00:00
patron_lists ug 11857 - Number of patrons on a patron list not accurate 2014-07-02 15:44:14 -03:00
patroncards Bug 5502 - Patron card category search field should be menu 2014-08-10 09:30:47 -03:00
plugins
reports Bug 12890 - Improve title and breadcrumbs when editing saved SQL report 2014-09-17 22:03:56 -03:00
reserve Bug 10883 - AllowHoldDateInFuture can let a patron jump to the top of the holds list 2014-09-17 20:12:49 -03:00
reviews
rotating_collections
serials Bug 12673: (followup) fix Supplemental issue too 2014-08-14 20:19:06 -03:00
services Bug 12673: Remove CGI::scrolling_list from C4::Items.pm 2014-08-03 17:21:08 -03:00
sms
suggestion Bug 11724: Make Funds/Status on suggestions page sortable/searchable 2014-04-28 17:25:29 +00:00
tags Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
test
tools Bug 12309: Adapt zipcode wording to match the other patron pages 2014-09-01 11:07:09 -03:00
virtualshelves Bug 12405 - Search links on callnumber fails on intranet results page 2014-09-18 09:43:16 -03:00
about.tt Bug 11577: Add Hochschule für Gesundheit to contributing institutions 2014-09-17 19:23:28 -03:00
auth.tt
intranet-main.tt