-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from HSG-Library/develop
Release v2024.2.13
- Loading branch information
Showing
10 changed files
with
95 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import { slspRenewItemTextModule } from './slsp-renew-item-text/slsp-renew-item-text.module' | ||
import { slspHideRapidoLoanLinkModule } from './slsp-hide-rapido-loan-link/slsp-hide-rapido-loan-link.module' | ||
|
||
export const hsgLoanAfterModule = angular | ||
.module('hsgLoanAfterModule', []) | ||
.component('prmLoanAfter', { | ||
bindings: { parentCtrl: '<' }, | ||
template: `<slsp-renew-item-text-component after-ctrl="$ctrl"></slsp-renew-item-text-component>` | ||
template: ` | ||
<slsp-renew-item-text-component after-ctrl="$ctrl"></slsp-renew-item-text-component> | ||
<slsp-hide-rapido-loan-link-component after-ctrl="$ctrl"></slsp-hide-rapido-loan-link-component> | ||
` | ||
}) | ||
|
||
hsgLoanAfterModule.requires.push(slspRenewItemTextModule.name) | ||
hsgLoanAfterModule.requires.push(slspHideRapidoLoanLinkModule.name) |
26 changes: 26 additions & 0 deletions
26
...odules/prm-loan-after/slsp-hide-rapido-loan-link/slsp-hide-rapido-loan-link.controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export class slspHideRapidoLoanLinkController { | ||
constructor($element) { | ||
this.itemType = null | ||
this.itemBarcode = null | ||
this.hideTitle = false | ||
this.$element = $element | ||
} | ||
|
||
$onInit() { | ||
this.parentCtrl = this.afterCtrl.parentCtrl | ||
this.itemBarcode = this.parentCtrl.item.itembarcode | ||
this.itemType = this.parentCtrl.loansService.requestParams.type | ||
|
||
if (this.itemBarcode.includes("RAPIDO") || this.itemBarcode.includes("41SLSP")) { | ||
this.setTitle = setTitle | ||
function setTitle() { | ||
return this.parentCtrl.item.title | ||
} | ||
this.hideTitle = true | ||
// Hinzufügen der hide-title Klasse zum Großelternelement prm-loan | ||
this.$element.parent().parent().addClass('hide-title') | ||
} | ||
} | ||
} | ||
|
||
slspHideRapidoLoanLinkController.$inject = ['$element'] |
1 change: 1 addition & 0 deletions
1
js/modules/prm-loan-after/slsp-hide-rapido-loan-link/slsp-hide-rapido-loan-link.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div ng-if="$ctrl.itemBarcode.includes('RAPIDO') || $ctrl.itemBarcode.includes('41SLSP')" class="loan-item-title">{{$ctrl.setTitle()}}</div> |
11 changes: 11 additions & 0 deletions
11
js/modules/prm-loan-after/slsp-hide-rapido-loan-link/slsp-hide-rapido-loan-link.module.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { slspHideRapidoLoanLinkController } from './slsp-hide-rapido-loan-link.controller' | ||
import { slspHideRapidoLoanLinkHtml } from './slsp-hide-rapido-loan-link.html' | ||
|
||
export const slspHideRapidoLoanLinkModule = angular | ||
.module('slspHideRapidoLoanLinkModule', []) | ||
.controller('slspHideRapidoLoanLinkController', slspHideRapidoLoanLinkController) | ||
.component('slspHideRapidoLoanLinkComponent', { | ||
bindings: { afterCtrl: '<' }, | ||
controller: 'slspHideRapidoLoanLinkController', | ||
template: slspHideRapidoLoanLinkHtml | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters