Compare commits
6 Commits
608070ec8e
..
2.0
| Author | SHA1 | Date | |
|---|---|---|---|
| f4b8d8dc76 | |||
| 225a99d135 | |||
| fc82241bb3 | |||
| aca2cf2b67 | |||
| 28ab3d7886 | |||
| bb8e7f359f |
+1
-1
@@ -198,7 +198,7 @@ export function validateNote() {
|
|||||||
* @return {void} This function does not return anything.
|
* @return {void} This function does not return anything.
|
||||||
*/
|
*/
|
||||||
export function newNote() {
|
export function newNote() {
|
||||||
notes = document.querySelector('#notes');
|
var notes = document.querySelector('#notes');
|
||||||
notes.text = '';
|
notes.text = '';
|
||||||
notes.value = '';
|
notes.value = '';
|
||||||
state.references = {};
|
state.references = {};
|
||||||
|
|||||||
@@ -25,13 +25,13 @@ class ReferenceRepository extends ServiceEntityRepository
|
|||||||
->getResult();
|
->getResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function findHeidelberg($ref): array|Reference
|
public function findHeidelberg(string $ref): array|Reference
|
||||||
{
|
{
|
||||||
if (substr($ref, 0, 2) == 'ld') {
|
if (substr($ref, 0, 2) == 'ld') {
|
||||||
$num = substr($ref, 2);
|
$num = substr($ref, 2);
|
||||||
$qb = $this->createQueryBuilder('r');
|
$qb = $this->createQueryBuilder('r');
|
||||||
$r = $qb->where($qb->expr()->like('r.label', ':ld'))
|
$r = $qb->where($qb->expr()->like('r.label', ':ld'))
|
||||||
->setParameter('ld', "ld{$num}-%")
|
->setParameter('ld', "LD{$num}-%")
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->getResult()
|
->getResult()
|
||||||
;
|
;
|
||||||
@@ -39,7 +39,7 @@ class ReferenceRepository extends ServiceEntityRepository
|
|||||||
$num = substr($ref, 2);
|
$num = substr($ref, 2);
|
||||||
$qb = $this->createQueryBuilder('r');
|
$qb = $this->createQueryBuilder('r');
|
||||||
$r = $qb->where($qb->expr()->like('r.label', ':hc'))
|
$r = $qb->where($qb->expr()->like('r.label', ':hc'))
|
||||||
->setParameter('hc', "%-hc{$num}")
|
->setParameter('hc', "%-HC{$num}")
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->getResult()
|
->getResult()
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user