dp2 icon indicating copy to clipboard operation
dp2 copied to clipboard

如何配置 dp2OPAC 每个分馆使用不同的 logo

Open DigitalPlatform opened this issue 3 years ago • 0 comments

修改 dp2OPAC 数据目录中 webui.xml 配置文件:

<root newStyle="true">
	<titleBarControl>
                ...
                ...
		<titleLeft>
			<img class='title_logo' src="./stylenew/%styledir%/logo%librarycode%/title_logo.gif" />
		</titleLeft>

其中 root/titleBarControl/titleLeft/img/@src 属性值定义了 logo 图片的物理路径。

默认安装的情况下,这个属性值是 "./stylenew/%styledir%/title_logo.gif" 上面例子中改为了 "./stylenew/%styledir%/logo%librarycode%/title_logo.gif"

注意修改后的这个属性值中使用了宏 %librarycode% 代表馆代码,最终兑现的时候可以为空或者某个具体的馆代码。这样配置,等于使用了不同的 logoxxx 子目录中的 title_logo.gif 文件(xxx 代表馆代码),每个文件就是具体的分馆(或者总馆)的 logo 图像文件,准备好这些文件即可。

DigitalPlatform avatar Sep 16 '22 09:09 DigitalPlatform