Hacking the resultlist: Holdings info and Requests in tub.find

Today, on the VuFind community meeting in Freiburg, Germany, we had a Joint Online Session with the VuFind Summit in Philadelphia, PA, USA. At this Joint Online Session some german libraries presented local developments, which might be interesting for others in the community, but have not got it into VuFind’s master yet. Our contribution was about the resultlist of our VuFind instance tub.find. For each record we show only the “best” option to get an item from it. In this presentation we showed, how our resultlist looks like and how we try to identify the best option for the user.

Watch the presentation here or download it.

[pdf-embedder url=”https://www.tub.tuhh.de/tubfind-blog/files/2016/10/tubfind-resultlist-5-minute-talk-anwendertreffen2016_final.pdf”]

Second VuFind Users Meeting in Germany

Last year the University Leipzig in Germany started successfully the first user meeting of german-speaking VuFind users.
This should be continued: this year the University of Technology Hamburg is going to organize the second user meeting.
We already have a date for that: Sep 16 and Sep 17, 2013. The meeting will take place in Hamburg.
This is a first announcement of this meeting and also a call for papers; whoever would like to present
something with a VuFind-related topic, please do not hesitate to contact me.

Its planned to use German as main conference language. This should not exclude international attendees;
if there is a lot of interest, we can still think about changing the conference language.
We are looking forward for suggestions, ideas and feedback to form the agenda and/or presentations for the meeting.

Using QR-Code integration also in your vufind

As we reported we have integrated QR-Codes in TUBfind. How does that work? We are using a PHP implementation of a QR-Code-generator, which is available as OpenSource (QR-Class by Y. Swetake). This can be copied to the vufind application on the webserver – on our machine I have copied the sources into these directories:
qr_img.php -> to driectory web
data -> to directory sys
image -> to directory images

The following method must be inserted into RecordDrivers/IndexRecord.php:
public function getQRString() {
global $configArray;
global $interface;

$dates = $this->getPublicationDates();
$qrstring = rawurlencode($this->getPrimaryAuthor().”: “.$this->getShortTitle().” / “.$dates[0].” – “.$configArray[‘Site’][‘url’].$configArray[‘Site’][‘path’].”/Record/”.$this->getUniqueID());

return $qrstring;
}

The following line has to be pasted into services/Record/Record.php (e.g. behind the line $interface->assign(‘openURL’, $this->recordDriver->getOpenURL());):
$interface->assign(‘qr’, $this->recordDriver->getQRString());

In your theme template (web/interface/themes/~theme~/RecordDrivers/Index/core.tpl) you need the following sourcecode:
<tr valign=”top”>
<th>{translate text=’QR-Code’}: </th>
<td>
<span class=”showqr”>
<a href=”#” onClick=’document.getElementById(“qrcode”).style.display = “block”; document.getElementById(“showqr”).style.display = “none”; document.getElementById(“hideqr”).style.display = “block”;’ id=”showqr”>{translate text=”Show QR-Code”}</a>
<a href=”#” onClick=’document.getElementById(“qrcode”).style.display = “none”; document.getElementById(“hideqr”).style.display = “none”; document.getElementById(“showqr”).style.display = “block”;’ style=”display:none;” id=”hideqr”>{translate text=”Hide QR-Code”}</a>
</span>
<div id=”qrcode” style=”display:none”>
<img alt=”QR-Image of this book” src=”{$path}/qr_img.php?d={$qr}”>
</div>
</td>
</tr>

If you are using a special language, you should put the following lines into your language file (e.g. lang/de.ini for german language):

QR-Code = “QR-Code”
Show QR-Code = “QR-Code zeigen”
Hide QR-Code = “QR-Code verbergen”

Finito!

Warning: If you copy and paste the code above, the quotation marks (double and single ones) might be exchanged with non-conform characters. the code has to be corrected manually when you paste it to the vufind sources! Or you can use a patchfile for Vufind 1.0.1: QR-Code-Patch Vufind 1.0.1. Save this file to the vufind main directory and execute the following command patch -p0 < vufind-1.0.1_qrcode.txt (without warranty!).