--- /dev/null
+<ul>
+ <li ng-repeat="hold in holds">
+ {{bibData[hold.id()].title()}} / {{bibData[hold.id()].author()}}<br>
+ <a href="./cat/item/{{hold.current_copy().id()}}" target="_blank">
+ {{hold.current_copy().barcode()}}
+ <span class="glyphicon glyphicon-new-window"></span>
+ </a>
+ </li>
+</ul>
<eg-grid-field label="[% l('Patron') %]" path="slot.patron">
<a href="./circ/patron/{{item.slot.patron().id()}}/holds" target="_blank">
{{item.slot.patron().family_name()}} / {{item.slot.patron().card().barcode()}}
- <span ng-show="item.id" class="glyphicon glyphicon-new-window"></span>
+ <span class="glyphicon glyphicon-new-window"></span>
</a>
</eg-grid-field>
<eg-grid-field label="[% l('Appointment ID') %]" path="slot.id"></eg-grid-field>
- <eg-grid-field label="[% l('Items for Pickup') %]" path="holds">
- TODO
+ <eg-grid-field label="[% l('Items for Pickup') %]" path="holds" compiled>
+ <eg-curbside-holds-list holds="item.holds" bib-data="item.bib_data_by_hold"></eg-curbside-holds-list>
</eg-grid-field>
<eg-grid-field label="[% l('Action') %]">
- <button class="btn btn-sm btn-primary">[% l('Staged') %]</button>
+ <button class="btn btn-sm btn-primary">[% l('Mark As Staged And Ready') %]</button>
</eg-grid-field>
</eg-grid>
</div>
};
return service;
-}]);
+}])
+
+.directive('egCurbsideHoldsList', function() {
+ return {
+ restrict : 'E',
+ transclude: true,
+ templateUrl : './circ/curbside/t_holds_list',
+ scope : {
+ holds : '=',
+ bibData : '='
+ },
+ controller : [
+ '$scope','egCore',
+ function($scope , egCore) {
+ }
+ ]
+ }
+});