mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 12:03:03 +00:00
59695: Fix AoT error and console warning
This commit is contained in:
@@ -39,6 +39,13 @@ export class BrowseByStartsWithAbstractComponent implements OnInit, OnDestroy {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get startsWith as a number;
|
||||||
|
*/
|
||||||
|
getStartsWithAsNumber() {
|
||||||
|
return +this.startsWith;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the startsWith by event
|
* Set the startsWith by event
|
||||||
* @param event
|
* @param event
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group input-group col-7 col-md-6">
|
<div class="form-group input-group col-7 col-md-6">
|
||||||
<input class="form-control" placeholder="{{'browse.startsWith.type_year' | translate}}" type="number" name="startsWith" formControlName="startsWith" [value]="+startsWith" />
|
<input class="form-control" placeholder="{{'browse.startsWith.type_year' | translate}}" type="number" name="startsWith" formControlName="startsWith" [value]="getStartsWithAsNumber()" />
|
||||||
<span class="input-group-append">
|
<span class="input-group-append">
|
||||||
<button class="btn btn-secondary" type="submit">{{'browse.startsWith.submit' | translate}}</button>
|
<button class="btn btn-secondary" type="submit">{{'browse.startsWith.submit' | translate}}</button>
|
||||||
</span>
|
</span>
|
||||||
|
Reference in New Issue
Block a user