[Koha] Cleaning up Patron Details (JQuery)

BRANNON, CHRISTOPHER CBRANNON at cdalibrary.org
Tue Sep 18 09:54:44 NZST 2012


The following was just added to the JQuery library wiki:

Clean up patron details screen 
. Developer: Christopher Brannon (Coeur d'Alene Public Library)
. Purpose: Remove unused lines in the Alternate address or Alternative contact sections of the Patron Details screen.
. Status: Completed
. Intranet or OPAC?: Intranet
. Version: Any
//Condense Patron Display
$("#patron-alternate-address,#patron-alternative-contact").find("li").hide();
$("#patron-alternate-address li,#patron-alternative-contact li") 
  .contents() 
  .filter(function() { 
    return this.nodeType == Node.TEXT_NODE; 
  }).wrap("<span class='availablecontent'/>"); 
$("#patron-alternate-address,#patron-alternative-contact").find(".availablecontent").each(function() {
$(this).parent("li").show();
});
//end Condense Patron Display
___________________________
Christopher Brannon
IT Coordinator

Coeur d'Alene Public Library
702 E Front Ave
Coeur d'Alene, ID 83814
(208)769-2315 Ext. 456
cbrannon at cdalibrary.org
www.cdalibrary.org
Keep tabs on us at: 
 


More information about the Koha mailing list