Something I noticed.
in the eager-themes module of dspace-angular-dspace-7.6.2/src/themes/custom

import { ItemPageModule } from '../../app/item-page/item-page.module';
import { UntypedItemComponent } from 
'./app/item-page/simple/item-types/untyped-item/untyped-item.component';

So this is pointing to the custom themed version of untyped-item.component


but in the ../../app/item-page/item-page.module which would be 
/dspace-angular-dspace-7.6.2/src/app/item-page/item-page.module

import { UntypedItemComponent } from 
'./simple/item-types/untyped-item/untyped-item.component';

this is pointing to the default app version of untyped-item.component

What happens when eager-themes imports one version but a component imports 
a different version?

On Tuesday, October 8, 2024 at 12:55:11 PM UTC-7 [email protected] wrote:

> dspace 7.6.2
>
> using the custom theme.
>
>  If I modify untyped-item.component.ts in 
> dspace-angular-dspace-7.6.2/src/themes/custom/app/item-page/simple/item-types/untyped-item
>  
>     styleUrls: ['./untyped-item.component.scss'],
>   //styleUrls: 
> ['../../../../../../../app/item-page/simple/item-types/untyped-item/untyped-item.component.scss'],
>    templateUrl: './untyped-item.component.html',
>   //templateUrl: 
> '../../../../../../../app/item-page/simple/item-types/untyped-item/untyped-item.component.html',
>   
>   It does not use the local copy of untyped-item.component.html. It is 
> still using the one in 
>   
> dspace-angular-dspace-7.6.2/src/app/item-page/simple/item-types/untyped-item/
>   
>   
> but if I modify footer.component.ts in 
>  dspace-angular-dspace-7.6.2/src/themes/custom/app/footer
>
>    styleUrls: ['./footer.component.scss'],
>   //styleUrls: ['../../../../app/footer/footer.component.scss'],
>   templateUrl: './footer.component.html'
>   //templateUrl: '../../../../app/footer/footer.component.html'
>   
>  It works using the local copy of the footer.component.html
>
> What am I missing to get it to work?
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/be37ffdc-2902-4229-8156-88b96202fee2n%40googlegroups.com.

Reply via email to