var value = pattern_code[i + 1];
if (_needed_fields.indexOf(subfield) != -1)
- fields.push({"subfield": subfield, "caption": value});
+ fields.push({"subfield": subfield, "caption": value, "pattern_value": value});
}
if (!fields.length) {
dojo.create("td", {"innerHTML": field.caption}, tr);
/* Any more special cases than this and we should switch to a dispatch
- * table or somethingl. */
+ * table or something. */
var input;
- if (field.subfield == "j") {
+ if (field.pattern_value.match(/season/)) {
input = new dijit.form.FilteringSelect(
{
"name": field.subfield,
var link = dojo.byId("siss_label_here");
link.onclick = function() {
location.href = oilsBasePath +
- "/eg/serial/subscription?id=" +
+ "/serial/subscription?id=" +
r.subscription() + "&tab=issuances";
}
link.innerHTML = r.label();
var link = dojo.byId("sdist_label_here");
link.onclick = function() {
location.href = oilsBasePath +
- "/eg/serial/subscription?id=" +
+ "/serial/subscription?id=" +
r.subscription() + "&tab=distributions";
}
link.innerHTML = r.label();