[Koha-patches] [PATCH] Bug 9675 - Replace YUI buttons on authorities home page with Bootstrap
Owen Leonard
oleonard at myacpl.org
Wed Feb 20 21:06:37 CET 2013
This patch converts the toolbar include file used by the
authorities home page and authority view page
(authorities-home.pl and authorities/detail.pl) replacing YUI button
and menu code with Bootstrap.
To test:
- View the authorities home page and confirm that the "New
authority" button looks correct and works correctly.
- Search for an existing authority and click the "Details" link to view.
"Edit," "Delete," "Save," and "New authority" buttons should look
correct and work correctly. The "Delete" button should only appear for
authorities which are unused.
---
.../prog/en/includes/authorities-toolbar.inc | 24 ++++++++++++++------
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc
index df132a4..e25f49f 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc
@@ -1,27 +1,37 @@
<script type="text/javascript">
- //<![CDATA[
- $(document).ready(function() {
+//<![CDATA[
+ $(document).ready(function() {
$("#delAuth").click(function(){
confirm_deletion();
return false;
});
});
- //]]>
- </script>
+//]]>
+</script>
<div id="toolbar" class="btn-toolbar">
- <form name="f2" method="post" action="authorities.pl">
[% IF ( authid ) %]
<div class="btn-group"><a class="btn btn-small" id="editAuth" href="authorities.pl?authid=[% authid %]"><i class="icon-pencil"></i> Edit</a></div>
[% UNLESS ( count ) %]
<div class="btn-group"><a href="#" class="btn btn-small" id="delAuth"><i class="icon-remove"></i> Delete</a></div>
[% END %]
- <div class="btn-group"><a class="btn btn-small" id="savemenuc"><i class="icon-hdd"></i> Save</a></div>
+
+ <div class="btn-group">
+ <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-download-alt"></i> Save
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu">
+ <li><a href="/cgi-bin/koha/authorities/export.pl?format=mads&op=export&authid=[% authid %]">MADS (XML)</a></li>
+ <li><a href="/cgi-bin/koha/authorities/export.pl?format=marcxml&op=export&authid=[% authid %]">MARCXML</a></li>
+ <li><a href="/cgi-bin/koha/authorities/export.pl?format=marc8&op=export&authid=[% authid %]">MARC (non-Unicode/MARC-8)</a></li>
+ <li><a href="/cgi-bin/koha/authorities/export.pl?format=utf8&op=export&authid=[% authid %]">MARC (Unicode/UTF-8)</a></li>
+ </ul>
+ </div>
[% END %]
<div class="btn-group">
- <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">New authority
+ <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-plus"></i> New authority
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
--
1.7.9.5
More information about the Koha-patches
mailing list