features="-sort,-multisort"
id-field="id"
idl-class="rmsr"
- auto-fields="true"
items-provider="gridDataProvider"
menu-label="[% l('Buckets') %]"
persist-key="cat.bucket.record.pending">
<eg-grid-action label="[% l('Clear List') %]"
handler="resetPendingList"></eg-grid-action>
+ <eg-grid-field path="id" required hidden></eg-grid-field>
+ <eg-grid-field path="tcn_value" label="[% l('TCN Value') %]"></eg-grid-field>
+ <eg-grid-field path="tcn_source" label="[% l('TCN Source') %]"></eg-grid-field>
+
<eg-grid-field label="[% l('Title') %]" path="title">
<a target="_blank" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.id}}">
{{item.title}} <span ng-show="item.id" class="glyphicon glyphicon-new-window"/>
</a>
</eg-grid-field>
+
+ <eg-grid-field path="author" label="[% l('Author') %]"></eg-grid-field>
+ <eg-grid-field path="pubdate" label="[% l('Publication Year') %]"></eg-grid-field>
+ <eg-grid-field path="isbn" label="[% l('ISBN') %]"></eg-grid-field>
+ <eg-grid-field path="issn" label="[% l('ISSN') %]"></eg-grid-field>
+ <eg-grid-field label="[% l('Deleted?') %]" path="biblio_record.deleted"></eg-grid-field>
+
</eg-grid>
ng-hide="forbidden"
id-field="id"
idl-class="rmsr"
- auto-fields="true"
grid-controls="gridControls"
menu-label="[% l('Buckets') %]"
persist-key="cat.bucket.record.search">
<eg-grid-action label="[% l('Add To Bucket') %]"
handler="addToBucket"></eg-grid-action>
+ <eg-grid-field path="id" required hidden></eg-grid-field>
+ <eg-grid-field path="tcn_value" label="[% l('TCN Value') %]"></eg-grid-field>
+ <eg-grid-field path="tcn_source" label="[% l('TCN Source') %]"></eg-grid-field>
+
<eg-grid-field label="[% l('Title') %]" path="title">
<a target="_blank" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.id}}">
{{item.title}} <span ng-show="item.id" class="glyphicon glyphicon-new-window"/>
</a>
</eg-grid-field>
+
+ <eg-grid-field path="author" label="[% l('Author') %]"></eg-grid-field>
+ <eg-grid-field path="pubdate" label="[% l('Publication Year') %]"></eg-grid-field>
+ <eg-grid-field path="isbn" label="[% l('ISBN') %]"></eg-grid-field>
+ <eg-grid-field path="issn" label="[% l('ISSN') %]"></eg-grid-field>
+ <eg-grid-field label="[% l('Deleted?') %]" path="biblio_record.deleted"></eg-grid-field>
+
</eg-grid>
ng-hide="forbidden"
id-field="id"
idl-class="rmsr"
- auto-fields="true"
grid-controls="gridControls"
menu-label="[% l('Buckets') %]"
persist-key="cat.bucket.record.view">
handler="openExportBucketDialog"></eg-grid-action>
<eg-grid-field path="id" required hidden></eg-grid-field>
+ <eg-grid-field path="tcn_value" label="[% l('TCN Value') %]"></eg-grid-field>
+ <eg-grid-field path="tcn_source" label="[% l('TCN Source') %]"></eg-grid-field>
<eg-grid-field label="[% l('Title') %]" path="title">
<a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.id}}">
</a>
</eg-grid-field>
+ <eg-grid-field path="author" label="[% l('Author') %]"></eg-grid-field>
+ <eg-grid-field path="pubdate" label="[% l('Publication Year') %]"></eg-grid-field>
+ <eg-grid-field path="isbn" label="[% l('ISBN') %]"></eg-grid-field>
+ <eg-grid-field path="issn" label="[% l('ISSN') %]"></eg-grid-field>
+
<eg-grid-field label="[% l('Deleted?') %]" path="biblio_record.deleted"></eg-grid-field>
<!-- TODO: this adds much delay to call
// is not a full "mwde" object. Instead it's a single
// non-multi-field, JSON-encoded value.
item['biblio_record.wide_display_entry.edition'] =
- JSON.parse(item['biblio_record.wide_display_entry.edition'])
- || '';
+ item['biblio_record.wide_display_entry.edition'] ?
+ JSON.parse(item['biblio_record.wide_display_entry.edition']) :
+ '';
+
+ // Clean up PG text[] cruft
+ if (item.isbn) {
+ item.isbn = item.isbn.replace(/(^\{|\}$)/g, '');
+ }
+
+ if (item.issn) {
+ item.issn = item.issn.replace(/(^\{|\}$)/g, '');
+ }
}
};