Bug 28543: Clicking on 'New record' will use default framework
In biblio records cataloguing, clicking on 'New from z39.50/SRU' will run action with default framework. Clicking on 'New record' should do the same. Test plan : 1) Go to cataloguing home page 2) Check you see 'New record' with a sparator and then a caret (like 'New from z39.50/SRU') 3) Click on button text => You go to record edition with default framework 4) Clik on caret => You see list of framworks Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
1339fd5143
commit
024c491132
|
|
@ -49,9 +49,12 @@
|
|||
<a id="useadvanced" href="/cgi-bin/koha/cataloguing/editor.pl" class="btn btn-default"><i class="fa fa-pencil"></i> Advanced editor</a>
|
||||
[% END %]
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New record <span class="caret"></span></button>
|
||||
<button class="btn btn-default" id="newRecord"><i class="fa fa-plus"></i> New record</button>
|
||||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li>
|
||||
<li><a id="newRecordDefault" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li>
|
||||
[% FOREACH framework IN frameworks %]
|
||||
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li>
|
||||
[% END %]
|
||||
|
|
@ -265,6 +268,12 @@
|
|||
//Set focus to cataloging search
|
||||
$("input[name=q]:eq(0)").focus();
|
||||
|
||||
$("#newRecord").click(function(){
|
||||
var url = $("a#newRecordDefault").prop("href");
|
||||
window.location.href = url;
|
||||
return false;
|
||||
});
|
||||
|
||||
$("#z3950search").click(function(){
|
||||
PopupZ3950("Default");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue