Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DigitalPlatform opened this issue Sep 16, 2022 · 0 comments
Open

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

DigitalPlatform opened this issue Sep 16, 2022 · 0 comments

Comments

@DigitalPlatform
Copy link
Owner

DigitalPlatform commented Sep 16, 2022

修改 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 图像文件,准备好这些文件即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant