Bugzilla – Attachment 103198 Details for
Bug 24819
Add ability for librarians to choose a patron when entering a purchase suggestion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24819: (follow-up) Rename suggestion_search to suggestor_search
Bug-24819-follow-up-Rename-suggestionsearch-to-sug.patch (text/plain), 4.22 KB, created by
Katrin Fischer
on 2020-04-18 04:00:30 UTC
(
hide
)
Description:
Bug 24819: (follow-up) Rename suggestion_search to suggestor_search
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-04-18 04:00:30 UTC
Size:
4.22 KB
patch
obsolete
>From c4495adab677180fc8d3e79bea6528db7071e23b Mon Sep 17 00:00:00 2001 >From: Matthias Meusburger <matthias.meusburger@biblibre.com> >Date: Tue, 24 Mar 2020 14:52:31 +0100 >Subject: [PATCH] Bug 24819: (follow-up) Rename suggestion_search to > suggestor_search > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 2 +- > .../suggestion/tables/{suggestion_search.tt => suggestor_search.tt} | 0 > koha-tmpl/intranet-tmpl/prog/js/suggestions.js | 4 ++-- > suggestion/{suggestion_search.pl => suggestor_search.pl} | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > rename koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/{suggestion_search.tt => suggestor_search.tt} (100%) > rename suggestion/{suggestion_search.pl => suggestor_search.pl} (96%) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >index 8a7ddf3f8e..2794a0abec 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >@@ -378,7 +378,7 @@ > <td><input type="text" id="suggesteddate" name="suggesteddate" class="datepicker" size="10" maxlength="10" value="[% suggesteddate | $KohaDates %]"/>[% INCLUDE 'date-format.inc' %]</td> > <td id="tdsuggestedby"><input type="hidden" id="suggestedby" name="suggestedby" value="[% suggestedby | html %]"/>[% IF ( suggestedby_patron.borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_patron.borrowernumber | uri %]">[% suggestedby_patron.surname | html %], [% suggestedby_patron.firstname | html %] ([% suggestedby_patron.cardnumber | html %])</a> [% Branches.GetName( suggestedby_patron.branchcode ) | html %] ([% suggestedby_patron.category.description | html %])[% END %] > </td> >- <td><a href="#" id="suggestion_search" class="btn btn-default">Set to patron</a></td> >+ <td><a href="#" id="suggestor_search" class="btn btn-default">Set to patron</a></td> > </tr> > <tr> > <th><label for="accepteddate">Accepted on:</label> </th> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/suggestion_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/suggestor_search.tt >similarity index 100% >rename from koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/suggestion_search.tt >rename to koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/suggestor_search.tt >diff --git a/koha-tmpl/intranet-tmpl/prog/js/suggestions.js b/koha-tmpl/intranet-tmpl/prog/js/suggestions.js >index 613e967f7d..d884b6af09 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/suggestions.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/suggestions.js >@@ -9,9 +9,9 @@ function select_user(borrowernumber, borrower) { > } > > $(document).ready(function(){ >- $('body').on('click', '#suggestion_search', function(e) { >+ $('body').on('click', '#suggestor_search', function(e) { > e.preventDefault(); >- var newin = window.open('suggestion_search.pl','popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=yes,top'); >+ var newin = window.open('suggestor_search.pl','popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=yes,top'); > }); > > }); >diff --git a/suggestion/suggestion_search.pl b/suggestion/suggestor_search.pl >similarity index 96% >rename from suggestion/suggestion_search.pl >rename to suggestion/suggestor_search.pl >index 24e33b7b7c..05a831fd01 100755 >--- a/suggestion/suggestion_search.pl >+++ b/suggestion/suggestor_search.pl >@@ -48,7 +48,7 @@ my $patron_categories = Koha::Patron::Categories->search_limited; > $template->param( > view => ( $input->request_method() eq "GET" ) ? "show_form" : "show_results", > columns => ['cardnumber', 'name', 'dateofbirth', 'address', 'action' ], >- json_template => 'suggestion/tables/suggestion_search.tt', >+ json_template => 'suggestion/tables/suggestor_search.tt', > selection_type => 'select', > alphabet => ( C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ), > categories => $patron_categories, >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24819
:
100223
|
100281
|
101583
|
101716
|
101788
|
101789
|
103197
| 103198 |
103199