Bug 28356

Summary: Consolidate header catalogue search box code
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Staff interfaceAssignee: Nick Clemens (kidclamp) <nick>
Status: CLOSED FIXED QA Contact: Joonas Kylmälä <joonas.kylmala>
Severity: enhancement    
Priority: P5 - low CC: fridolin.somers, gmcharlt, jonathan.druart, joonas.kylmala, kyle, oleonard
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26247
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
21.11.00
Circulation function:
Bug Depends on:    
Bug Blocks: 26247    
Attachments: Bug 28356: Consolidate catalogue search box code
Bug 28356: Consolidate catalogue search box code
Bug 28356: Consolidate catalogue search box code
Bug 28356: Consolidate catalogue search box code
Bug 28356: Consolidate catalogue search box code

Description Nick Clemens (kidclamp) 2021-05-14 15:06:32 UTC
We duplicate the code for the 'Search the catalog' box in many different include files, we should use a single file that is included where needed
Comment 1 Nick Clemens (kidclamp) 2021-05-14 15:16:57 UTC Comment hidden (obsolete)
Comment 2 Nick Clemens (kidclamp) 2021-05-14 15:18:12 UTC Comment hidden (obsolete)
Comment 3 Hakam Almotlak 2021-06-23 14:51:04 UTC Comment hidden (obsolete)
Comment 4 Hakam Almotlak 2021-06-23 14:51:34 UTC
Created attachment 122346 [details] [review]
Bug 28356: Consolidate catalogue search box code

To test:
1 - Apply patch
2 - Confirm searchign the catalog works from:
    Administration->Budgets
    Cataloging
    Circulation->Check in
    Administration->Cities and towns
    Acquisitions->{Vendor}->Contracts
    Administration->Currencies
    Administration->Circulation desks (requires  UseCirculationDesks preference)
    Home
    Tools->Notices and slips
    Patrons
    Adminstration
    Serials
    Acquisitions->Suggestions
    Administration->Z39.50/SRU servers

Signed-off-by: hakam <hakam@inlibro.com>
Comment 5 Fridolin Somers 2021-08-17 07:14:27 UTC
(In reply to Hakam Almotlak from comment #4)
> Created attachment 122346 [details] [review] [review]
> Bug 28356: Consolidate catalogue search box code
> 
> To test:
> 1 - Apply patch
> 2 - Confirm searchign the catalog works from:
>     Administration->Budgets
>     Cataloging
>     Circulation->Check in
>     Administration->Cities and towns
>     Acquisitions->{Vendor}->Contracts
>     Administration->Currencies
>     Administration->Circulation desks (requires  UseCirculationDesks
> preference)
>     Home
>     Tools->Notices and slips
>     Patrons
>     Adminstration
>     Serials
>     Acquisitions->Suggestions
>     Administration->Z39.50/SRU servers
> 
> Signed-off-by: hakam <hakam@inlibro.com>

You forgot to change status to "Signed off" no ?
Comment 6 Nick Clemens (kidclamp) 2021-08-23 15:48:46 UTC
Moving to Signed-Off, QA queue
Comment 7 Joonas Kylmälä 2021-09-12 13:53:48 UTC
Created attachment 124814 [details] [review]
Bug 28356: Consolidate catalogue search box code

To test:
1 - Apply patch
2 - Confirm searchign the catalog works from:
    Administration->Budgets
    Cataloging
    Circulation->Check in
    Administration->Cities and towns
    Acquisitions->{Vendor}->Contracts
    Administration->Currencies
    Administration->Circulation desks (requires  UseCirculationDesks preference)
    Home
    Tools->Notices and slips
    Patrons
    Adminstration
    Serials
    Acquisitions->Suggestions
    Administration->Z39.50/SRU servers

Signed-off-by: hakam <hakam@inlibro.com>

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Comment 8 Joonas Kylmälä 2021-09-12 13:54:16 UTC
Passing QA. Note: Administration->Cities and towns search was already broken before this patch.
Comment 9 Jonathan Druart 2021-09-21 18:16:37 UTC
Nice one!
Comment 10 Jonathan Druart 2021-09-21 18:18:55 UTC
Pushed to master for 21.11, thanks to everybody involved!