my $itype = $cgi->param('itype');
my $ccode = $cgi->param('ccode');
+my $homebranch = $cgi->param('homebranch');
my $holdingbranch = $cgi->param('holdingbranch');
my $location = $cgi->param('location');
my $staff_note = $cgi->param('staff_note');
my $itype_enabled = scalar $cgi->param('itype_enabled') ? 1 : 0;
my $ccode_enabled = scalar $cgi->param('ccode_enabled') ? 1 : 0;
+my $homebranch_enabled = scalar $cgi->param('homebranch_enabled') ? 1 : 0;
my $holdingbranch_enabled = scalar $cgi->param('holdingbranch_enabled') ? 1 : 0;
my $location_enabled = scalar $cgi->param('location_enabled') ? 1 : 0;
itype => $itype,
ccode => $ccode,
holdingbranch => $holdingbranch,
+ homebranch => $homebranch,
location => $location,
itype_enabled => $itype_enabled,
ccode_enabled => $ccode_enabled,
holdingbranch_enabled => $holdingbranch_enabled,
+ homebranch_enabled => $homebranch_enabled,
location_enabled => $location_enabled,
);
</li>
<li>
+ <label class="required" for="homebranch">Home library:</label>
+ <input type="checkbox" value="1" class="field-toggle" data-pulldown="homebranch" name="homebranch_enabled" id="homebranch_enabled" />
+ <select id="homebranch" name="homebranch" disabled="disabled">
+ <option value=""></option>
+ [% FOREACH b IN Branches.all() %]
+ <option value="[% b.branchcode | html %]">[% b.branchname | html %]</option>
+ [% END %]
+ </select>
+ </li>
+
+ <li>
<label class="required" for="holdingbranch">Holding library:</label>
<input type="checkbox" value="1" class="field-toggle" data-pulldown="holdingbranch" name="holdingbranch_enabled" id="holdingbranch_enabled" />
<select id="holdingbranch" name="holdingbranch" disabled="disabled">