Lines 39-45
Link Here
|
39 |
<ul class="dropdown-menu"> |
39 |
<ul class="dropdown-menu"> |
40 |
<li><a id="newRecordDefault" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li> |
40 |
<li><a id="newRecordDefault" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li> |
41 |
[% FOREACH framework IN frameworks %] |
41 |
[% FOREACH framework IN frameworks %] |
42 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li> |
42 |
[% IF framework.is_default %] |
|
|
43 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]" id="default-framework">[% framework.frameworktext | html %]</a></li> |
44 |
[% ELSE %] |
45 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li> |
46 |
[% END %] |
43 |
[% END %] |
47 |
[% END %] |
44 |
</ul> |
48 |
</ul> |
45 |
</div> |
49 |
</div> |
Lines 233-239
Link Here
|
233 |
$(document).ready(function() { |
237 |
$(document).ready(function() { |
234 |
|
238 |
|
235 |
$("#newRecord").click(function(){ |
239 |
$("#newRecord").click(function(){ |
236 |
var url = $("a#newRecordDefault").prop("href"); |
240 |
var url = $("#default-framework") ? $("#default-framework").prop("href") : $("a#newRecordDefault").prop("href"); |
237 |
window.location.href = url; |
241 |
window.location.href = url; |
238 |
return false; |
242 |
return false; |
239 |
}); |
243 |
}); |
240 |
- |
|
|