first_given_name second_given_name family_name alias
/],
"acn" => ["label"],
+ "acnp" => [{column => "label", alias => "prefix"}],
+ "acns" => [{column => "label", alias => "suffix"}],
"bre" => ["marc"],
"acpl" => ["name"],
"ahr" => ["id"]
"join" => {
"bre" => {
"field" => "id", "fkey" => "record"
+ },
+ "acnp" => {
+ "field" => "id", "fkey" => "prefix"
+ },
+ "acns" => {
+ "field" => "id", "fkey" => "suffix"
}
}
},
cgi.param("ses") || dojo.cookie("ses");
if (cgi.param("do") == "shelf_expired_holds") {
+ dojo.query("th[name=barcode_part]")[0].innerHTML = "Barcode"; /* XXX i18n. also, no support for part labels in this interface, at least for now */
dojo.byId("clear_holds_launcher").onclick = function() {
if (confirm("Are you sure you're ready to clear the expired holds from the shelf?")) { /* XXX i18n */
do_clear_holds(cgi);
<th>Author</th>
<th>Shelving Location</th>
<th>Call Number</th>
- <th>Barcode/Part</th>
+ <th name="barcode_part">Barcode/Part</th>
</tr>
</thead>
<tbody id='target'>
function(k) { hold.usr[k] = fields[k]; }
);
+ hold.current_copy.call_number.prefix = fields.prefix;
+ hold.current_copy.call_number.suffix = fields.suffix;
+ hold.current_copy.parts_stringified = ''; /* no real support for parts here */
return hold;
}
},
"oncomplete": function() {
progress_dialog.hide();
- if (any)
- window.print();
- else
- alert(dojo.byId("no_results").innerHTML);
+ setTimeout(
+ function() {
+ if (any) window.print();
+ else alert(dojo.byId("no_results").innerHTML);
+ }, 500 /* give the progress_dialog more time to go away */
+ );
}
}
);