|
71 | 71 | </div> |
72 | 72 | </div> |
73 | 73 |
|
74 | | - <div |
75 | | - ng-if="$ctrl.shouldShowAllLines()" |
76 | | - layout="row" |
77 | | - layout-align="start start" |
78 | | - class="display-block" |
79 | | - > |
80 | | - <div layout="column"> |
| 74 | + <div ng-init="$ctrl.hasAvailabilityLine = false"> |
| 75 | + <div |
| 76 | + ng-repeat="allLine in $ctrl.getAllLines() track by $index" |
| 77 | + layout="row" |
| 78 | + layout-align="start start" |
| 79 | + class="display-block" |
| 80 | + > |
81 | 81 | <div |
82 | | - ng-repeat="allLine in $ctrl.getAllLines() track by $index" |
| 82 | + layout="column" |
| 83 | + ng-if="!$ctrl.isAvailabilityLine(allLine)" |
83 | 84 | > |
84 | | - <div ng-if="!$ctrl.isAvailabilityLine(allLine)"> |
85 | | - <div> |
86 | | - <span |
87 | | - class="bold-text" |
88 | | - translate="{{allLine.key}}" |
89 | | - ></span> |
90 | | - <span |
91 | | - ng-repeat="lineItem in allLine.value track by $index" |
92 | | - > |
93 | | - <div> |
94 | | - <a |
95 | | - ng-if="$ctrl.isLink(lineItem)" |
96 | | - ng-href="{{lineItem}}" |
97 | | - >{{lineItem}}</a |
98 | | - > |
99 | | - <span |
100 | | - ng-if="!$ctrl.isLink(lineItem)" |
101 | | - ng-bind-html="lineItem" |
102 | | - ></span> |
103 | | - </div> |
104 | | - </span> |
105 | | - </div> |
| 85 | + <div> |
| 86 | + <span |
| 87 | + class="bold-text" |
| 88 | + translate="{{allLine.key}}" |
| 89 | + ></span> |
| 90 | + <span |
| 91 | + ng-repeat="lineItem in allLine.value track by $index" |
| 92 | + > |
| 93 | + <div> |
| 94 | + <a |
| 95 | + ng-if="$ctrl.isLink(lineItem)" |
| 96 | + ng-href="{{lineItem}}" |
| 97 | + >{{lineItem}}</a |
| 98 | + > |
| 99 | + <span |
| 100 | + ng-if="!$ctrl.isLink(lineItem)" |
| 101 | + ng-bind-html="lineItem" |
| 102 | + ></span> |
| 103 | + </div> |
| 104 | + </span> |
106 | 105 | </div> |
107 | 106 | </div> |
| 107 | + <div |
| 108 | + ng-if="$ctrl.isAvailabilityLine(allLine)" |
| 109 | + ng-init="$ctrl.hasAvailabilityLine = true" |
| 110 | + ></div> |
108 | 111 | </div> |
109 | 112 | </div> |
| 113 | + |
110 | 114 | <md-button |
111 | 115 | class="button-as-link link-alt-color" |
112 | | - (click)="$ctrl.$ctrl.parentCtrl.viewMore(!$ctrl.summaryLinesVisible, $event)" |
113 | | - ng-if="($ctrl.parentCtrl.currLoc.locationNoItems ? !$ctrl.parentCtrl.summaryLinesVisible : $ctrl.parentCtrl.summaryLinesVisible) && $ctrl.parentCtrl.currLoc.summaryHoldings.baseSummaryShort.length > 0 && $ctrl.parentCtrl.currLoc.isHoldingExpandedData" |
| 116 | + ng-click="$ctrl.parentCtrl.viewMore(!$ctrl.parentCtrl.summaryLinesVisible, $event)" |
| 117 | + ng-if="!$ctrl.hasAvailabilityLine && ($ctrl.parentCtrl.currLoc.locationNoItems ? !$ctrl.parentCtrl.summaryLinesVisible : $ctrl.parentCtrl.summaryLinesVisible) && $ctrl.parentCtrl.currLoc.summaryHoldings.baseSummaryShort.length > 0 && $ctrl.parentCtrl.currLoc.isHoldingExpandedData" |
114 | 118 | aria-label="{{'nui.aria.locations.viewLess' | translate}}" |
115 | | - ><span |
| 119 | + > |
| 120 | + <span |
116 | 121 | translate="nui.locations.viewLess" |
117 | 122 | class="bold-text" |
118 | | - ></span></md-button |
119 | | - ><md-button |
| 123 | + ></span> |
| 124 | + </md-button> |
| 125 | + <md-button |
120 | 126 | class="button-as-link link-alt-color" |
121 | | - (click)="$ctrl.parentCtrl.viewMore(!$ctrl.summaryLinesVisible, $event)" |
122 | | - ng-if="($ctrl.parentCtrl.currLoc.locationNoItems ? $ctrl.parentCtrl.summaryLinesVisible : !$ctrl.parentCtrl.summaryLinesVisible) && $ctrl.parentCtrl.currLoc.summaryHoldings.baseSummaryShort.length > 0 && $ctrl.parentCtrl.currLoc.isHoldingExpandedData" |
| 127 | + ng-click="$ctrl.parentCtrl.viewMore(!$ctrl.parentCtrl.summaryLinesVisible, $event)" |
| 128 | + ng-if="!$ctrl.hasAvailabilityLine && ($ctrl.parentCtrl.currLoc.locationNoItems ? $ctrl.parentCtrl.summaryLinesVisible : !$ctrl.parentCtrl.summaryLinesVisible) && $ctrl.parentCtrl.currLoc.summaryHoldings.baseSummaryShort.length > 0 && $ctrl.parentCtrl.currLoc.isHoldingExpandedData" |
123 | 129 | aria-label="{{'nui.aria.locations.viewMore' | translate}}" |
124 | | - ><span |
| 130 | + > |
| 131 | + <span |
125 | 132 | translate="nui.locations.viewMore" |
126 | 133 | class="bold-text" |
127 | | - ></span |
128 | | - ></md-button> |
| 134 | + ></span> |
| 135 | + </md-button> |
129 | 136 | </md-card-content> |
130 | 137 | </md-card> |
131 | 138 | </div> |
0 commit comments