$("input[id^='hidden-']").each(function() {
populateHiddenCheckboxes($(this).attr('id').split('-')[1]);
});
+
});
/*function displayMoreConstraint(numlayer){
function setHiddenValue() {
var tab = $(this).attr('id').split('_')[2];
+ var flagged_checked = $("#hidden_flagged_" + tab).is(':checked');
var opac_checked = $("#hidden_opac_" + tab).is(':checked');
var intranet_checked = $("#hidden_intranet_" + tab).is(':checked');
var editor_checked = $("#hidden_editor_" + tab).is(':checked');
var collapsed_checked = $("#hidden_collapsed_" + tab).is(':checked');
var hidden_value = "";
- if ( opac_checked && ! intranet_checked && ! editor_checked && collapsed_checked ) {
+ $(function() {
+ enable_cb();
+ $("#hidden_flagged_" + tab).click(enable_cb());
+ });
+
+ function enable_cb() {
+ if ($("#hidden_flagged_" + tab).is(':checked')) {
+ $('.inclusive_' + tab).attr('disabled',true).removeAttr('checked');
+ }
+ else {
+ $('.inclusive_' + tab).removeAttr('disabled');
+ }
+ }
+
+ if ( flagged_checked ) {
+ hidden_value='-8';
+ } else if ( opac_checked && ! intranet_checked && ! editor_checked && collapsed_checked ) {
hidden_value='-7';
} else if ( opac_checked && intranet_checked && ! editor_checked && ! collapsed_checked) {
hidden_value='-6';
}
$('#hidden-' + tab).val(hidden_value);
+
}
function populateHiddenCheckboxes(tab) {
var intranet_checked = false;
var editor_checked = false;
var collapsed_checked = false;
+ var flagged_checked = false;
- if ( hidden_value == '-7') {
+
+
+ if ( hidden_value == '-8' ) {
+ flagged_checked = true;
+ } else if ( hidden_value == '-7') {
opac_checked = true;
collapsed_checked = true;
} else if ( hidden_value == '-6' ) {
collapsed_checked = true;
} // else if ( hidden_value == '8') { skip }
+
$("#hidden_opac_" + tab).attr('checked',opac_checked);
$("#hidden_intranet_" + tab).attr('checked',intranet_checked);
$("#hidden_editor_" + tab).attr('checked',editor_checked);
$("#hidden_collapsed_" + tab).attr('checked',collapsed_checked);
+
+
}
//]]>
<li><label for="maxlength[% loo.row %]">Max length:</label><input type="text" id="maxlength[% loo.row %]" name="maxlength" value="[% loo.maxlength %]" size="4" /> (see online help)</li>
<li><input type="hidden" id="hidden-[% loo.row %]" name="hidden" value="[% loo.hidden %]" />
<label for="hidden[% loo.row %]">Visibility: </label>
- <input class="radio" type="checkbox" id="hidden_opac_[% loo.row %]" name="hidden_opac_[% loo.row %]"/> OPAC
- <input type="checkbox" id="hidden_intranet_[% loo.row %]" name="hidden_intranet_[% loo.row %]"/> Intranet
- <input type="checkbox" id="hidden_editor_[% loo.row %]" name="hidden_editor_[% loo.row %]"/> Editor
- <input type="checkbox" id="hidden_collapsed_[% loo.row %]" name="hidden_collapsed_[% loo.row %]"/> Collapsed
+ <input type="checkbox" id="hidden_opac_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_opac_[% loo.row %]"/> OPAC
+ <input type="checkbox" id="hidden_intranet_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_intranet_[% loo.row %]"/> Intranet
+ <input type="checkbox" id="hidden_editor_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_editor_[% loo.row %]"/> Editor
+ <input type="checkbox" id="hidden_collapsed_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_collapsed_[% loo.row %]"/> Collapsed
+ <input type="checkbox" id="hidden_flagged_[% loo.row %]" name="flagged_[% loo.row %]"/> Flagged
</li>
<li><label for="isurl[% loo.row %]">Is a URL:</label>[% loo.isurl %] (if checked, it means that the subfield is a URL and can be clicked)</li>
<li><label for="link[% loo.row %]">Link:</label><input type="text" id="link[% loo.row %]" name="link" value="[% loo.link %]" size="10" maxlength="80" /> (e.g., Title or Local-Number) <span class="error"><em>NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.</em></span></li>
</li>
</ul>
<ul>
- <li>hidden
-<ul>
- <li>allows you to select from 19 possible visibility conditions, 17 of which are implemented. They are the following:
-<ul>
- <li>-9 => Future use</li>
- <li>-8 => Flag</li>
- <li>-7 => OPAC !Intranet !Editor Collapsed</li>
- <li>-6 => OPAC Intranet !Editor !Collapsed</li>
- <li>-5 => OPAC Intranet !Editor Collapsed</li>
- <li>-4 => OPAC !Intranet !Editor !Collapsed</li>
- <li>-3 => OPAC !Intranet Editor Collapsed</li>
- <li>-2 => OPAC !Intranet Editor !Collapsed</li>
- <li>-1 => OPAC Intranet Editor Collapsed</li>
- <li>0 => OPAC Intranet Editor !Collapsed</li>
- <li>1 => !OPAC Intranet Editor Collapsed</li>
- <li>2 => !OPAC !Intranet Editor !Collapsed</li>
- <li>3 => !OPAC !Intranet Editor Collapsed</li>
- <li>4 => !OPAC Intranet Editor !Collapsed</li>
- <li>5 => !OPAC !Intranet !Editor Collapsed</li>
- <li>6 => !OPAC Intranet !Editor !Collapsed</li>
- <li>7 => !OPAC Intranet !Editor Collapsed</li>
- <li>8 => !OPAC !Intranet !Editor !Collapsed</li>
- <li>9 => Future use</li>
-</ul>
-</li>
- <li>( ! means 'not visible' or in the case of Collapsed 'not Collapsed')</li>
+ <li>Visibility
+<ul>
+ <li>Allows you to set the visibility options for a MARC field.</li>
+ <ul>
+ <li><strong>OPAC</strong> - Checking this box determines whether the subfield is visible in the public interface. Unchecking it hides the field in the public interface.</li>
+ <li><strong>Intranet</strong> - Checking this box determines whether the subfield is visible in the staff interface. Unchecking it hides the field in the staff interface.</li>
+ <li><strong>Editor</strong> - Checking this box makes the subfield available to the MARC editor. Unchecking it indicates the field should not be shown in the editor.</li>
+ <li><strong>Collapsed</strong> - Checking this box determines whether the subfield is expanded or collapsed in the MARC editor; the subfield will appear as a clickable link to expand and edit the subfield. Unchecking it indicates that the field will be expanded by default.</li>
+ <li><strong>Flagged</strong> - This setting is exclusive of all other visibility options, and flags the field.</li>
</ul>
</li>
</ul>