diff options
Diffstat (limited to 'did-html.lsp')
-rw-r--r-- | did-html.lsp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/did-html.lsp b/did-html.lsp index 5918fa3..b3aab67 100644 --- a/did-html.lsp +++ b/did-html.lsp @@ -22,7 +22,7 @@ end %> </DL> <% end %> -<% displaycommandresults({"editdefinition", "deletedefinition", "publish", "publishall", "requestdid"}, session) %> +<% displaycommandresults({"editdefinition", "editdefinitionextension", "deletedefinition", "publish", "publishall", "requestdid"}, session) %> <% if data.value.did.value ~= "" or (data.value.extension and data.value.extension.value ~= "") or data.value.description.value ~= "" or data.value.identification.value ~= "" or data.value.department.value ~= "" then %> <H2>Search Description</H2> @@ -66,10 +66,17 @@ end <% for i,def in ipairs(subdata) do %> <TR> <TD> + <% if viewlibrary.check_permission("editdefinition") then %> <form action="/cgi-bin/acf/did/did/editdefinition" method="POST"> <input class="hidden" type="hidden" name="did" value="<%= html.html_escape(def.did) %>"> <input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(redirectstring) %>"> <input class="submit" type="submit" name="Edit" value="Edit"></form> + <% elseif viewlibrary.check_permission("editdefinitionextension") then %> + <form action="/cgi-bin/acf/did/did/editdefinitionextension" method="POST"> + <input class="hidden" type="hidden" name="did" value="<%= html.html_escape(def.did) %>"> + <input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(redirectstring) %>"> + <input class="submit" type="submit" name="Edit" value="Edit"></form> + <% end %> <% if viewlibrary.check_permission("publish") then %> <%= html.link{value = "publish?did=" .. def.did, label="Publish "} %> <% end %> |