s.SERIALS_SCAP_FAIL_DELETE = "[% l('Failed to delete serial prediction pattern') %]";
s.SERIALS_ISSUANCE_FAIL_SAVE = "[% l('Failed to save issuance') %]";
s.SERIALS_ISSUANCE_SUCCESS_SAVE = "[% l('Issuance saved') %]";
+ s.SERIALS_ITEM_NOTE_FAIL_SAVE = "[% l('Failed to save item notes') %]";
+ s.SERIALS_ITEM_NOTE_SUCCESS_SAVE = "[% l('Item notes saved') %]";
s.SERIALS_DISTRIBUTION_SUCCESS_LINK_MFHD = "[% l('Distribution linked to MFHD') %]";
s.SERIALS_DISTRIBUTION_FAIL_LINK_MFHD = "[% l('Failed to link distribution to MFHD') %]";
s.SERIALS_DISTRIBUTION_SUCCESS_BINDING_TEMPLATE = "[% l('Binding unit template applied to Distribution') %]";
<div class="row">
<div class="col-md-3">
<b>[% l('Library : Distribution/Stream') %]</b>
+ <br/>
+ <dl class="dl-horizontal"><dt>[% l('Item notes') %]</dt></dl>
</div>
<div class="col-md-1">
<b>[% l('Issuance') %]</b>
<div class="row" ng-repeat="item in items">
<div class="col-md-3">
{{item.stream().distribution().holding_lib().name()}}: {{item.stream().distribution().label()}}/{{item.stream().routing_label()}}
+ <dl class="dl-horizontal">
+ <div ng-repeat="note in item.notes()">
+ <dt>{{note.title()}}</dt>
+ <dd>{{note.value()}}</dd>
+ </div>
+ <dl>
</div>
<div class="col-md-1">
{{item.issuance().label()}}
backdrop: 'static',
keyboard: false
}).result.then(function(notes) {
- console.log('results',notes);
egCore.pcrud.apply(notes).then(
- function(a) { console.log('toast here 1',a); },
- function(a) { console.log('toast here 2',a); }
+ function(a) { ngToast.success(egCore.strings.SERIALS_ITEM_NOTE_SUCCESS_SAVE) },
+ function(a) { ngToast.danger(egCore.strings.SERIALS_ITEM_NOTE_FAIL_SAVE) }
);
});
}
if ( (typeof note.title != 'undefined' && note.title != '')
|| (typeof note.value != 'undefined' && note.value != '')) {
angular.forEach(rows, function (r) {
- console.log('r',r);
- window.my_r = r;
var n;
switch(note_type) {
case 'subscription':
return_notes.push( n );
}
});
- window.return_notes = return_notes;
$uibModalInstance.close(return_notes);
}
order_by : [{class:'sitem',field:'date_expected'}], // best aprox of pub date
flesh : 1,
flesh_fields : {
- sitem : ['issuance','editor','creator','unit','url']
+ sitem : ['notes','issuance','editor','creator','unit','url']
}
});
if (sort) {