Your API keys
-Description | -Key | -Active | -Actions | -
---|---|---|---|
[% key.description %] | -[% key.value %] | -[% IF key.active %]Yes[% ELSE %]No[% END %] | -- - |
No keys defined for the current patron.
+ [% END %]@@ -, +, @@ - Open a patron record and choose More -> Manage API keys. - There should be a standard message dialog containing a link to "Generate a new key." - Clicking the link should show the form for adding a new key. - Test that clicking the "Cancel" link hides the form. - Test that creating the new key works correctly. - You should now see a table showing existing keys and a "Generate a new key" button above it. - Test that the "Delete" button asks for confirmation, and that confirming and denying both work correctly. - Test that "Revoke" and "Activate" actions still work correctly. - Set the AllowPatronsManageAPIKeysInOPAC system preference to "Allow." - Log in to the OPAC and click the "your API keys" link in the sidebar. - Clicking the "Generate new key" button should display the form for adding a new key. - Clicking the "cancel" link should hide the form. - Submitting the form should add a new key. - You should now see a table showing existing keys. - Test that the "Delete" link asks for confirmation, and that confirming and denying both work correctly. - Test that "Revoke" and "Activate" actions still work correctly. - Set the AllowPatronsManageAPIKeysInOPAC system preference to "Don't allow." - Log in to the OPAC and confirm that the "your API keys" link in the sidebar is no longer visible. - Confirm that navigating directly to /cgi-bin/koha/opac-apikeys.pl results in a 404 error. --- .../prog/en/modules/members/apikeys.tt | 157 ++++++++++-------- .../bootstrap/en/modules/opac-apikeys.tt | 124 ++++++++------ opac/opac-apikeys.pl | 2 +- 3 files changed, 160 insertions(+), 123 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/apikeys.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/apikeys.tt @@ -1,4 +1,5 @@ [% USE Koha %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %]
Description | -Key | -Active | -Actions | -
---|---|---|---|
[% key.description %] | -[% key.value %] | -[% IF key.active %]Yes[% ELSE %]No[% END %] | -- - - | -
+ +
+Description | +Key | +Active | +Actions | +
---|---|---|---|
[% key.description %] | +[% key.value %] | +[% IF key.active %]Yes[% ELSE %]No[% END %] | ++ + + | +
Description | -Key | -Active | -Actions | -
---|---|---|---|
[% key.description %] | -[% key.value %] | -[% IF key.active %]Yes[% ELSE %]No[% END %] | -- - |
No keys defined for the current patron.
+ [% END %]