Bug 14829: Fix shortcuts in the cataloging and patron modules
In these 2 modules, the shortcuts alt+q, alt+r and alt+u don't work as in other modules. The tab are not "built" in the correct order and the id returned to select the correct tab is wrong. Test plan: Go on the circ home page (circ/circulation-home.pl), the patron home page (members/members-home.pl) and the cataloging home page (cataloguing/addbooks.pl). On these 3 pages, without this patch, the shortcuts select different tabs. With this patch, the issue is fixed for all of them. Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
9bdd33de21
commit
57c88aa5be
2 changed files with 12 additions and 9 deletions
|
@ -10,6 +10,8 @@
|
|||
</form>
|
||||
</div>
|
||||
|
||||
[% INCLUDE 'patron-search-box.inc' %]
|
||||
|
||||
[% IF ( CAN_user_circulate ) %]
|
||||
<div id="checkin_search" class="residentsearch">
|
||||
<p class="tip">Scan a barcode to check in:</p>
|
||||
|
@ -28,7 +30,6 @@
|
|||
</form>
|
||||
</div>
|
||||
|
||||
[% INCLUDE 'patron-search-box.inc' %]
|
||||
<ul>
|
||||
<li><a onclick="keep_text(0)" href="#addbooks_search">Cataloging search</a></li>
|
||||
[% IF ( CAN_user_circulate ) %]<li><a onclick="keep_text(1)" href="#circ_search">Check out</a></li>[% END %]
|
||||
|
|
|
@ -114,14 +114,6 @@
|
|||
</div>
|
||||
[% INCLUDE 'patron-search-box.inc' %]
|
||||
|
||||
[% IF ( CAN_user_catalogue ) %]
|
||||
<div id="catalog_search" class="residentsearch">
|
||||
<p class="tip">Enter search keywords:</p>
|
||||
<form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="cat-search-block">
|
||||
<input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="head-searchbox form-text" />
|
||||
<input type="submit" name="op" id="opac-submit" value="Submit" class="submit" />
|
||||
</form>
|
||||
</div>[% END %]
|
||||
[% IF ( CAN_user_circulate ) %]
|
||||
<div id="checkin_search" class="residentsearch">
|
||||
<p class="tip">Scan a barcode to check in:</p>
|
||||
|
@ -131,6 +123,16 @@
|
|||
</form>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
[% IF ( CAN_user_catalogue ) %]
|
||||
<div id="catalog_search" class="residentsearch">
|
||||
<p class="tip">Enter search keywords:</p>
|
||||
<form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="cat-search-block">
|
||||
<input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="head-searchbox form-text" />
|
||||
<input type="submit" name="op" id="opac-submit" value="Submit" class="submit" />
|
||||
</form>
|
||||
</div>[% END %]
|
||||
|
||||
<ul>
|
||||
<li><a onclick="keep_text(0)" href="#patron_search">Search patrons</a></li>
|
||||
[% IF ( CAN_user_circulate ) %]<li><a onclick="keep_text(1)" href="#circ_search">Check out</a></li>[% END %]
|
||||
|
|
Loading…
Reference in a new issue