Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
barcode/etc/barcode.conf
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
78 lines (62 sloc)
2.7 KB
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
macro MEDV http://twiki.molgen.mpg.de/foswiki/Medv | |
macro MEDVEDIT http://twiki.molgen.mpg.de/foswiki/bin/edit/Medv | |
macro PREFIX /project/barcode | |
path logfile ${PREFIX}/log/barcodes.log | |
path dbfile ${PREFIX}/db/scanner.sqlite3 | |
# wenn ein alias existiert, wird auch eine life-refreshseite unter diesem alias erreichbar | |
alias CDDCDCC34B72704F9374DD29325F75F1 IT | |
alias 3F5884C47698DB4A95E444878372B354 SA | |
alias E791F9C7D956FF49A1E283B49C62C209 SB | |
alias A2583842F33642ABB4739A6E197A995E PM | |
regex (MOGE\d{11}) <a href="${MEDV}/InvReg$1">$1</a> | |
macro URLSERIAL <a href="http://afk.molgen.mpg.de:3333/serial.pl?s=$1" target="_blank">$1</a> | |
regex ^([0-9A-Z]{8})\.?$ ${URLSERIAL} | |
#macro MOGERE (MOGE\d{11}) | |
#retype ${MOGERE} SAP number | |
#re2lnk ${MOGERE} <a href="${MEDV}/InvReg$1">$1</a> | |
#re2url ${MOGERE} ${MEDV}/InvReg$1 | |
macro MOGERE (MOGE\d{11}) | |
retype ${MOGERE} SAP number | |
re2lnk ${MOGERE} <a href="${MEDV}/InvReg$1">$1</a> <a href="${MEDVEDIT}/?topic=InvReg$1&templatetopic=InvRegTemplate&topicparent=Medv.InvRegIndex" target="_blank">[create]</a> | |
re2url ${MOGERE} ${MEDV}/InvReg$1 | |
macro HDDSER ^([0-9A-Z]{8})\.?$ | |
retype ${HDDSER} HDD serial | |
re2lnk ${HDDSER} <a href="http://afk.molgen.mpg.de:3333/serial.pl?s=$1" target="_blank">$1</a> | |
re2url ${HDDSER} http://afk.molgen.mpg.de:3333/serial.pl?s=$1 | |
macro HDDMODEL ^(\ST\d+(?:[NA]S|[A-Z][A-Z]\d+))$ | |
re2lnk ${HDDMODEL} <a href="http://afk.molgen.mpg.de:3333/disk-$1.html" target="_blank">$1</a> | |
re2url ${HDDMODEL} http://afk.molgen.mpg.de:3333/disk-$1.html | |
retype ${HDDMODEL} HDD model | |
macro EPRUEF ^(OVG[0-9]{6}) | |
retype ${EPRUEF} El. Pruef. | |
re2lnk ${EPRUEF} <a href="/epruef/$1">$1</a> | |
re2url ${EPRUEF} relocator | |
macro ZIPPY ^(20\d\d\d{4}P\d{6}) | |
retype ${ZIPPY} Zippy Netzteil | |
re2lnk ${ZIPPY} <a href="/zippy/$1">$1</a> | |
re2url ${ZIPPY} relocator | |
# 00387142313621936397 | |
macro CANONCID ^(00\d{18}) | |
retype ${CANONCID} CANON Case ID | |
re2lnk ${CANONCID} <a href="/canoncid/$1">$1</a> | |
re2url ${CANONCID} relocator | |
# X4035 | |
macro JBODID ^([CX]\d{4}) | |
retype ${JBODID} JBOD Label | |
re2lnk ${JBODID} <a href="http://afk.molgen.mpg.de:3333/label-$1.html" target="_blank">$1</a> | |
re2url ${JBODID} http://afk.molgen.mpg.de:3333/label-$1.html | |
# 2.3.15/B34 | |
macro ROOMRACK ^(\d\.\d\.\d+)\/(B\d\d) | |
retype ${ROOMRACK} RACK T3 | |
re2lnk ${ROOMRACK} <a href="http://room.molgen.mpg.de/$1" target="_blank">$1</a> <a href="http://room.molgen.mpg.de/$2" target="_blank">$2</a> | |
re2url ${ROOMRACK} http://room.molgen.mpg.de/$1 | |
# GL89C72 | |
macro DELLID ^([A-Z0-9]{7})$ | |
retype ${DELLID} Dell Serial | |
re2lnk ${DELLID} <a href="https://qrl.dell.com/$1" target="_blank">QRL.dell.com/$1</a> | |
re2url ${DELLID} https://qrl.dell.com/$1 | |
# 72 | |
macro 2DIGITS ^(\d\d)$ | |
retype ${2DIGITS} 2 digits | |
re2lnk ${2DIGITS} bla | |
re2url ${2DIGITS} bla | |