Exemplo n.º 1
0
                        ?>
">Visit Website</a></li>
        <?php 
                    } else {
                        print sopac_put_request_link($locum_result['_id'], $locum_result['status']['avail'], $locum_result['status']['holds'], $locum_config['formats'][$locum_result['mat_code']]);
                        if (user_access('staff request')) {
                            print sopac_put_staff_request_link($locum_result['_id']);
                        }
                    }
                }
            }
        }
    }
    if ($user->uid && $locum_result['mat_code'] != 'z' && $locum_result['mat_code'] != 'q') {
        include_once 'sopac_user.php';
        print sopac_put_list_links($locum_result['_id'], $list_display);
    }
    if ($list_display) {
        // PART OF A LIST, SHOW ADDITIONAL ACTIONS
        $list_id = intval(str_replace('list', '', $locum_result['namespace']));
        if (sopac_lists_access($list_id)) {
            $value = $locum_result['value'];
            $bnum = $locum_result['_id'];
            if (!$locum_result['freeze']) {
                print '<li class="button green">' . l('Move to Top of List', "user/listmovetop/{$list_id}/{$value}", array('alias' => TRUE)) . '</li>';
            }
            print '<li class="button red">' . l('Remove from List', "user/listdelete/{$list_id}/{$bnum}", array('alias' => TRUE)) . '</li>';
        }
    }
    ?>
      </ul>
Exemplo n.º 2
0
        <li class="button"><a href="<?php 
            print $item['db_link'];
            ?>
">Visit Website</a></li>
      <?php 
        } else {
            print sopac_put_request_link($item['_id'], 1, 0, $locum_config['formats'][$item['mat_code']]);
            if (user_access('staff request') && $item['bnum']) {
                print sopac_put_staff_request_link($item['bnum']);
            }
        }
    }
}
if ($user->uid && $item['bnum']) {
    include_once 'sopac_user.php';
    print sopac_put_list_links($item['bnum']);
}
// Summer Game links
if (module_exists('summergame')) {
    if (variable_get('summergame_points_enabled', 0)) {
        if ($player = summergame_player_load(array('uid' => $user->uid))) {
            print '<li class="button">' . l('I Finished This', 'http://play.aadl.org/summergame/player/consume/' . $player['pid'] . '/' . $item['bnum']) . '</li>';
        }
    }
}
?>
    </ul>

    <!-- Item Title -->
    <h1>
      <?php