<div dir="ltr"><div class="gmail_extra"><div>On Wed, Jul 31, 2013 at 4:43 PM, Galen Charlton <span dir="ltr"><<a href="mailto:gmc@esilibrary.com" target="_blank">gmc@esilibrary.com</a>></span> wrote:<br></div><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div class="gmail_extra"><div class="im">
<br><div class="gmail_quote">On Wed, Jul 31, 2013 at 12:33 PM, Heather Braum (NEKLS) <span dir="ltr"><<a href="mailto:hbraum@nekls.org" target="_blank">hbraum@nekls.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><span style="font-family:arial,sans-serif">We are interested at some point in a development that would hide the </span>"<span style="font-size:13px;font-family:arial,sans-serif">Edit items in batch"; "Delete items in batch"; and "</span><span style="font-size:13px;font-family:arial,sans-serif">Delete all items" options in the Edit menu of the <a href="http://detail.pl" target="_blank">detail.pl</a> page</span><span style="font-family:arial,sans-serif"> through either a user permission or a system preference. It was suggested I contact the developers list to see what community developers think about this as a permission vs system preference. </span></div>

</div></blockquote></div><div><br></div></div><div>I'm in favor of permissions (and also a little confused) because ... two of those menu options are already protected by permissions, specifically tools/items_batchdel and tools/items_batchmod.</div>

<div><br></div><div>There is no permission (other than the general permission that grants the ability to edit items) guarding the 'Delete all items' permission, but I think it would be reasonable to add one or two, perhaps along the lines of:</div>

<div><br></div><div>editcatalogue/delete_items</div><div>editcatalogue/delete_all_items<br></div><div><br></div><div></div></div></div></blockquote><div><br></div><div>As Galen points a real solution is to have permissions, but as a workaround you could try to hide those options</div>
<div>using intranetuserjs system preference, with this code</div><div><br></div><div><div>$(document).ready(function(){</div><div> var itemlinks = $("a:contains('Edit items in batch'),a:contains('Delete items in a batch'),a:contains('Delete all items')");</div>
<div> $(itemlinks).hide(); </div><div>});</div></div><div><br></div><div>As this value is stored in the database, you don't need to change anything after an upgrade, </div><div>unless the text in the options change, then you will only need to update the syspref.</div>
<div>Only a workaround.</div><div><br></div><div>Regards,</div><div>Bernardo</div><div><div>-- <div>Bernardo Gonzalez Kriegel</div><div><a href="mailto:bgkriegel@gmail.com" target="_blank">bgkriegel@gmail.com</a></div></div>
<br><br></div></div></div></div>