new patron page customization, default library loation
Can anyone tell me how I can disable/hide data entry fields on the new patron page? Also, is it possible to disable the multiple library locations feature so that I am only working with 1 default library? Thanks, Chris
Chris, Your first request would require editing the templates although there is a bug/enhancement request to make it easier in future editions. Your second request just requires that you turn on singlebranchmode - more info here: http://koha.org/documentation/manual/3.0/administration/global-system-prefer... --- Nicole C. Engard Open Source Evangelist, LibLime (888) Koha ILS (564-2457) ext. 714 nce@liblime.com AIM/Y!/Skype: nengard http://liblime.com http://blogs.liblime.com/open-sesame/ 2009/6/17 Chris Albrecht <chrisalbrecht@gmail.com>:
Can anyone tell me how I can disable/hide data entry fields on the new patron page?
Also, is it possible to disable the multiple library locations feature so that I am only working with 1 default library?
Thanks, Chris
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Can anyone tell me how I can disable/hide data entry fields on the new patron page?
We do a little bit of this with javascript. In System Preferences look for the intranetuserjs system pref. Then use a little jquery to hide lines based on the ID of the input field. Paste the following into intranetuserjs: $(document).ready(function(){ $("#entryform #initials").parent().remove(); }); That bit of code looks for an element with ID "entryform," (the patron entry form) and looks for an element with ID "initials" inside the form. Then it removes that element's "parent," the list item containing that form field. You'll have to view the source of the page to find out what the input field's ID is. For example: <input type="text" value="" size="20" name="othernames" id="othernames"/> If you used "othernames" in the code above it would hide the line labeled "Other name." Note that you can add as many lines as you want: $(document).ready(function(){ $("#entryform #initials").parent().remove(); $("#entryform #othernames").parent().remove(); $("#entryform #altcontactaddress1").parent().remove(); $("#entryform #altcontactaddress2").parent().remove(); $("#entryform #altcontactaddress3").parent().remove(); $("#entryform #altcontactzipcode").parent().remove(); }); -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
participants (3)
-
Chris Albrecht -
Nicole Engard -
Owen Leonard