[% l('Stack subfields') %]
</label>
</div>
- <div class="">
+ <div class="col-md-2">
<div class="input-group pad-horiz">
<span class="input-group-addon"><b>[% l('Record Type') %]</b></span>
<span class="input-group-addon">{{calculated_record_type}}</span>
<textarea class="marcflateditor" cols="120" rows="40" ng-model="flat_text_marc" ng-blur="saveFlatTextMARC()"></textarea>
</div>
<div ng-show="!flatEditor.isEnabled">
- <div class="row pad-vert">
+ <div class="row pad-vert marcffcontainer">
<div class="marcffeditor">
<div class="row col-md-12">
<eg-marc-edit-fixed-field fixed-field="Type" fixed-field-label="[% l('Type') | html %]" record="record"></eg-marc-edit-fixed-field>
</div>
</div>
</div>
- <div class="marcrecord pad-vert">
+ <div>
<div uib-collapse="!showHelp">
- <div class="row">
+ <div class="row keyboardhelp">
<div class="col-md-4">
<ul>
<li>[% l('Undo: CTRL-z') %]</li>
</div>
</div>
<div>
- <eg-marc-edit-leader record="record" on-keydown="onKeydown"/>
- </div>
- <div>
- <eg-marc-edit-controlfield
- ng-repeat="field in controlfields"
- field="field" on-keydown="onKeydown"
- id="r{{field.record.subfield('901','c')[1]}}f{{field.position}}"
- context-functions="context_functions"
- />
- </div>
- <div>
- <eg-marc-edit-datafield
- ng-repeat="field in datafields"
- field="field" on-keydown="onKeydown"
- id="r{{field.record.subfield('901','c')[1]}}f{{field.position}}"
- context-functions="context_functions"
- />
+ <div class="marcrecord">
+ <div>
+ <eg-marc-edit-leader record="record" on-keydown="onKeydown"/>
+ </div>
+ <div>
+ <eg-marc-edit-controlfield
+ ng-repeat="field in controlfields"
+ field="field" on-keydown="onKeydown"
+ id="r{{field.record.subfield('901','c')[1]}}f{{field.position}}"
+ context-functions="context_functions"
+ />
+ </div>
+ <div>
+ <eg-marc-edit-datafield
+ ng-repeat="field in datafields"
+ field="field" on-keydown="onKeydown"
+ id="r{{field.record.subfield('901','c')[1]}}f{{field.position}}"
+ context-functions="context_functions"
+ />
+ </div>
</div>
</div>
</div>
<input
ng-show="itype != 'sfv'"
ng-disabled="{{isInputDisabled}}"
- ng-class="['marcedit', {'marcsfcode': itype == 'sfc','marcind': itype == 'ind' || itype == 'tag', 'focusable': itype != 'sfv'}]"
- style="font-family: 'Lucida Console', Monaco, monospace; min-width: 1ch; margin: 0 -2px;"
+ ng-class="['marcedit', {'marcsfcode': itype == 'sfc','marcind': itype == 'ind', 'marctag': itype == 'tag', 'focusable': itype != 'sfv'}]"
+ style="font-family: 'Lucida Console', Monaco, monospace; min-width: 1ch; margin: 2px 2px;"
ng-model="content"
size="{{content.length * 1.1}}"
maxlength="{{max}}"
class=""
ng-class="['marcedit', {'marcsfvalue': itype == 'sfv', 'focusable': itype == 'sfv'}]"
ng-show="itype == 'sfv'"
- style="font-family: 'Lucida Console', Monaco, monospace; display: inline-block; min-width: 1ch; margin: 0 -1px; padding: 0;"
+ style="font-family: 'Lucida Console', Monaco, monospace; display: inline-block; min-width: 20ch; margin: 0 -1px; padding: 0 5px; border-left: 1px solid gray !important;"
ng-model="content"
>{{content}}</div>
</span>
}
.marcrecord {
- //background-color: #f5f5f5;
+ background-color: #ddd;
+ padding: 10px; /* provide consistant space around marc field editor */
+ margin: 0 -15px; /* line up editing sections left and right */
}
.marcflateditor {
}
.marcedit {
- background-color: #f5f5f5;
+ background-color: #fff;
border-collapse: collapse;
border: solid thin gray;
padding: 0px 5px 0px 5px;
background-color: lightcyan;
}
+.keyboardhelp {
+ background-color: #fff;
+ border-bottom: 1px solid gray;
+}
+
.marcffeditor {
max-width: 800px;
}
.fixed-field-box {
- border: 1px solid gray;
+ border: none;
+}
+.marcffcontainer {
+ background-color: lightcyan;
+ border-bottom: 1px solid gray;
}
-
.marcsfvalue {
- border-left: 0px !important;
+ border-left: 1px !important;
}
.marcsfcode {
color: blue;
font-weight: normal;
text-align: center;
- padding-left: 0px !important;
- border-left: 0px !important;
- border-right: 0px !important;
+ margin-left: 0px !important;
+ width: 1.5em;
}
.marcsfcodedelimiter {
+ background-color: #ddd;
color: blue;
font-family: 'Lucida Console', Monaco, monospace;
font-weight: normal;
text-align: center;
padding-right: 0px !important;
- border-right: 0px !important;
+ border: none !important;
}
.unvalidatedheading {
text-align: center;
}
+.marcind {
+ width: 1.5em;
+}
+.marctag {
+ width: 2.6em;
+}
+
.marcEditableControlfield {
text-align: left;
}
overflow-x: scroll;
overflow-y: scroll;
white-space: nowrap;
-}
-
+}
\ No newline at end of file