Spaces:
Running
Running
File size: 456,192 Bytes
0b82dd4 7acb95f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 | <!-- ResearchBee for LibGuides: paste this entire fragment into an HTML/source-code area. -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=PT+Sans:wght@700&display=swap">
<style>
/* Native fonts keep the first render independent of external font services. */
#researchbee-app {
--primary: #2059A8;
--primary-dark: #174483;
--primary-light: #EBF1FA;
--primary-xlight: #F4F7FC;
--accent: #f59e0b;
--accent-light: #fef3c7;
--success: #059669;
--success-light: #d1fae5;
--warning: #d97706;
--warning-light: #fef3c7;
--danger: #dc2626;
--danger-light: #fee2e2;
--text: #111827;
--text-muted: #6b7280;
--text-light: #9ca3af;
--border: #e5e7eb;
--border-strong: #d1d5db;
--bg: #ffffff;
--bg-subtle: #f9fafb;
--shadow-sm: none;
--shadow: none;
--shadow-lg: none;
--radius: 0;
--radius-sm: 0;
--radius-lg: 0;
}
#researchbee-app *,
#researchbee-app *::before,
#researchbee-app *::after {
box-sizing: border-box; margin: 0; padding: 0;
}
#researchbee-app {
scroll-behavior: smooth;
}
#researchbee-app {
font-family: "Open Sans", Arial, sans-serif;
font-size: 15px; line-height: 1.6;
color: var(--text); background: var(--bg-subtle); min-height: 100vh;
}
#researchbee-app h1,
#researchbee-app h2,
#researchbee-app h3 {
font-family: "PT Sans", "Open Sans", Arial, sans-serif; line-height: 1.2;
}
#researchbee-app .site-header {
background: #001B48;
color: white; position: relative; z-index: 100;
box-shadow: 0 2px 20px rgba(32,89,168,.4);
}
#researchbee-app .header-inner {
display: flex; align-items: center; justify-content: space-between;
padding: 14px 20px; max-width: 1100px; margin: 0 auto;
}
#researchbee-app .brand {
display: flex; align-items: center; gap: 10px; text-decoration: none; color: white;
}
#researchbee-app .brand-icon {
font-size: 24px;
}
#researchbee-app .brand-name {
font-family: "PT Sans", "Open Sans", Arial, sans-serif; font-size: 20px;
}
#researchbee-app .brand-sub {
font-size: 11px; opacity: .7; display: block; margin-top: -2px;
}
#researchbee-app .header-links {
display: flex; gap: 6px;
}
#researchbee-app .header-link {
color: rgba(255,255,255,.8); font-size: 13px; text-decoration: none;
padding: 5px 10px; border-radius: 0 ; transition: all .2s;
}
#researchbee-app .header-link:hover {
background: rgba(255,255,255,.15); color: white;
}
#researchbee-app .model-bar {
background: rgba(0,0,0,.2); border-top: 1px solid rgba(255,255,255,.08);
}
#researchbee-app .model-bar-inner {
max-width: 1100px; margin: 0 auto; padding: 8px 20px;
display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
#researchbee-app .model-label {
font-size: 12px; color: rgba(255,255,255,.65); font-weight: 500;
}
#researchbee-app .model-toggle {
display: flex; gap: 4px;
}
#researchbee-app .model-btn {
padding: 4px 14px; border-radius: 0 ; border: 1px solid rgba(255,255,255,.25);
background: transparent; color: rgba(255,255,255,.75); font-size: 12px;
cursor: pointer; transition: all .2s; font-family: ui-monospace, monospace;
}
#researchbee-app .model-btn.active {
background: white; color: var(--primary); border-color: white; font-weight: 700;
}
#researchbee-app .model-btn:hover:not(.active) {
background: rgba(255,255,255,.15); color: white;
}
#researchbee-app .model-hint {
font-size: 11px; color: rgba(255,255,255,.45);
}
#researchbee-app .hero {
background: #001B48;
color: white; padding: 44px 20px 52px;
}
#researchbee-app .hero-inner {
max-width: 1100px; margin: 0 auto;
}
#researchbee-app .hero-eyebrow {
font-size: 11px; font-family: ui-monospace, monospace;
opacity: .65; margin-bottom: 10px; letter-spacing: .1em; text-transform: uppercase;
display: flex; align-items: center; gap: 6px;
}
#researchbee-app .hero h1 {
font-size: clamp(26px,5vw,42px); margin-bottom: 10px;
}
#researchbee-app .hero h1 span {
opacity: .7;
}
#researchbee-app .hero-tagline {
font-size: 16px; opacity: .85; max-width: 600px; line-height: 1.7; margin-bottom: 16px;
}
#researchbee-app .hero-ku {
display: flex; align-items: center; gap: 8px; opacity: .65; font-size: 13px;
}
#researchbee-app .hero-ku a {
color: rgba(255,255,255,.9); text-decoration: none;
}
#researchbee-app .hero-ku a:hover {
text-decoration: underline;
}
#researchbee-app .tabs-bar {
background: white; border-bottom: 2px solid var(--border);
position: sticky; top: 0; z-index: 90; box-shadow: var(--shadow-sm);
}
#researchbee-app .tabs-inner {
max-width: 1100px; margin: 0 auto; display: flex;
}
#researchbee-app .tab-btn {
display: flex; align-items: center; gap: 8px;
padding: 15px 22px; border: none; background: transparent;
color: var(--text-muted); font-size: 14px; font-weight: 500;
cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
transition: color .2s; font-family: "Open Sans", Arial, sans-serif;
}
#researchbee-app .tab-btn:hover {
color: var(--primary);
}
#researchbee-app .tab-btn.active {
color: var(--primary); border-bottom-color: var(--primary);
}
#researchbee-app .tab-icon {
font-size: 16px;
}
#researchbee-app .main-content {
padding: 28px 20px 60px; max-width: 1100px; margin: 0 auto;
}
#researchbee-app .tab-panel {
display: none !important;
}
#researchbee-app .tab-panel.active {
display: block !important;
}
#researchbee-app .card {
background: white; border: 1px solid var(--border);
border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
#researchbee-app .card-header {
padding: 20px 24px; border-bottom: 1px solid var(--border);
background: #FFFFFF;
}
#researchbee-app .card-header h2 {
font-size: 20px; display: flex; align-items: center; gap: 8px;
}
#researchbee-app .card-header p {
font-size: 13px; color: var(--text-muted); margin-top: 4px;
}
#researchbee-app .card-body {
padding: 24px;
}
#researchbee-app .form-grid {
display: grid; gap: 16px;
}
#researchbee-app .form-2col {
grid-template-columns: 1fr 1fr;
}
#researchbee-app .form-3col {
grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width:640px) {
#researchbee-app .form-2col,
#researchbee-app .form-3col {
grid-template-columns: 1fr;
}
}
#researchbee-app .form-group {
display: flex; flex-direction: column; gap: 6px;
}
#researchbee-app .form-full {
grid-column: 1 / -1;
}
#researchbee-app label {
font-size: 13px; font-weight: 500;
}
#researchbee-app label .req {
color: var(--danger);
}
#researchbee-app input,
#researchbee-app textarea,
#researchbee-app select {
padding: 10px 12px; border: 1.5px solid var(--border-strong);
border-radius: var(--radius-sm); font-size: 14px; color: var(--text);
background: white; font-family: "Open Sans", Arial, sans-serif;
transition: border-color .2s, box-shadow .2s; width: 100%;
}
#researchbee-app input:focus,
#researchbee-app textarea:focus,
#researchbee-app select:focus {
outline: none; border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(32,89,168,.1);
}
#researchbee-app textarea {
resize: vertical; min-height: 90px;
}
#researchbee-app .section-sep {
border-top: 1px solid var(--border); margin: 20px 0 16px; padding-top: 16px;
}
#researchbee-app .section-label {
font-family: "PT Sans", "Open Sans", Arial, sans-serif; font-size: 16px; margin-bottom: 14px;
}
#researchbee-app .btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 12px 22px; border-radius: var(--radius-sm); border: none;
font-size: 14px; font-weight: 500; cursor: pointer;
transition: all .2s; font-family: "Open Sans", Arial, sans-serif;
}
#researchbee-app .btn-primary {
background: var(--primary); color: white; width: 100%; justify-content: center; font-size: 15px;
}
#researchbee-app .btn-primary:hover:not(:disabled) {
background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow);
}
#researchbee-app .btn-primary:disabled {
opacity: .6; cursor: not-allowed; transform: none;
}
#researchbee-app .btn-ghost {
background: transparent; color: var(--text-muted);
border: 1.5px solid var(--border-strong); font-size: 13px; padding: 7px 14px;
}
#researchbee-app .btn-ghost:hover {
border-color: var(--primary); color: var(--primary); background: var(--primary-xlight);
}
#researchbee-app .progress-box {
background: var(--primary-xlight); border: 1px solid var(--primary-light);
border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; display: none;
}
#researchbee-app .progress-box.show {
display: block;
}
#researchbee-app .p-step {
display: flex; align-items: center; gap: 10px;
font-size: 13px; color: var(--text-muted); margin-bottom: 6px; transition: color .3s;
}
#researchbee-app .p-step:last-child {
margin-bottom: 0;
}
#researchbee-app .p-step.active {
color: var(--primary); font-weight: 500;
}
#researchbee-app .p-step.done {
color: var(--success);
}
#researchbee-app .p-dot {
width: 8px; height: 8px; border-radius: 50%;
background: var(--border-strong); flex-shrink: 0;
}
#researchbee-app .p-step.active .p-dot {
background: var(--primary); animation: blink 1s infinite;
}
#researchbee-app .p-step.done .p-dot {
background: var(--success);
}
@keyframes blink {
0%,100% {
opacity:1
}
50% {
opacity:.4
}
}
#researchbee-app .results-header {
display: flex; align-items: center; justify-content: space-between;
flex-wrap: wrap; gap: 10px; margin: 28px 0 18px;
}
#researchbee-app .results-title {
font-family: "PT Sans", "Open Sans", Arial, sans-serif; font-size: 26px;
}
#researchbee-app .results-meta {
display: flex; align-items: center; gap: 10px;
}
#researchbee-app .count-chip {
background: var(--primary-light); color: var(--primary);
font-size: 12px; font-weight: 700; padding: 4px 12px;
border-radius: 0 ; font-family: ui-monospace, monospace;
}
#researchbee-app .understanding {
margin-bottom: 20px;
}
#researchbee-app .understanding .card-body {
display: flex; flex-direction: column; gap: 12px;
}
#researchbee-app .tag-row {
display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px;
}
#researchbee-app .badge {
display: inline-flex; align-items: center; gap: 3px;
padding: 3px 10px; border-radius: 0 ; font-size: 12px;
font-weight: 600; border: 1.5px solid;
font-family: ui-monospace, monospace;
}
#researchbee-app .b-primary {
background: var(--primary-light); color: var(--primary); border-color: #C9D8EE;
}
#researchbee-app .b-success {
background: var(--success-light); color: var(--success); border-color: #6ee7b7;
}
#researchbee-app .b-warning {
background: var(--warning-light); color: var(--warning); border-color: #fcd34d;
}
#researchbee-app .b-danger {
background: var(--danger-light); color: var(--danger); border-color: #fca5a5;
}
#researchbee-app .b-muted {
background: #f3f4f6; color: var(--text-muted); border-color: var(--border);
}
#researchbee-app .b-accent {
background: var(--accent-light); color: #92400e; border-color: #fcd34d;
}
#researchbee-app .b-q1 {
background: #dcfce7; color: #15803d; border-color: #86efac;
}
#researchbee-app .b-q2 {
background: #dbeafe; color: #1d4ed8; border-color: #93c5fd;
}
#researchbee-app .b-q3 {
background: #fef9c3; color: #a16207; border-color: #fde047;
}
#researchbee-app .b-q4 {
background: #fee2e2; color: #b91c1c; border-color: #fca5a5;
}
#researchbee-app .j-card {
margin-bottom: 20px;
}
#researchbee-app .j-header {
padding: 18px 24px; border-bottom: 1px solid var(--border);
background: #FFFFFF;
}
#researchbee-app .j-meta {
font-size: 12px; color: var(--text-muted); font-family: ui-monospace, monospace; margin-bottom: 5px;
}
#researchbee-app .j-title {
font-family: "PT Sans", "Open Sans", Arial, sans-serif; font-size: 22px; margin-bottom: 10px;
}
#researchbee-app .badge-row {
display: flex; gap: 8px; flex-wrap: wrap;
}
#researchbee-app .j-body {
padding: 20px 24px; display: flex; flex-direction: column; gap: 18px;
}
#researchbee-app .detail-grid {
display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width:600px) {
#researchbee-app .detail-grid {
grid-template-columns: 1fr;
}
}
#researchbee-app .detail-item h5 {
font-size: 13px; font-weight: 600; margin-bottom: 3px; display: flex; align-items: center; gap: 5px;
}
#researchbee-app .detail-item p {
font-size: 13px; color: var(--text-muted);
}
#researchbee-app .rank-box {
border: 2px solid var(--border); border-radius: var(--radius-sm);
padding: 14px; background: var(--bg-subtle);
}
#researchbee-app .rank-box.confirmed {
border-color: #6ee7b7; background: #f0fdf4;
}
#researchbee-app .rank-box.derived {
border-color: #fcd34d; background: #fffbeb;
}
#researchbee-app .rank-box.unverified {
border-color: #fca5a5; background: #fff1f2;
}
#researchbee-app .rank-head {
display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
#researchbee-app .rank-head h5 {
font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px;
}
#researchbee-app .rank-grid {
display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
}
@media (max-width:480px) {
#researchbee-app .rank-grid {
grid-template-columns: 1fr 1fr;
}
}
#researchbee-app .rank-item dt {
font-size: 11px; color: var(--text-muted);
}
#researchbee-app .rank-item dd {
font-size: 13px; font-family: ui-monospace, monospace; font-weight: 600;
}
#researchbee-app .rank-note {
font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: 8px;
}
#researchbee-app .rank-verify {
font-size: 12px; margin-top: 4px;
}
#researchbee-app .version-list {
display: flex; flex-direction: column; gap: 10px;
}
#researchbee-app .version-card {
border: 1.5px solid var(--border); border-radius: var(--radius-sm);
padding: 14px; background: white;
}
#researchbee-app .v-head {
display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
#researchbee-app .v-title {
font-size: 13px; font-weight: 600;
}
#researchbee-app .v-allowed {
font-size: 13px; font-weight: 700;
}
#researchbee-app .v-yes {
color: var(--success);
}
#researchbee-app .v-no {
color: var(--danger);
}
#researchbee-app .v-unclear {
color: var(--warning);
}
#researchbee-app .v-conditional {
color: #b45309;
}
#researchbee-app .v-none {
color: var(--text-muted);
}
#researchbee-app .opf-options {
margin-top: 10px; border-top: 1px solid var(--border); padding-top: 9px;
}
#researchbee-app .opf-options > summary {
cursor: pointer; color: var(--primary); font-size: 12px; font-weight: 600;
}
#researchbee-app .opf-option-list {
list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 9px;
}
#researchbee-app .opf-option-item {
background: var(--bg-subtle); border: 1px solid var(--border);
border-radius: 0 ; padding: 9px 11px; font-size: 12px;
}
#researchbee-app .opf-option-summary {
font-weight: 600; color: var(--text); margin-bottom: 4px;
}
#researchbee-app .opf-option-meta {
color: var(--text-muted); line-height: 1.5;
}
#researchbee-app .v-grid {
display: grid; grid-template-columns: 1fr 1fr; gap: 5px 16px;
}
@media (max-width:480px) {
#researchbee-app .v-grid {
grid-template-columns: 1fr;
}
}
#researchbee-app .v-grid dt {
font-size: 11px; color: var(--text-muted);
}
#researchbee-app .v-grid dd {
font-size: 12px;
}
#researchbee-app .v-full {
grid-column: 1/-1;
}
#researchbee-app .policy-notes {
border-left: 4px solid #C9D8EE; background: var(--primary-xlight);
border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 16px;
}
#researchbee-app .policy-notes > * + * {
margin-top: 6px;
}
#researchbee-app .policy-notes p {
font-size: 13px;
}
#researchbee-app .p-risk {
color: var(--danger); display: flex; align-items: flex-start; gap: 6px;
}
#researchbee-app .oa-metrics {
display: grid; grid-template-columns: repeat(4,1fr); gap: 8px;
background: #f8f9fc; border: 1px solid var(--border);
border-radius: var(--radius-sm); padding: 12px 16px;
}
@media (max-width:480px) {
#researchbee-app .oa-metrics {
grid-template-columns: 1fr 1fr;
}
}
#researchbee-app .oa-m dt {
font-size: 11px; color: var(--text-muted);
}
#researchbee-app .oa-m dd {
font-size: 14px; font-family: ui-monospace, monospace; font-weight: 600;
}
#researchbee-app .oa-src {
font-size: 11px; color: var(--text-light); grid-column: 1/-1; margin-top: 2px;
}
#researchbee-app .verify-row {
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
padding-top: 12px; border-top: 1px solid var(--border);
}
#researchbee-app .verify-lbl {
font-size: 12px; color: var(--text-muted); white-space: nowrap;
}
#researchbee-app .vlink {
font-size: 12px; color: var(--primary); text-decoration: none;
display: inline-flex; align-items: center; gap: 3px; font-weight: 500;
transition: opacity .15s;
}
#researchbee-app .vlink:hover {
opacity: .7;
}
#researchbee-app .vlink-scopus {
background: var(--primary-light); padding: 3px 10px;
border-radius: 0 ; font-weight: 600;
}
#researchbee-app .rec-card {
border-left: 4px solid var(--accent);
}
#researchbee-app .rec-card .card-header {
background: #fffbeb;
}
#researchbee-app .rec-grid {
display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
@media (max-width:580px) {
#researchbee-app .rec-grid {
grid-template-columns: 1fr;
}
}
#researchbee-app .rec-item dt {
font-size: 12px; color: var(--text-muted);
}
#researchbee-app .rec-item dd {
font-size: 14px; font-weight: 500;
}
#researchbee-app .checks-list {
list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 4px;
}
#researchbee-app .checks-list li {
font-size: 13px; color: var(--text-muted);
}
#researchbee-app .khazna-card {
border: 2px solid var(--primary); border-radius: var(--radius-lg); overflow: hidden; margin: 24px 0;
}
#researchbee-app .khazna-head {
background: #2059A8;
color: white; padding: 16px 20px; display: flex; align-items: center; gap: 10px;
}
#researchbee-app .khazna-head h3 {
font-family: "PT Sans", "Open Sans", Arial, sans-serif; font-size: 18px;
}
#researchbee-app .khazna-body {
padding: 16px 20px; background: #FFFFFF;
}
#researchbee-app .khazna-body p {
font-size: 13px; color: var(--text-muted); margin-bottom: 10px;
}
#researchbee-app .khazna-tip {
background: var(--accent-light); border: 1px solid #fcd34d;
border-radius: var(--radius-sm); padding: 10px 14px;
font-size: 12px; color: #92400e; margin-bottom: 14px;
display: flex; align-items: flex-start; gap: 8px;
}
#researchbee-app .khazna-actions {
display: flex; gap: 8px; flex-wrap: wrap;
}
#researchbee-app .k-btn {
padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px;
font-weight: 500; text-decoration: none; display: inline-flex;
align-items: center; gap: 6px; transition: all .2s;
}
#researchbee-app .k-btn-fill {
background: var(--primary); color: white;
}
#researchbee-app .k-btn-fill:hover {
background: var(--primary-dark);
}
#researchbee-app .k-btn-outline {
border: 1.5px solid var(--primary); color: var(--primary); background: white;
}
#researchbee-app .k-btn-outline:hover {
background: var(--primary-xlight);
}
#researchbee-app .extended-wrap {
margin-top: 28px;
}
#researchbee-app .ext-toggle {
display: flex; align-items: center; justify-content: space-between;
padding: 14px 20px; background: white; border: 1.5px solid var(--primary-light);
border-radius: var(--radius); cursor: pointer; font-size: 14px; font-weight: 600;
color: var(--primary); transition: all .2s; width: 100%;
font-family: "Open Sans", Arial, sans-serif;
}
#researchbee-app .ext-toggle:hover {
background: var(--primary-xlight);
}
#researchbee-app .ext-arrow {
transition: transform .25s; font-size: 12px;
}
#researchbee-app .ext-toggle.open .ext-arrow {
transform: rotate(180deg);
}
#researchbee-app .ext-body {
display: none; margin-top: 6px;
}
#researchbee-app .ext-body.show {
display: block;
}
#researchbee-app .ext-table {
width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 13px;
}
#researchbee-app .ext-table th {
background: var(--bg-subtle); padding: 10px 14px; text-align: left;
font-size: 11px; font-weight: 700; color: var(--text-muted);
border-bottom: 1px solid var(--border);
font-family: ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em;
}
#researchbee-app .ext-table td {
padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
#researchbee-app .ext-table tr:last-child td {
border-bottom: none;
}
#researchbee-app .ext-table tr:hover td {
background: #FFFFFF;
}
#researchbee-app .ext-links {
display: flex; gap: 6px; flex-wrap: wrap;
}
#researchbee-app .el {
font-size: 11px; padding: 3px 8px; border-radius: 0 ;
text-decoration: none; font-weight: 600; display: inline-flex;
align-items: center; gap: 3px; transition: opacity .15s;
}
#researchbee-app .el:hover {
opacity: .75;
}
#researchbee-app .el-scopus {
background: var(--primary-light); color: var(--primary);
}
#researchbee-app .el-sherpa {
background: var(--success-light); color: var(--success);
}
#researchbee-app .r-card {
margin-bottom: 16px;
}
#researchbee-app .r-card.is-khazna {
border: 2px solid var(--primary);
}
#researchbee-app .r-card.is-khazna .j-header {
background: #EBF1FA;
}
#researchbee-app .r-specs {
display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
}
@media (max-width:500px) {
#researchbee-app .r-specs {
grid-template-columns: 1fr;
}
}
#researchbee-app .r-specs dt {
font-size: 12px; color: var(--text-muted);
}
#researchbee-app .r-specs dd {
font-size: 13px; font-weight: 500;
}
#researchbee-app .actions-list {
list-style: none; display: flex; flex-direction: column; gap: 8px;
}
#researchbee-app .action-item {
display: flex; align-items: flex-start; gap: 10px;
font-size: 13px; padding: 10px 14px;
background: var(--bg-subtle); border-radius: var(--radius-sm); border: 1px solid var(--border);
}
#researchbee-app .a-num {
background: var(--primary); color: white; border-radius: 50%;
width: 20px; height: 20px; min-width: 20px; display: flex; align-items: center;
justify-content: center; font-size: 11px; font-weight: 700; margin-top: 1px;
}
#researchbee-app .global-note {
font-size: 12px; color: var(--text-muted); font-style: italic;
margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
}
#researchbee-app .help-card {
border: 1px solid var(--border); border-radius: var(--radius);
background: white; padding: 16px 20px; margin-top: 28px;
display: flex; align-items: center; justify-content: space-between;
flex-wrap: wrap; gap: 12px;
}
#researchbee-app .help-left {
display: flex; align-items: center; gap: 12px;
}
#researchbee-app .help-icon {
font-size: 26px;
}
#researchbee-app .help-text h4 {
font-size: 14px; font-weight: 600; margin-bottom: 2px;
}
#researchbee-app .help-text p {
font-size: 12px; color: var(--text-muted);
}
#researchbee-app .help-links {
display: flex; gap: 8px;
}
#researchbee-app .acc {
border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-top: 8px;
}
#researchbee-app .acc-btn {
width: 100%; background: var(--bg-subtle); padding: 10px 14px; border: none;
cursor: pointer; font-size: 13px; font-weight: 500;
display: flex; align-items: center; justify-content: space-between;
color: var(--text); font-family: "Open Sans", Arial, sans-serif; transition: background .2s;
}
#researchbee-app .acc-btn:hover {
background: var(--primary-xlight);
}
#researchbee-app .acc-body {
padding: 12px 14px; display: none; border-top: 1px solid var(--border);
}
#researchbee-app .acc-body.open {
display: block;
}
#researchbee-app .acc-body ul {
list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 4px;
}
#researchbee-app .acc-body li {
font-size: 13px; color: var(--text-muted);
}
#researchbee-app .site-footer {
border-top: 1px solid var(--border); padding: 20px;
margin-top: 40px; background: white;
}
#researchbee-app .footer-inner {
max-width: 1100px; margin: 0 auto; display: flex;
justify-content: space-between; flex-wrap: wrap;
gap: 8px; font-size: 12px; color: var(--text-muted);
}
#researchbee-app .footer-inner a {
color: var(--primary); text-decoration: none;
}
#researchbee-app .footer-inner a:hover {
text-decoration: underline;
}
#researchbee-app .hidden {
display: none !important;
}
#researchbee-app .mt-4 {
margin-top: 16px;
}
#researchbee-app .mt-6 {
margin-top: 24px;
}
#researchbee-app .divider {
border: none; border-top: 1px solid var(--border); margin: 18px 0;
}
#researchbee-app .space-y > * + * {
margin-top: 18px;
}
#researchbee-app .site-header {
background: #001B48;
}
#researchbee-app .brand-bee {
width: 38px; height: 38px; border-radius: 50%;
background: white; display: flex; align-items: center;
justify-content: center; font-size: 20px; flex-shrink: 0;
}
#researchbee-app .hero {
display: none;
}
#researchbee-app .lb-welcome {
background: #f0f2f5; padding: 24px 20px 20px;
display: flex; flex-direction: column; align-items: center; gap: 12px;
}
#researchbee-app .lb-mascot {
display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
#researchbee-app .lb-bee {
width: 72px; height: 72px; border-radius: 50%;
background: white; border: 3px solid #e5e7eb;
display: flex; align-items: center; justify-content: center;
font-size: 36px; box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
#researchbee-app .lb-title {
font-family: "PT Sans", "Open Sans", Arial, sans-serif; font-size: 24px; color: #001B48; font-weight: 400;
}
#researchbee-app .lb-sub {
font-size: 13px; color: #6b7280; max-width: 400px; line-height: 1.6;
}
#researchbee-app .lb-card {
background: white; border: 1px solid #e5e7eb;
border-radius: 0 ; width: 100%; max-width: 580px;
overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
#researchbee-app .lb-card-head {
background: #001B48;
padding: 20px 22px;
}
#researchbee-app .lb-card-eyebrow {
font-size: 10px; font-family: ui-monospace, monospace;
color: rgba(255,255,255,.5); letter-spacing: .1em;
text-transform: uppercase; margin-bottom: 8px;
}
#researchbee-app .lb-card-title {
font-family: "PT Sans", "Open Sans", Arial, sans-serif; font-size: 17px;
color: white; line-height: 1.4;
}
#researchbee-app .lb-card-title em {
font-style: italic; color: #a5b4fc;
}
#researchbee-app .lb-stats {
display: flex; margin-top: 16px;
border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px;
}
#researchbee-app .lb-stat {
flex: 1; text-align: center;
}
#researchbee-app .lb-stat + .lb-stat {
border-left: 1px solid rgba(255,255,255,.1);
}
#researchbee-app .lb-stat-n {
font-family: "PT Sans", "Open Sans", Arial, sans-serif; font-size: 20px; color: white; display: block; line-height: 1;
}
#researchbee-app .lb-stat-l {
font-size: 10px; color: rgba(255,255,255,.4); display: block; margin-top: 3px;
}
#researchbee-app .lb-stat-sep {
width: 0;
}
#researchbee-app .lb-features {
display: flex; flex-direction: column;
}
#researchbee-app .lb-feat {
display: flex; align-items: center; gap: 14px;
padding: 13px 20px; border-bottom: 1px solid #f3f4f6;
cursor: pointer; transition: background .15s;
}
#researchbee-app .lb-feat:last-child {
border-bottom: none;
}
#researchbee-app .lb-feat:hover {
background: #FFFFFF;
}
#researchbee-app .lb-feat-ic {
width: 38px; height: 38px; border-radius: 0 ;
display: flex; align-items: center; justify-content: center;
font-size: 18px; flex-shrink: 0;
}
#researchbee-app .lb-feat-txt {
flex: 1; min-width: 0;
}
#researchbee-app .lb-feat-title {
font-size: 13px; font-weight: 600; color: #111827; display: block; line-height: 1.3;
}
#researchbee-app .lb-feat-desc {
font-size: 11px; color: #9ca3af; display: block; margin-top: 2px; line-height: 1.5;
}
#researchbee-app .lb-feat-arr {
color: #d1d5db; font-size: 18px; flex-shrink: 0; margin-left: auto;
}
#researchbee-app .lb-feat:hover .lb-feat-arr {
color: #001B48;
}
#researchbee-app .lb-contact {
background: white; border: 1px solid #e5e7eb; border-radius: 0 ;
padding: 13px 18px; width: 100%; max-width: 580px;
display: flex; align-items: center; gap: 12px;
}
#researchbee-app .lb-contact-ic {
width: 34px; height: 34px; background: #e8ecf5;
border-radius: 0 ; display: flex; align-items: center;
justify-content: center; font-size: 16px; flex-shrink: 0;
}
#researchbee-app .lb-contact-txt {
flex: 1;
}
#researchbee-app .lb-contact-title {
font-size: 13px; font-weight: 600; color: #001B48; display: block;
}
#researchbee-app .lb-contact-sub {
font-size: 11px; color: #9ca3af; display: block; margin-top: 2px;
}
#researchbee-app .lb-contact-sub a {
color: #2059A8; text-decoration: none;
}
#researchbee-app .lb-contact-sub a:hover {
text-decoration: underline;
}
#researchbee-app .lb-contact-btn {
background: #001B48; color: white; border: none;
border-radius: 0 ; padding: 8px 16px; font-size: 12px;
font-weight: 500; cursor: pointer; text-decoration: none;
font-family: "Open Sans", Arial, sans-serif; white-space: nowrap;
transition: background .2s;
}
#researchbee-app .lb-contact-btn:hover {
background: #243560;
}
#researchbee-app .tab-btn.active {
color: #001B48; border-bottom-color: #001B48;
}
#researchbee-app .tab-btn:hover {
color: #001B48;
}
#researchbee-app .mode-selector {
display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
#researchbee-app .mode-btn {
flex: 1; min-width: 200px; display: flex; align-items: center; gap: 12px;
padding: 14px 18px; border: 2px solid var(--border);
border-radius: var(--radius); background: white; cursor: pointer;
transition: all .2s; font-family: "Open Sans", Arial, sans-serif; text-align: left;
}
#researchbee-app .mode-btn:hover {
border-color: var(--primary); background: var(--primary-xlight);
}
#researchbee-app .mode-btn.active {
border-color: var(--primary); background: var(--primary-xlight);
}
#researchbee-app .mode-icon {
font-size: 22px; flex-shrink: 0;
}
#researchbee-app .mode-text {
display: flex; flex-direction: column; gap: 2px;
}
#researchbee-app .mode-title {
font-size: 14px; font-weight: 600; color: var(--text);
}
#researchbee-app .mode-desc {
font-size: 12px; color: var(--text-muted);
}
#researchbee-app .mode-btn.active .mode-title {
color: var(--primary);
}
#researchbee-app .subj-banner {
background: var(--primary-xlight); border: 1px solid var(--primary-light);
border-radius: var(--radius-sm); padding: 10px 16px; font-size: 13px;
margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
#researchbee-app .subj-banner-icon {
font-weight: 700; color: var(--primary); white-space: nowrap;
}
#researchbee-app .subj-notfound {
text-align: center; padding: 40px 20px; background: white;
border: 1px solid var(--border); border-radius: var(--radius-lg);
}
#researchbee-app .subj-notfound-icon {
width: 48px; height: 48px; border-radius: 50%; background: var(--danger-light);
color: var(--danger); font-size: 22px; font-weight: 700;
display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
#researchbee-app .subj-notfound h3 {
font-family: "PT Sans", "Open Sans", Arial, sans-serif; font-size: 18px; margin-bottom: 6px;
}
#researchbee-app .subj-notfound p {
font-size: 13px; color: var(--text-muted); margin-bottom: 16px;
}
#researchbee-app .subj-tip {
background: var(--accent-light); border: 1px solid #fcd34d;
border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; color: #92400e;
}
#researchbee-app .copy-chip {
display: inline-flex; align-items: center; gap: 4px;
font-family: ui-monospace, monospace; font-size: 12px;
background: #f3f4f6; color: var(--text); padding: 3px 8px;
border-radius: 0 ; cursor: pointer; border: 1px solid var(--border);
transition: background .15s; user-select: none;
}
#researchbee-app .copy-chip:hover {
background: var(--primary-light); border-color: #C9D8EE;
}
#researchbee-app .copy-chip-sm {
font-size: 11px; padding: 2px 6px;
}
#researchbee-app .copy-icon {
font-size: 11px; opacity: .6;
}
#researchbee-app .verify-scopus-row {
margin-top: 6px; padding-top: 6px; border-top: none;
}
#researchbee-app .verify-scopus-hint {
font-size: 12px; color: var(--text-muted);
display: flex; align-items: center; gap: 6px;
}
#researchbee-app .brand-mascot {
width: 38px; height: 38px; border-radius: 50%;
object-fit: cover; flex-shrink: 0;
border: 2px solid rgba(255,255,255,0.3);
}
#researchbee-app .lb-mascot-img {
width: 150px; max-width: 100%; height: auto; border-radius: 0 ;
object-fit: contain;
border: 0;
box-shadow: none;
}
#researchbee-app .results-mascot-row {
display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
#researchbee-app .results-mascot-img {
width: 44px; height: 44px; border-radius: 50%;
object-fit: contain; background: #fff; padding: 1px; border: 2px solid var(--primary-light);
flex-shrink: 0;
}
#researchbee-app .results-mascot-bubble {
background: var(--primary-xlight); border: 1px solid var(--primary-light);
border-radius: 0 ; padding: 8px 14px;
font-size: 13px; color: var(--primary); font-weight: 500;
}
#researchbee-app .lang-btn {
padding: 4px 12px; border-radius: 0 ; border: 1px solid rgba(255,255,255,.25);
background: transparent; color: rgba(255,255,255,.75); font-size: 12px;
cursor: pointer; transition: all .2s; font-family: ui-monospace, monospace;
font-weight: 600;
}
#researchbee-app .lang-btn.active {
background: white; color: var(--primary); border-color: white;
}
#researchbee-app .lang-btn:hover:not(.active) {
background: rgba(255,255,255,.15); color: white;
}
#researchbee-app .acc-arrow.open {
transform: rotate(180deg) !important;
}
#researchbee-app .subj-cl-form {
padding: 4px 0;
}
#researchbee-app .subj-cl-form .form-group label {
font-size: 12px;
}
#researchbee-app .subj-cl-form input,
#researchbee-app .subj-cl-form textarea {
font-size: 13px;
padding: 8px 10px;
}
#researchbee-app .tabs-bar {
background: white;
border-bottom: none !important;
box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
}
#researchbee-app .tabs-inner {
gap: 0;
padding: 0 8px;
}
#researchbee-app .tab-btn {
flex: 1;
flex-direction: row;
align-items: center;
gap: 10px;
padding: 12px 16px !important;
border-radius: 0 ;
border-bottom: 3px solid transparent;
margin-bottom: 0 !important;
}
#researchbee-app .tab-icon-wrap {
width: 36px; height: 36px; border-radius: 0 ;
display: flex; align-items: center; justify-content: center;
font-size: 18px; flex-shrink: 0; transition: all .2s;
}
#researchbee-app .tab-icon-journal {
background: #EBF1FA;
}
#researchbee-app .tab-icon-license {
background: #d1fae5;
}
#researchbee-app .tab-icon-data {
background: #fef3c7;
}
#researchbee-app .tab-label-wrap {
display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
}
#researchbee-app .tab-label-main {
font-size: 14px; font-weight: 600; color: var(--text);
line-height: 1.2;
}
#researchbee-app .tab-label-sub {
font-size: 11px; color: var(--text-muted); line-height: 1.2;
}
#researchbee-app .tab-btn.active .tab-label-main {
color: #001B48;
}
#researchbee-app .tab-btn.active .tab-label-sub {
color: #2059A8;
}
#researchbee-app .tab-btn.active {
border-bottom-color: #001B48 !important;
}
#researchbee-app .tab-btn.active .tab-icon-journal {
background: #001B48; color: white;
}
#researchbee-app .tab-btn.active .tab-icon-license {
background: #059669; color: white;
}
#researchbee-app .tab-btn.active .tab-icon-data {
background: #d97706; color: white;
}
#researchbee-app .tab-btn:hover .tab-label-main {
color: #001B48;
}
@media (max-width:600px) {
#researchbee-app .tab-label-sub {
display: none;
}
#researchbee-app .tab-btn {
padding: 10px 10px !important; gap: 6px;
}
}
#researchbee-app .mode-selector {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
margin-bottom: 24px;
}
@media (max-width:600px) {
#researchbee-app .mode-selector {
grid-template-columns: 1fr;
}
}
#researchbee-app .mode-btn {
display: flex;
align-items: flex-start;
gap: 14px;
padding: 18px 20px !important;
border: 2px solid var(--border) !important;
border-radius: var(--radius-lg) !important;
background: white !important;
text-align: left;
cursor: pointer;
transition: all .2s;
position: relative;
overflow: hidden;
}
#researchbee-app .mode-btn::before {
content: "";
position: absolute; inset: 0;
background: transparent;
pointer-events: none;
}
#researchbee-app .mode-btn:hover {
border-color: #2059A8 !important;
box-shadow: 0 4px 16px rgba(32,89,168,.12);
transform: translateY(-2px);
}
#researchbee-app .mode-btn.active {
border-color: #001B48 !important;
background: #F7F9FC !important;
box-shadow: 0 4px 20px rgba(26,39,68,.12);
}
#researchbee-app .mode-icon-wrap {
width: 48px; height: 48px; border-radius: 0 ;
display: flex; align-items: center; justify-content: center;
font-size: 24px; flex-shrink: 0; transition: all .2s;
}
#researchbee-app .mode-icon-subject {
background: #EBF1FA;
}
#researchbee-app .mode-icon-manuscript {
background: #fef3c7;
}
#researchbee-app .mode-btn.active .mode-icon-subject {
background: #001B48;
}
#researchbee-app .mode-btn.active .mode-icon-manuscript {
background: #d97706;
}
#researchbee-app .mode-text {
display: flex; flex-direction: column; gap: 4px; flex: 1;
}
#researchbee-app .mode-title {
font-size: 16px !important;
font-weight: 700 !important;
color: var(--text) !important;
font-family: "PT Sans", "Open Sans", Arial, sans-serif;
}
#researchbee-app .mode-btn.active .mode-title {
color: #001B48 !important;
}
#researchbee-app .mode-desc {
font-size: 12px !important;
color: var(--text-muted) !important;
line-height: 1.5;
}
#researchbee-app .mode-tag {
display: inline-flex; align-items: center;
font-size: 11px; font-family: ui-monospace, monospace;
color: #2059A8; background: #EBF1FA;
padding: 2px 8px; border-radius: 0 ;
margin-top: 4px; width: fit-content;
}
#researchbee-app .mode-btn.active .mode-tag {
background: #001B48; color: white;
}
#researchbee-app .ar-banner {
display: flex; align-items: flex-start; gap: 10px;
background: #fdf4e7;
border: 1.5px solid #fcd34d; border-radius: var(--radius);
padding: 14px 18px; margin-bottom: 20px;
font-size: 14px; color: #92400e; direction: rtl; text-align: right;
font-family: "Open Sans", Arial, sans-serif; line-height: 1.6;
}
#researchbee-app .ar-banner-icon {
font-size: 20px; flex-shrink: 0;
}
#researchbee-app .doi-primary {
background: #f0f9ff;
border: 1.5px solid #7dd3fc;
border-radius: 0 ;
padding: 14px 16px;
}
#researchbee-app .doi-primary label {
font-weight: 600;
}
#researchbee-app .doi-primary .recommended {
display: inline-block; margin-left: 8px; font-weight: 500;
font-size: 11px; color: #0369a1; background: #e0f2fe;
border-radius: 0 ; padding: 2px 9px; vertical-align: middle;
}
#researchbee-app .field-hint {
font-size: 11.5px; color: var(--text-muted);
margin-top: 6px; line-height: 1.45;
}
#researchbee-app .or-divider {
display: flex; align-items: center; gap: 12px;
font-size: 11.5px; color: var(--text-light);
text-transform: uppercase; letter-spacing: .06em;
margin: 4px 0 -4px;
}
#researchbee-app .or-divider::before,
#researchbee-app .or-divider::after {
content: ""; flex: 1; height: 1px; background: var(--border, #e2e8f0);
}
#researchbee-app .prov-badge {
display: inline-flex; align-items: center; gap: 5px;
font-size: 11.5px; font-weight: 600; border-radius: 0 ;
padding: 3px 11px; letter-spacing: .01em;
}
#researchbee-app .prov-verified {
background: #dcfce7; color: #166534; border: 1px solid #86efac;
}
#researchbee-app .prov-unverified {
background: #fef3c7; color: #92400e; border: 1px solid #fcd34d;
}
#researchbee-app .prov-api {
background: #e0f2fe; color: #075985; border: 1px solid #7dd3fc;
}
#researchbee-app .source-panel {
border-radius: 0 ; padding: 12px 14px; margin-top: 14px;
font-size: 12.5px; line-height: 1.5;
}
#researchbee-app .sp-verified {
background: #f0fdf4; border: 1px solid #bbf7d0;
}
#researchbee-app .sp-unverified {
background: #fffbeb; border: 1px solid #fde68a;
}
#researchbee-app .sp-api {
background: #f0f9ff; border: 1px solid #bae6fd;
}
#researchbee-app .sp-head {
display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 13px;
}
#researchbee-app .sp-note {
margin: 0 0 6px; color: var(--text-muted);
}
#researchbee-app .sp-meta {
margin: 2px 0; font-size: 11.5px; color: var(--text-muted);
}
#researchbee-app .sp-links {
display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px;
}
#researchbee-app .sp-link {
font-size: 11px; padding: 3px 10px; border-radius: 0 ;
background: #fff; border: 1px solid var(--border, #e2e8f0);
color: var(--text-muted); text-decoration: none;
}
#researchbee-app .sp-link:hover {
border-color: #94a3b8; color: #0f172a;
}
#researchbee-app .sp-link-primary {
background: #0369a1; border-color: #0369a1; color: #fff;
}
#researchbee-app .sp-link-primary:hover {
background: #075985; color: #fff;
}
#researchbee-app .deposit-stmt {
background: #f8fafc; border: 1px solid #cbd5e1;
border-left: 4px solid #0369a1; border-radius: 0 ;
padding: 12px 14px; margin-top: 14px;
}
#researchbee-app .ds-head {
display: flex; justify-content: space-between; align-items: center;
font-size: 12.5px; font-weight: 600; margin-bottom: 7px;
}
#researchbee-app .ds-copy {
background: #0369a1; color: #fff; border: none; border-radius: 0 ;
font-size: 11px; padding: 4px 12px; cursor: pointer; font-family: inherit;
}
#researchbee-app .ds-copy:hover {
background: #075985;
}
#researchbee-app .ds-body {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11.5px; line-height: 1.55; color: #1e293b;
background: #fff; border: 1px solid #e2e8f0; border-radius: 0 ;
padding: 9px 11px; margin: 0 0 7px; white-space: pre-wrap; word-break: break-word;
}
#researchbee-app .ds-note {
font-size: 11px; color: var(--text-muted); margin: 0; font-style: italic;
}
#researchbee-app .khazna-status {
display: flex; gap: 12px; align-items: flex-start;
border-radius: 0 ; padding: 13px 15px; margin-top: 16px;
font-size: 13px; line-height: 1.5;
}
#researchbee-app .khazna-status strong {
display: block; margin-bottom: 3px; font-size: 13.5px;
}
#researchbee-app .khazna-status p {
margin: 0; color: var(--text-muted); font-size: 12.5px;
}
#researchbee-app .ks-icon {
font-size: 20px; line-height: 1; flex-shrink: 0;
}
#researchbee-app .ks-open {
background: #f0fdf4; border: 1px solid #bbf7d0;
}
#researchbee-app .ks-embargo {
background: #fffbeb; border: 1px solid #fde68a;
}
#researchbee-app .ks-restricted {
background: #fef2f2; border: 1px solid #fecaca;
}
#researchbee-app .ks-gap {
background: #eff6ff; border: 1px solid #bfdbfe;
}
#researchbee-app .ks-absent {
background: #f8fafc; border: 1px solid #e2e8f0;
}
#researchbee-app .ks-unknown {
background: #f8fafc; border: 1px dashed #cbd5e1;
}
#researchbee-app .ks-meta {
font-size: 11.5px; margin-top: 4px !important;
}
#researchbee-app .ks-link {
display: inline-block; margin-top: 6px; font-size: 11.5px;
color: #0369a1; text-decoration: none; font-weight: 500;
}
#researchbee-app .ks-link:hover {
text-decoration: underline;
}
#researchbee-app .syp-card {
margin-top: 16px; border-radius: 0 ; padding: 16px 18px;
background: #eff6ff;
border: 1px solid #bfdbfe;
}
#researchbee-app .syp-body h4 {
margin: 0 0 5px; font-size: 15px; color: #0c4a6e;
}
#researchbee-app .syp-body p {
margin: 0 0 11px; font-size: 12.5px; color: var(--text-muted); line-height: 1.5;
}
#researchbee-app .syp-btn {
display: inline-block; background: #0369a1; color: #fff;
padding: 8px 18px; border-radius: 0 ; font-size: 13px;
font-weight: 600; text-decoration: none;
}
#researchbee-app .syp-btn:hover {
background: #075985; color: #fff;
}
@media (max-width: 640px) {
#researchbee-app .doi-primary {
padding: 12px;
}
#researchbee-app .ds-head {
flex-direction: column; align-items: flex-start; gap: 6px;
}
}
#researchbee-app .doi-submit {
margin-top: 12px; width: 100%; justify-content: center;
}
@media (min-width: 640px) {
#researchbee-app .doi-submit {
width: auto;
}
}
#researchbee-app .subj-grid {
display: grid; gap: 12px;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
#researchbee-app .subj-card {
border: 1px solid var(--border, #e2e8f0); border-radius: 0 ;
padding: 12px 14px; background: #fff;
}
#researchbee-app .subj-head a {
font-size: 14.5px; font-weight: 600; color: #0369a1; text-decoration: none;
}
#researchbee-app .subj-head a:hover {
text-decoration: underline;
}
#researchbee-app .subj-scope {
font-size: 12px; color: var(--text-muted); margin: 5px 0 9px; line-height: 1.45;
}
#researchbee-app .subj-meta {
margin: 0; font-size: 11.5px;
}
#researchbee-app .subj-meta div {
display: flex; gap: 6px; margin-bottom: 3px;
}
#researchbee-app .subj-meta dt {
color: var(--text-light); min-width: 58px;
}
#researchbee-app .subj-meta dd {
margin: 0; color: #1e293b;
}
#researchbee-app .subj-verified {
font-size: 10.5px; color: var(--text-light); margin: 8px 0 0; font-style: italic;
}
#researchbee-app .subj-note {
font-size: 12px; color: var(--text-muted); margin: 12px 0 0;
padding: 9px 12px; background: #f8fafc; border-radius: 0 ;
border-left: 3px solid #0369a1;
}
#researchbee-app .footer-sources {
font-size: 11px; line-height: 1.6; color: var(--text-light, #94a3b8);
max-width: 900px; margin: 10px auto 0; text-align: center;
}
#researchbee-app .footer-sources a {
color: var(--text-muted, #64748b); text-decoration: underline;
}
#researchbee-app .footer-sources a:hover {
color: #0369a1;
}
#researchbee-app .footer-sources strong {
color: var(--text-muted, #64748b);
}
#researchbee-app #rb-chat-launcher {
position: fixed; bottom: 28px; right: 28px; z-index: 1000;
background: #001B48;
border: none; cursor: pointer;
border-radius: 0 ;
padding: 10px 18px 10px 14px;
display: flex; align-items: center; gap: 10px;
box-shadow: 0 4px 20px rgba(32,89,168,.45), 0 1px 4px rgba(0,0,0,.2);
transition: transform .2s, box-shadow .2s; outline: none;
min-width: 0;
}
#researchbee-app #rb-chat-launcher:hover {
transform: translateY(-2px);
box-shadow: 0 8px 28px rgba(32,89,168,.55);
}
#researchbee-app #rb-chat-launcher:active {
transform: translateY(0);
}
#researchbee-app .rb-launcher-icon {
width: 38px; height: 38px; border-radius: 50%;
background: rgba(255,255,255,.15);
border: 2px solid rgba(255,255,255,.3);
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
font-family: Georgia, "PT Sans", "Open Sans", Arial, sans-serif;
font-size: 22px; font-weight: 700;
color: #fff; line-height: 1;
transition: background .2s;
}
#researchbee-app #rb-chat-launcher:hover .rb-launcher-icon {
background: rgba(255,255,255,.25);
}
#researchbee-app .rb-chat-mascot-icon {
object-fit: contain; background: #fff !important; padding: 2px;
}
#researchbee-app .rb-launcher-label {
display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
}
#researchbee-app .rb-launcher-label-top {
font-family: "Open Sans", Arial, sans-serif;
font-size: 12px; font-weight: 700;
color: rgba(255,255,255,.7);
line-height: 1.2; letter-spacing: .01em;
text-transform: uppercase;
}
#researchbee-app .rb-launcher-label-main {
font-family: Georgia, "PT Sans", "Open Sans", Arial, sans-serif;
font-size: 14px; font-weight: 400;
color: #fff; line-height: 1.2; white-space: nowrap;
}
#researchbee-app #rb-chat-badge {
position: absolute; top: -4px; right: -4px;
width: 14px; height: 14px; background: #F59E0B;
border-radius: 50%; border: 2px solid #fff; display: none;
}
#researchbee-app #rb-chat-badge.visible {
display: block;
}
#researchbee-app #rb-chat-tooltip {
position: fixed; bottom: 108px; right: 28px; z-index: 999;
background: #001B48; color: #fff; font-family: "Open Sans", Arial, sans-serif;
font-size: 13px; padding: 8px 14px; border-radius: 0 ;
white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,.18);
pointer-events: none; opacity: 0; transform: translateY(6px);
transition: opacity .3s, transform .3s;
}
#researchbee-app #rb-chat-tooltip::after {
content: ""; position: absolute; bottom: -6px; right: 22px;
border-left: 6px solid transparent; border-right: 6px solid transparent;
border-top: 6px solid #001B48;
}
#researchbee-app #rb-chat-tooltip.show {
opacity: 1; transform: translateY(0);
}
#researchbee-app #rb-chat-panel {
position: fixed; bottom: 98px; right: 28px; z-index: 999;
width: 370px; max-height: 560px;
background: #fff; border-radius: 0 ;
box-shadow: 0 12px 48px rgba(26,39,68,.18), 0 2px 8px rgba(0,0,0,.08);
display: flex; flex-direction: column; overflow: hidden;
transform: scale(0.92) translateY(12px); transform-origin: bottom right;
opacity: 0; pointer-events: none;
transition: opacity .22s, transform .22s;
}
#researchbee-app #rb-chat-panel.open {
opacity: 1; transform: scale(1) translateY(0); pointer-events: all;
}
#researchbee-app .rb-chat-header {
background: #001B48;
padding: 14px 16px; display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
#researchbee-app .rb-chat-header img {
width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); object-fit: contain; background: #fff; padding: 1px; flex-shrink: 0;
}
#researchbee-app .rb-chat-header-text {
flex: 1; min-width: 0;
}
#researchbee-app .rb-chat-header-name {
font-family: Georgia,serif; font-size: 15px; color: #fff; display: block; line-height: 1.2;
}
#researchbee-app .rb-chat-header-sub {
font-family: "Open Sans", Arial, sans-serif; font-size: 11px; color: rgba(255,255,255,.6);
}
#researchbee-app .rb-chat-status {
width: 8px; height: 8px; background: #34D399; border-radius: 50%; box-shadow: 0 0 0 2px rgba(52,211,153,.3); flex-shrink: 0;
}
#researchbee-app .rb-chat-close {
background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; padding: 4px; border-radius: 0 ; font-size: 18px; line-height: 1; transition: color .15s; flex-shrink: 0;
}
#researchbee-app .rb-chat-close:hover {
color: #fff;
}
#researchbee-app .rb-chat-disclaimer {
background: #FEF9C3; border-bottom: 1px solid #FDE68A; padding: 6px 14px; font-family: "Open Sans", Arial, sans-serif; font-size: 11px; color: #92400E; display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
#researchbee-app #rb-chat-messages {
flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth;
}
#researchbee-app #rb-chat-messages::-webkit-scrollbar {
width: 4px;
}
#researchbee-app #rb-chat-messages::-webkit-scrollbar-thumb {
background: #e2e8f0; border-radius: 0 ;
}
#researchbee-app .rb-msg {
display: flex; flex-direction: column; max-width: 88%; animation: rb-in .18s ease;
}
@keyframes rb-in {
from {
opacity:0;transform:translateY(6px)
}
to {
opacity:1;transform:translateY(0)
}
}
#researchbee-app .rb-msg.user {
align-self: flex-end; align-items: flex-end;
}
#researchbee-app .rb-msg.assistant {
align-self: flex-start; align-items: flex-start;
}
#researchbee-app .rb-bubble {
padding: 9px 13px; border-radius: 0 ; font-family: "Open Sans", Arial, sans-serif; font-size: 13.5px; line-height: 1.55; word-break: break-word;
}
#researchbee-app .rb-msg.user .rb-bubble {
background: #2059A8; color: #fff; border-bottom-right-radius: 0;
}
#researchbee-app .rb-msg.assistant .rb-bubble {
background: #F1F5F9; color: #1e293b; border-bottom-left-radius: 0;
}
#researchbee-app .rb-msg.assistant .rb-bubble a {
color: #2059A8; text-decoration: underline;
}
#researchbee-app .rb-typing {
display: flex; align-items: center; gap: 4px; padding: 10px 14px; background: #F1F5F9; border-radius: 0 ; border-bottom-left-radius: 0; width: fit-content;
}
#researchbee-app .rb-typing span {
width: 7px; height: 7px; background: #94a3b8; border-radius: 50%; display: inline-block; animation: rb-bounce 1.2s infinite ease-in-out;
}
#researchbee-app .rb-typing span:nth-child(2) {
animation-delay:.15s
}
#researchbee-app .rb-typing span:nth-child(3) {
animation-delay:.30s
}
@keyframes rb-bounce {
0%,80%,100% {
transform:translateY(0)
}
40% {
transform:translateY(-5px)
}
}
#researchbee-app .rb-starters {
display: flex; flex-direction: column; gap: 6px; margin-top: 4px;
}
#researchbee-app .rb-starter-btn {
background: #fff; border: 1px solid #e2e8f0; border-radius: 0 ; padding: 8px 12px; font-family: "Open Sans", Arial, sans-serif; font-size: 12.5px; color: #2059A8; cursor: pointer; text-align: left; transition: background .15s, border-color .15s; line-height: 1.4;
}
#researchbee-app .rb-starter-btn:hover {
background: #EEF3FA; border-color: #2059A8;
}
#researchbee-app .rb-route-btn {
border: none; border-radius: 0 ; padding: 9px 14px; font-family: "Open Sans", Arial, sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: opacity .15s; margin-top: 4px; color: white;
}
#researchbee-app .rb-route-btn:hover {
opacity: 0.88;
}
#researchbee-app .rb-chat-input-wrap {
padding: 10px 12px 12px; border-top: 1px solid #f1f5f9; display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; background: #fff;
}
#researchbee-app #rb-chat-input {
flex: 1; border: 1.5px solid #e2e8f0; border-radius: 0 ; padding: 9px 12px; font-family: "Open Sans", Arial, sans-serif; font-size: 13.5px; resize: none; outline: none; line-height: 1.45; max-height: 100px; overflow-y: auto; color: #1e293b; background: #f8fafc; transition: border-color .15s, background .15s;
}
#researchbee-app #rb-chat-input:focus {
border-color: #2059A8; background: #fff;
}
#researchbee-app #rb-chat-input::placeholder {
color: #94a3b8;
}
#researchbee-app #rb-chat-send {
width: 38px; height: 38px; border-radius: 0 ; background: #2059A8; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity .15s, transform .1s;
}
#researchbee-app #rb-chat-send:hover {
opacity: .9;
}
#researchbee-app #rb-chat-send:active {
transform: scale(.93);
}
#researchbee-app #rb-chat-send:disabled {
opacity: .4; cursor: not-allowed;
}
#researchbee-app .rb-chat-footer {
padding: 5px 14px 8px; text-align: center; font-family: "Open Sans", Arial, sans-serif; font-size: 10.5px; color: #94a3b8; flex-shrink: 0;
}
#researchbee-app .rb-chat-footer a {
color: #94a3b8; text-decoration: none;
}
@media (max-width:480px) {
#researchbee-app #rb-chat-panel {
width:calc(100vw - 32px);right:16px;bottom:96px
}
#researchbee-app #rb-chat-launcher {
right:16px;bottom:16px;padding:8px 14px 8px 10px
}
#researchbee-app .rb-launcher-label-main {
font-size:13px
}
#researchbee-app #rb-chat-tooltip {
right:16px;bottom:120px
}
}
#researchbee-app .tabs-bar {
background: #e8ecf2 !important;
box-shadow: 0 2px 12px rgba(0,0,0,.1) !important;
border-bottom: none !important;
padding-bottom: 0 !important;
}
#researchbee-app .tabs-inner {
padding: 8px 10px 0 10px !important; gap: 6px !important; align-items: flex-end !important;
}
#researchbee-app .tab-btn {
border-bottom: 3px solid transparent !important;
border-radius: 0 !important;
margin: 0 !important; min-width: 0 !important;
transition: filter .18s, transform .15s, box-shadow .18s !important;
padding: 10px 14px !important;
outline: 2px solid transparent !important;
outline-offset: 0px !important;
}
#researchbee-app .tab-btn[data-tab="journals"] {
background: #001B48 !important;
}
#researchbee-app .tab-btn[data-tab="license"] {
background: #065f46 !important;
}
#researchbee-app .tab-btn[data-tab="data"] {
background: #92400e !important;
}
#researchbee-app .tab-btn:hover {
filter: brightness(1.12) !important; transform: translateY(-1px) !important;
}
#researchbee-app .tab-btn.active[data-tab="journals"] {
background: #001B48 !important;
border-bottom-color: #a5b4fc !important;
transform: translateY(-3px) !important;
box-shadow: 0 -3px 0 2px #a5b4fc, 0 -6px 16px rgba(99,102,241,.35) !important;
}
#researchbee-app .tab-btn.active[data-tab="license"] {
background: #065f46 !important;
border-bottom-color: #6ee7b7 !important;
transform: translateY(-3px) !important;
box-shadow: 0 -3px 0 2px #6ee7b7, 0 -6px 16px rgba(5,150,105,.35) !important;
}
#researchbee-app .tab-btn.active[data-tab="data"] {
background: #92400e !important;
border-bottom-color: #fcd34d !important;
transform: translateY(-3px) !important;
box-shadow: 0 -3px 0 2px #fcd34d, 0 -6px 16px rgba(217,119,6,.35) !important;
}
#researchbee-app .tab-label-main {
font-size: 13px !important; font-weight: 600 !important;
color: rgba(255,255,255,.82) !important;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#researchbee-app .tab-label-sub {
color: rgba(255,255,255,.5) !important; font-size: 10.5px !important;
}
#researchbee-app .tab-btn.active .tab-label-main {
color: #fff !important;
}
#researchbee-app .tab-btn.active .tab-label-sub {
color: rgba(255,255,255,.75) !important;
}
#researchbee-app .tab-btn:hover .tab-label-main {
color: #fff !important;
}
#researchbee-app .tab-icon-wrap {
background: rgba(255,255,255,.15) !important; color: rgba(255,255,255,.85) !important;
}
#researchbee-app .tab-btn.active .tab-icon-wrap {
background: rgba(255,255,255,.22) !important; color: #fff !important;
}
@media (max-width:600px) {
#researchbee-app .tabs-inner {
padding: 6px 6px 0 6px !important; gap: 4px !important;
}
#researchbee-app .tab-btn {
padding: 8px 6px !important; gap: 5px !important; flex: 1 !important; border-radius: 0 !important;
}
#researchbee-app .tab-btn:hover {
transform: translateY(0) !important;
}
#researchbee-app .tab-btn.active {
transform: translateY(-2px) !important;
}
#researchbee-app .tab-icon-wrap {
width: 24px !important; height: 24px !important; font-size: 12px !important; border-radius: 0 !important; flex-shrink: 0 !important;
}
#researchbee-app .tab-label-main {
font-size: 11px !important;
}
#researchbee-app .tab-label-sub {
display: none !important;
}
}
@media (max-width:360px) {
#researchbee-app .tabs-inner {
padding: 5px 3px 0 3px !important; gap: 3px !important;
}
#researchbee-app .tab-btn {
padding: 7px 3px !important; gap: 3px !important;
}
#researchbee-app .tab-label-main {
font-size: 10px !important;
}
#researchbee-app .tab-icon-wrap {
width: 20px !important; height: 20px !important; font-size: 10px !important;
}
}
#researchbee-app #rb-mobile-chat-bar {
display: none;
}
@media (max-width:600px) {
#researchbee-app #rb-chat-launcher {
display: none !important;
}
#researchbee-app #rb-chat-tooltip {
display: none !important;
}
#researchbee-app #rb-mobile-chat-bar {
display: flex !important;
position: sticky; top: 0; z-index: 95;
width: 100%;
background: #001B48;
align-items: center;
padding: 7px 14px; gap: 9px;
cursor: pointer; border: none;
box-shadow: 0 2px 8px rgba(0,0,0,.25);
font-family: "Open Sans", Arial, sans-serif;
}
#researchbee-app .rb-mobile-bar-icon {
width: 26px; height: 26px; border-radius: 50%;
background: rgba(255,255,255,.15);
border: 1.5px solid rgba(255,255,255,.35);
display: flex; align-items: center; justify-content: center;
font-family: Georgia, "PT Sans", "Open Sans", Arial, sans-serif;
font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0;
}
#researchbee-app .rb-mobile-bar-text {
display: flex; align-items: baseline; gap: 5px; flex: 1;
}
#researchbee-app .rb-mobile-bar-top {
font-size: 11px; font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em;
}
#researchbee-app .rb-mobile-bar-main {
font-size: 12px; font-weight: 500; color: #fff;
}
#researchbee-app .rb-mobile-bar-arrow {
font-size: 14px; color: rgba(255,255,255,.6); margin-left: auto; flex-shrink: 0;
}
#researchbee-app #rb-chat-panel {
bottom: auto !important; top: 0 !important;
right: 0 !important; left: 0 !important;
width: 100% !important; max-height: 78vh !important;
border-radius: 0 !important;
transform-origin: top center !important;
}
}
#researchbee-app #rb-mobile-chat-bar {
display: none;
}
@media (max-width:600px) {
#researchbee-app #rb-chat-launcher {
display: none !important;
}
#researchbee-app #rb-chat-tooltip {
display: none !important;
}
#researchbee-app #rb-mobile-chat-bar {
display: flex !important;
position: sticky;
top: 0;
z-index: 91; /* above tabs bar z-index:90 */
width: 100%;
background: #001B48;
align-items: center;
padding: 7px 14px;
gap: 9px;
cursor: pointer;
border: none;
box-shadow: 0 1px 6px rgba(0,0,0,.25);
font-family: "Open Sans", Arial, sans-serif;
}
#researchbee-app .rb-mobile-bar-icon {
width: 26px; height: 26px; border-radius: 50%;
background: rgba(255,255,255,.15);
border: 1.5px solid rgba(255,255,255,.3);
display: flex; align-items: center; justify-content: center;
font-family: Georgia, "PT Sans", "Open Sans", Arial, sans-serif;
font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0;
}
#researchbee-app .rb-mobile-bar-text {
display: flex; align-items: baseline; gap: 5px; flex: 1;
}
#researchbee-app .rb-mobile-bar-top {
font-size: 11px; font-weight: 700;
color: rgba(255,255,255,.6);
text-transform: uppercase; letter-spacing: .05em;
}
#researchbee-app .rb-mobile-bar-main {
font-size: 12px; font-weight: 500; color: #fff;
}
#researchbee-app .rb-mobile-bar-arrow {
font-size: 14px; color: rgba(255,255,255,.6);
margin-left: auto; flex-shrink: 0;
}
#researchbee-app #rb-chat-panel {
bottom: auto !important; top: 0 !important;
right: 0 !important; left: 0 !important;
width: 100% !important; max-height: 78vh !important;
border-radius: 0 !important;
transform-origin: top center !important;
}
}
#researchbee-app .deeper-analysis-strip {
display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
padding: 10px 0 4px; border-top: 1px solid var(--border); margin-top: 4px;
}
#researchbee-app .deeper-analysis-label {
font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap;
}
#researchbee-app .da-link {
display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
border-radius: 0 ; font-size: 11.5px; font-weight: 600; text-decoration: none;
transition: opacity .15s; font-family: "Open Sans", Arial, sans-serif;
}
#researchbee-app .da-link:hover {
opacity: .8;
}
#researchbee-app .da-scopus {
background: #EBF1FA; color: #174483;
}
#researchbee-app .da-wos {
background: #d1fae5; color: #065f46;
}
#researchbee-app .da-scival {
background: #fef3c7; color: #92400e;
}
#researchbee-app .da-library {
background: #f1f5f9; color: #475569;
}
#researchbee-app .subject-deeper-strip {
background: #f8fafc; border: 1px solid var(--border);
border-radius: 0 ; padding: 14px 16px; margin: 12px 0;
}
#researchbee-app .trending-papers-wrap {
margin: 16px 0;
}
#researchbee-app .rw-tab:focus {
outline: 2px solid #2059A8; outline-offset: 2px;
}
#researchbee-app .jf-guide-card {
display: flex; align-items: center; justify-content: space-between;
gap: 16px; flex-wrap: wrap;
background: #001B48;
border-radius: 0 ; padding: 18px 20px; margin: 16px 0;
box-shadow: 0 2px 12px rgba(26,39,68,.2);
}
#researchbee-app .jf-guide-left {
display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0;
}
#researchbee-app .jf-guide-icon {
font-size: 28px; flex-shrink: 0;
width: 48px; height: 48px; border-radius: 0 ;
background: rgba(255,255,255,.12);
display: flex; align-items: center; justify-content: center;
}
#researchbee-app .jf-guide-title {
font-family: Georgia, "PT Sans", "Open Sans", Arial, sans-serif;
font-size: 16px; font-weight: 400; color: #fff;
margin: 0 0 4px; line-height: 1.3;
}
#researchbee-app .jf-guide-desc {
font-family: "Open Sans", Arial, sans-serif;
font-size: 12.5px; color: rgba(255,255,255,.72);
margin: 0; line-height: 1.5;
}
#researchbee-app .jf-guide-btn {
display: inline-flex; align-items: center; gap: 6px;
background: #fff; color: #001B48;
font-family: "Open Sans", Arial, sans-serif;
font-size: 13px; font-weight: 700;
padding: 10px 20px; border-radius: 0 ;
text-decoration: none; white-space: nowrap; flex-shrink: 0;
transition: background .15s, transform .15s;
}
#researchbee-app .jf-guide-btn:hover {
background: #EBF1FA; transform: translateY(-1px);
}
#researchbee-app .sort-bar {
display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
margin-bottom: 12px; padding: 8px 12px;
background: #f8fafc; border: 1px solid var(--border);
border-radius: 0 ;
}
#researchbee-app .sort-label {
font-size: 12px; font-weight: 600; color: var(--text-muted);
margin-right: 2px; white-space: nowrap;
}
#researchbee-app .sort-btn {
padding: 4px 12px; border-radius: 0 ; border: 1.5px solid #e2e8f0;
background: #fff; font-family: "Open Sans", Arial, sans-serif;
font-size: 12px; font-weight: 500; color: #64748b;
cursor: pointer; transition: all .15s; white-space: nowrap;
}
#researchbee-app .sort-btn:hover {
border-color: #2059A8; color: #2059A8; background: #F4F7FC;
}
#researchbee-app .sort-btn.active {
border-color: #2059A8; color: #2059A8; background: #EBF1FA; font-weight: 700;
}
#researchbee-app tr.q1-row {
background: #fafff5 !important;
}
#researchbee-app tr.q1-row td:first-child {
border-left: 3px solid #059669;
}
#researchbee-app .ku-apc-note {
background: #fefce8;
border: 1.5px solid #fde047;
border-radius: 0 ;
padding: 12px 14px;
margin-bottom: 12px;
font-family: "Open Sans", Arial, sans-serif;
font-size: 13px;
color: #854d0e;
line-height: 1.5;
}
#researchbee-app .ku-apc-note a {
color: #854d0e; font-weight: 600;
}
#researchbee-app .ku-apc-note a:hover {
text-decoration: underline;
}
@keyframes rb-blink {
0%,100% {
opacity:1
}
50% {
opacity:0
}
}
#researchbee-app .rb-cursor {
display: inline-block; animation: rb-blink .7s infinite; color: #2059A8; font-weight: 300;
}
#researchbee-app .altmetric-wrap {
display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--border);
}
#researchbee-app .altmetric-label {
font-size: 11px; color: var(--text-muted);
}
#researchbee-app .altmetric-badge {
display: flex; align-items: center; gap: 8px;
}
#researchbee-app .altmetric-img {
width: 64px; height: 64px; object-fit: contain;
}
#researchbee-app .altmetric-score-pill {
background: #f97316; color: #fff; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; text-decoration: none;
}
#researchbee-app .altmetric-score-label {
font-size: 12px; color: var(--text-muted);
}
#researchbee-app .altmetric-src {
font-size: 10px; color: var(--text-light); text-decoration: none; margin-left: auto;
}
#researchbee-app .altmetric-src:hover {
color: var(--primary);
}
#researchbee-app .rw-loading {
font-size: 12px; color: var(--text-muted); padding: 8px 0; font-style: italic;
}
#researchbee-app .rw-list {
border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 0;
}
#researchbee-app .rw-header {
font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
#researchbee-app .rw-item {
padding: 9px 0; border-bottom: 1px solid #f1f5f9;
}
#researchbee-app .rw-item:last-of-type {
border-bottom: none;
}
#researchbee-app .rw-title {
font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.4; margin-bottom: 3px;
}
#researchbee-app .rw-authors {
font-size: 11px; color: var(--text-muted); margin-bottom: 4px;
}
#researchbee-app .rw-meta {
display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--text-muted);
}
#researchbee-app .rw-src {
font-size: 10px; color: var(--text-light); margin-top: 8px;
}
#researchbee-app .rb-menu-wrap {
display: flex; flex-direction: column; gap: 7px; width: 100%; margin-top: 4px;
}
#researchbee-app .rb-menu-card {
display: flex; align-items: center; gap: 10px;
background: #fff; border: 1.5px solid #e2e8f0;
border-radius: 0 ; padding: 10px 12px;
cursor: pointer; text-align: left; width: 100%;
transition: border-color .15s, box-shadow .15s, transform .1s;
font-family: "Open Sans", Arial, sans-serif;
}
#researchbee-app .rb-menu-card:hover {
border-color: #2059A8;
box-shadow: 0 2px 10px rgba(32,89,168,.12);
transform: translateY(-1px);
}
#researchbee-app .rb-menu-card:active {
transform: translateY(0);
}
#researchbee-app .rb-menu-emoji {
font-size: 20px; flex-shrink: 0; width: 28px; text-align: center;
}
#researchbee-app .rb-menu-text {
flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
#researchbee-app .rb-menu-title {
font-size: 12.5px; font-weight: 600; color: #1e293b; line-height: 1.3;
}
#researchbee-app .rb-menu-desc {
font-size: 11px; color: #94a3b8; line-height: 1.4;
}
#researchbee-app .rb-menu-arrow {
font-size: 16px; font-weight: 700; flex-shrink: 0; transition: transform .15s;
}
#researchbee-app .rb-menu-card:hover .rb-menu-arrow {
transform: translateX(3px);
}
#researchbee-app .rb-clear-btn {
align-self: flex-end; margin-top: 2px;
background: none; border: 1px solid #e2e8f0;
border-radius: 0 ; padding: 4px 12px;
font-family: "Open Sans", Arial, sans-serif; font-size: 11.5px;
color: #94a3b8; cursor: pointer; transition: border-color .15s, color .15s;
}
#researchbee-app .rb-clear-btn:hover {
border-color: #cbd5e1; color: #64748b;
}
/* LibGuides compatibility overrides */
#researchbee-app {
display: block;
position: relative;
width: 100%;
max-width: 100%;
min-width: 0;
min-height: 0;
overflow: visible;
color: var(--text, #111827);
background: var(--bg-subtle, #f9fafb);
font-family: system-ui, Arial, sans-serif;
font-size: 15px;
line-height: 1.6;
border: 1px solid #e5e7eb;
border-radius: 0 ;
}
#researchbee-app,
#researchbee-app *,
#researchbee-app *::before,
#researchbee-app *::after { box-sizing: border-box; }
#researchbee-app img { max-width: 100%; }
#researchbee-app button,
#researchbee-app input,
#researchbee-app textarea,
#researchbee-app select { font: inherit; }
#researchbee-app button { text-transform: none; letter-spacing: normal; }
#researchbee-app .rb-libguide-toolbar {
background: #001B48;
color: #fff;
border-radius: 0 ;
}
#researchbee-app .rb-libguide-toolbar .model-bar-inner {
max-width: 1100px;
padding: 8px 20px;
justify-content: flex-end;
}
#researchbee-app .rb-libguide-toolbar .model-label { color: rgba(255,255,255,.78); }
#researchbee-app .tabs-bar { position: relative !important; top: auto !important; z-index: 20; }
#researchbee-app .main-content { width: 100%; }
#researchbee-app .site-footer { margin-top: 0; border-radius: 0 ; }
#researchbee-app .footer-inner { display: block; }
#researchbee-app .footer-inner p + p { margin-top: 8px; }
#researchbee-app #rb-chat-launcher,
#researchbee-app #rb-chat-panel,
#researchbee-app #rb-chat-tooltip { z-index: 1055; }
#researchbee-app #rb-chat-launcher { z-index: 1056; }
#researchbee-app .rb-libguide-noscript {
margin: 16px 20px;
padding: 12px 14px;
border: 1px solid #f59e0b;
background: #fffbeb;
color: #92400e;
border-radius: 0 ;
}
@media (max-width: 767px) {
#researchbee-app .tab-label-wrap { min-width: 0; overflow: hidden; }
#researchbee-app .tab-label-main {
display: block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#researchbee-app { border-radius: 0 ; }
#researchbee-app .rb-libguide-toolbar { border-radius: 0 ; }
#researchbee-app .main-content { padding-left: 12px; padding-right: 12px; }
}
/* ==========================================================================
ResearchBee โ Scopus / SCImago index display layer (journals.db)
Everything below is scoped to #researchbee-app like the rest of this sheet,
and uses the custom properties declared at the top of it rather than fresh
literals, so a future palette change carries through.
========================================================================== */
/* --- Diamond OA ----------------------------------------------------------
No article-processing charge for the author AND no subscription for the
reader. Distinct from "open access", which in practice usually means an APC
somebody has to find.
-------------------------------------------------------------------------- */
#researchbee-app .badge.b-diamond {
background: #ecfeff; color: #0e7490; border-color: #67e8f9;
}
/* --- per-field quartiles ------------------------------------------------- */
#researchbee-app .fq-block {
margin-top: 12px; padding: 12px 14px;
background: white; border: 1px solid var(--border);
border-radius: var(--radius-sm);
}
#researchbee-app .fq-label {
font-family: ui-monospace, monospace;
font-size: 11px; font-weight: 700; letter-spacing: .06em;
text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
#researchbee-app .fq-chips {
display: flex; flex-wrap: wrap; gap: 8px;
}
#researchbee-app .fq-chip {
display: inline-flex; align-items: center; gap: 7px;
padding: 4px 12px 4px 5px;
background: var(--bg-subtle); border: 1px solid var(--border);
border-radius: 0 ; font-size: 12.5px; line-height: 1.5;
}
#researchbee-app .fq-chip .fq-field {
color: var(--text);
}
#researchbee-app .fq-note {
margin-top: 9px; font-size: 12px; line-height: 1.55;
color: var(--text-muted); font-style: italic;
}
#researchbee-app .subject-q-summary {
display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
#researchbee-app .subject-q-details {
margin-top: 6px; min-width: 190px;
}
#researchbee-app .subject-q-details summary {
cursor: pointer; color: var(--primary); font-size: 11px; font-weight: 600;
}
#researchbee-app .subject-q-list {
margin-top: 7px; display: flex; flex-direction: column; gap: 5px;
padding: 7px; background: var(--bg-subtle); border: 1px solid var(--border);
border-radius: 0 ;
}
#researchbee-app .subject-q-item {
display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px;
align-items: start;
}
#researchbee-app .subject-q-name {
font-size: 11px; line-height: 1.35; color: var(--text-muted);
}
/* --- indexation notice ---------------------------------------------------
Three visual weights for three genuinely different situations. Red is
reserved for the 967 titles Scopus discontinued; a renamed journal never
gets it, because styling a rename as a risk is worse than saying nothing.
Logical border properties so this survives if the app root is ever given
dir="rtl".
-------------------------------------------------------------------------- */
#researchbee-app .idx-notice {
margin: 0; padding: 13px 16px;
border: 1px solid transparent; border-inline-start: 4px solid;
border-radius: var(--radius-sm); font-size: 13.5px;
}
#researchbee-app .idx-head {
display: flex; align-items: center; gap: 8px;
font-weight: 600; font-size: 13.5px; margin-bottom: 6px;
}
#researchbee-app .idx-icon {
font-size: 16px; line-height: 1; flex-shrink: 0;
}
#researchbee-app .idx-msg {
font-size: 13px; line-height: 1.6;
}
#researchbee-app .idx-successor {
margin-top: 8px; font-size: 13px; line-height: 1.55;
}
#researchbee-app .idx-successor a {
margin-inline-start: 6px; white-space: nowrap; text-decoration: underline;
}
#researchbee-app .idx-notice.idx-danger {
background: var(--danger-light); border-inline-start-color: var(--danger); color: #7f1d1d;
}
#researchbee-app .idx-notice.idx-info {
background: var(--primary-xlight); border-inline-start-color: var(--primary); color: #001B48;
}
#researchbee-app .idx-notice.idx-muted {
background: var(--bg-subtle); border-inline-start-color: var(--border-strong); color: var(--text-muted);
}
#researchbee-app .idx-notice.idx-danger a { color: #7f1d1d; }
#researchbee-app .idx-notice.idx-info a { color: var(--primary-dark); }
#researchbee-app .idx-notice.idx-muted a { color: var(--text-muted); }
/* A discontinued title is still worth reading about, but it should not sit in
the shortlist looking like a recommendation. */
#researchbee-app .j-card[data-warn="1"] {
border-color: #fca5a5;
}
#researchbee-app .j-card[data-warn="1"] .j-header {
background: #fff7f7;
}
/* --- provenance ----------------------------------------------------------
"We could not check" has to look different from "we checked and it is
clean", the same distinction renderKhaznaStatus already makes.
-------------------------------------------------------------------------- */
#researchbee-app .rank-verify.rank-fallback {
color: var(--text-muted); line-height: 1.55; margin-top: 6px;
}
/* --- quick-match table ---------------------------------------------------
The extended list is where a discontinued title is most invisible: the
quartile column just renders "-" and nothing says why.
-------------------------------------------------------------------------- */
#researchbee-app .ext-flag {
display: inline-block; padding: 2px 8px; border-radius: 0 ;
font-family: ui-monospace, monospace;
font-size: 10.5px; font-weight: 600; white-space: nowrap;
border: 1px solid transparent; cursor: help;
}
#researchbee-app .ext-flag.idx-danger {
background: var(--danger-light); color: #991b1b; border-color: #fca5a5;
}
#researchbee-app .ext-flag.idx-info {
background: var(--primary-xlight); color: var(--primary); border-color: #C9D8EE;
}
#researchbee-app .ext-flag.idx-muted {
background: var(--bg-subtle); color: var(--text-muted); border-color: var(--border);
}
#researchbee-app .ext-diamond {
margin-inline-start: 6px; color: #047857; font-size: 11px; cursor: help;
}
#researchbee-app .ext-table tr[data-warn="1"] td {
background: #fff8f8;
}
#researchbee-app .ext-table tr[data-warn="1"]:hover td {
background: #fff1f1;
}
/* ResearchBee service introduction (v1.7) */
#researchbee-app #rb-service-intro-backdrop {
position: fixed;
inset: 0;
z-index: 1060;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background: rgba(15, 23, 42, .42);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity .22s ease, visibility .22s ease;
}
#researchbee-app #rb-service-intro-backdrop.show {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
#researchbee-app .rb-service-intro {
width: min(620px, calc(100vw - 32px));
max-height: min(720px, calc(100vh - 40px));
overflow-y: auto;
position: relative;
background: #fff;
border: 1px solid rgba(255,255,255,.7);
border-radius: 0 ;
box-shadow: 0 24px 70px rgba(15,23,42,.28), 0 4px 16px rgba(15,23,42,.12);
transform: translateY(14px) scale(.975);
transition: transform .22s ease;
cursor: default;
}
#researchbee-app #rb-service-intro-backdrop.show .rb-service-intro {
transform: translateY(0) scale(1);
}
#researchbee-app .rb-service-intro-head {
padding: 24px 54px 21px 24px;
color: #fff;
background: #001B48;
border-radius: 0 ;
}
#researchbee-app .rb-service-intro-kicker {
display: inline-flex;
align-items: center;
gap: 7px;
margin-bottom: 7px;
font-family: ui-monospace, monospace;
font-size: 10.5px;
font-weight: 700;
letter-spacing: .08em;
text-transform: uppercase;
color: rgba(255,255,255,.68);
}
#researchbee-app .rb-service-intro-head h2 {
margin: 0 0 7px;
font-size: 25px;
color: #fff;
}
#researchbee-app .rb-service-intro-head p {
margin: 0;
max-width: 500px;
font-size: 13.5px;
line-height: 1.6;
color: rgba(255,255,255,.78);
}
#researchbee-app #rb-service-intro-close {
position: absolute;
top: 14px;
right: 14px;
z-index: 2;
width: 32px;
height: 32px;
border: 1px solid rgba(255,255,255,.25);
border-radius: 0 ;
background: rgba(255,255,255,.12);
color: #fff;
font-size: 21px;
line-height: 1;
cursor: pointer;
}
#researchbee-app #rb-service-intro-close:hover,
#researchbee-app #rb-service-intro-close:focus-visible {
background: rgba(255,255,255,.22);
outline: 2px solid rgba(255,255,255,.55);
outline-offset: 2px;
}
#researchbee-app .rb-service-intro-body {
padding: 18px 22px 20px;
}
#researchbee-app .rb-service-list {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
#researchbee-app .rb-service-item {
display: flex;
align-items: flex-start;
gap: 11px;
min-width: 0;
padding: 12px 13px;
border: 1px solid #e5e7eb;
border-radius: 0 ;
background: #f8fafc;
}
#researchbee-app .rb-service-item-icon {
width: 34px;
height: 34px;
flex: 0 0 34px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 0 ;
background: #EBF1FA;
font-size: 17px;
}
#researchbee-app .rb-service-item:nth-child(2) .rb-service-item-icon { background: #d1fae5; }
#researchbee-app .rb-service-item:nth-child(3) .rb-service-item-icon { background: #fef3c7; }
#researchbee-app .rb-service-item:nth-child(4) .rb-service-item-icon { background: #f3e8ff; }
#researchbee-app .rb-service-item strong {
display: block;
margin-bottom: 2px;
font-size: 13px;
color: #1e293b;
}
#researchbee-app .rb-service-item span {
display: block;
font-size: 11.5px;
line-height: 1.45;
color: #64748b;
}
#researchbee-app .rb-service-intro-actions {
display: flex;
gap: 9px;
margin-top: 16px;
flex-wrap: wrap;
}
#researchbee-app .rb-service-intro-action {
flex: 1;
min-width: 180px;
border: 0;
border-radius: 0 ;
padding: 10px 15px;
font-family: "Open Sans", Arial, sans-serif;
font-size: 13px;
font-weight: 700;
cursor: pointer;
transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
#researchbee-app .rb-service-intro-action:hover {
transform: translateY(-1px);
}
#researchbee-app #rb-service-intro-explore {
background: #EEF3FA;
color: #174483;
border: 1px solid #C9D8EE;
}
#researchbee-app #rb-service-intro-chat {
color: #fff;
background: #001B48;
box-shadow: 0 4px 12px rgba(32,89,168,.22);
}
#researchbee-app .rb-service-intro-hint {
margin: 12px 0 0;
text-align: center;
font-size: 10.5px;
color: #94a3b8;
}
@media (max-width: 600px) {
#researchbee-app #rb-service-intro-backdrop {
align-items: flex-end;
padding: 12px;
}
#researchbee-app .rb-service-intro {
width: 100%;
max-height: calc(100vh - 24px);
border-radius: 0 ;
}
#researchbee-app .rb-service-intro-head { padding: 20px 48px 17px 18px; }
#researchbee-app .rb-service-intro-head h2 { font-size: 22px; }
#researchbee-app .rb-service-intro-body { padding: 14px 16px 16px; }
#researchbee-app .rb-service-list { grid-template-columns: 1fr; gap: 8px; }
#researchbee-app .rb-service-item { padding: 10px 11px; }
#researchbee-app .rb-service-intro-action { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
#researchbee-app #rb-service-intro-backdrop,
#researchbee-app .rb-service-intro { transition: none; }
}
/* ==========================================================================
ResearchBee v1.8 โ unified verified journal discovery
========================================================================== */
#researchbee-app .rb-advanced {
margin-top: 18px; border: 1px solid var(--border); border-radius: 0 ;
background: #FFFFFF; overflow: hidden;
}
#researchbee-app .rb-advanced > summary {
cursor: pointer; padding: 12px 15px; font-size: 13px; font-weight: 700;
color: var(--primary-dark); list-style-position: inside; user-select: none;
}
#researchbee-app .rb-advanced[open] > summary { border-bottom: 1px solid var(--border); background: var(--primary-xlight); }
#researchbee-app .rb-advanced-body { padding: 16px; }
#researchbee-app .rb-check-field {
padding: 11px 13px; background: #fff; border: 1px solid var(--border); border-radius: 0 ;
}
#researchbee-app .rb-check-field label { display: flex; align-items: flex-start; gap: 9px; font-weight: 650; }
#researchbee-app .rb-check-field input[type="checkbox"],
#researchbee-app .rb-compare-checkbox { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--primary); }
#researchbee-app .rb-planning-only {
display: inline-flex; margin-left: 5px; padding: 1px 7px; border-radius: 0 ;
background: #f1f5f9; color: #64748b; font-size: 10px; font-weight: 600;
}
#researchbee-app .rb-criteria-card {
background: #fff; border: 1px solid var(--border); border-radius: 0 ;
padding: 15px 17px; margin: 0 0 18px; display: grid; gap: 12px;
}
#researchbee-app .rb-criteria-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#researchbee-app .rb-criteria-card h4 { font-size: 13px; margin-bottom: 6px; color: var(--text); }
#researchbee-app .rb-criteria-list { margin: 0; padding-left: 19px; }
#researchbee-app .rb-criteria-list li { font-size: 12px; color: var(--text-muted); margin: 3px 0; }
#researchbee-app .rb-unverified-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 0 ; padding: 10px 12px; }
#researchbee-app .rb-verified-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 0 ; padding: 10px 12px; }
#researchbee-app .rb-journal-toolbar {
display: flex; align-items: center; justify-content: space-between; gap: 10px;
flex-wrap: wrap; margin: 10px 0 15px;
}
#researchbee-app .rb-policy-bulk,
#researchbee-app .rb-compare-open,
#researchbee-app .rb-export-compare {
border: 1.5px solid var(--primary); background: #fff; color: var(--primary-dark);
border-radius: 0 ; padding: 8px 13px; font: 600 12px "Open Sans", Arial, sans-serif;
cursor: pointer; transition: background .15s, transform .15s;
}
#researchbee-app .rb-policy-bulk:hover,
#researchbee-app .rb-compare-open:hover,
#researchbee-app .rb-export-compare:hover { background: var(--primary-xlight); transform: translateY(-1px); }
#researchbee-app .rb-policy-bulk:disabled,
#researchbee-app .rb-compare-open:disabled { opacity: .45; cursor: not-allowed; transform: none; }
#researchbee-app .rb-discovery-card { position: relative; }
#researchbee-app .rb-discovery-card .j-header { padding-right: 92px; }
#researchbee-app .rb-fit-score {
position: absolute; top: 15px; right: 18px; width: 58px; height: 58px;
border-radius: 50%; background: #fff; border: 3px solid var(--primary-light);
display: flex; flex-direction: column; align-items: center; justify-content: center;
box-shadow: var(--shadow-sm); color: var(--primary-dark); z-index: 2;
}
#researchbee-app .rb-fit-score strong { font: 700 18px ui-monospace,monospace; line-height: 1; }
#researchbee-app .rb-fit-score span { font-size: 9px; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
#researchbee-app .rb-card-select {
display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-muted);
margin-top: 9px; width: fit-content; cursor: pointer;
}
#researchbee-app .rb-identity-row { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
#researchbee-app .rb-id-badge {
display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 0 ;
background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 10.5px; font-weight: 650;
}
#researchbee-app .rb-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
#researchbee-app .rb-info-panel { border: 1px solid var(--border); border-radius: 0 ; padding: 12px 13px; background: #fff; }
#researchbee-app .rb-info-panel h5 { font-size: 12.5px; margin-bottom: 5px; }
#researchbee-app .rb-info-panel p { font-size: 12px; color: var(--text-muted); line-height: 1.55; }
#researchbee-app .rb-access-panel { background: #f8fafc; }
#researchbee-app .rb-ku-panel { background: #fffbeb; border-color: #fde68a; }
#researchbee-app .rb-policy-panel { background: #f0f9ff; border-color: #bae6fd; }
#researchbee-app .rb-policy-status { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
#researchbee-app .rb-policy-actions { display: flex; flex-wrap: wrap; gap: 7px; }
#researchbee-app .rb-policy-check-btn {
border: none; border-radius: 0 ; padding: 7px 11px; background: #0369a1; color: #fff;
font: 650 11.5px "Open Sans", Arial, sans-serif; cursor: pointer;
}
#researchbee-app .rb-policy-check-btn:hover { background: #075985; }
#researchbee-app .rb-policy-check-btn:disabled { opacity: .55; cursor: wait; }
#researchbee-app .rb-policy-result { margin-top: 11px; }
#researchbee-app .rb-policy-result .version-card { padding: 10px; }
#researchbee-app .rb-policy-result .source-panel { margin-top: 10px; }
#researchbee-app .rb-policy-unknown { padding: 9px 11px; border-radius: 0 ; background: #fffbeb; border: 1px solid #fde68a; font-size: 12px; color: #92400e; }
#researchbee-app .rb-fit-breakdown { border: 1px solid var(--border); border-radius: 0 ; padding: 12px 13px; background: #FFFFFF; }
#researchbee-app .rb-fit-breakdown h5 { font-size: 12.5px; margin-bottom: 8px; }
#researchbee-app .rb-fit-component { display: grid; grid-template-columns: minmax(140px,1fr) 2fr auto; gap: 8px; align-items: center; margin: 6px 0; }
#researchbee-app .rb-fit-component-label { font-size: 11.5px; color: var(--text-muted); }
#researchbee-app .rb-fit-bar { height: 7px; background: #e5e7eb; border-radius: 0 ; overflow: hidden; }
#researchbee-app .rb-fit-bar > span { display: block; height: 100%; background: var(--primary); border-radius: 0 ; }
#researchbee-app .rb-fit-component-value { font: 600 10.5px ui-monospace,monospace; color: var(--text-muted); }
#researchbee-app .rb-evidence { border-top: 1px solid var(--border); padding-top: 12px; }
#researchbee-app .rb-evidence h5 { font-size: 12.5px; margin-bottom: 5px; }
#researchbee-app .rb-evidence-note { font-size: 11.5px; color: var(--text-muted); margin-bottom: 7px; }
#researchbee-app .rb-evidence-list { margin: 0; padding-left: 18px; }
#researchbee-app .rb-evidence-list li { margin: 5px 0; font-size: 12px; color: var(--text); }
#researchbee-app .rb-evidence-list a { color: var(--primary); text-decoration: none; }
#researchbee-app .rb-evidence-list a:hover { text-decoration: underline; }
#researchbee-app .rb-refine-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
#researchbee-app .rb-refine-btn { border: 1px solid var(--border-strong); background: #fff; color: var(--primary-dark); border-radius: 0 ; padding: 7px 11px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
#researchbee-app .rb-refine-btn:hover { background: var(--primary-xlight); }
#researchbee-app .rb-extra-table .rb-extra-score { font: 700 12px ui-monospace,monospace; color: var(--primary-dark); }
#researchbee-app .rb-extra-actions { display: flex; flex-wrap: wrap; gap: 5px; }
#researchbee-app .rb-extra-policy { border: 1px solid #bae6fd; background: #f0f9ff; color: #075985; border-radius: 0 ; padding: 4px 7px; font-size: 10.5px; font-weight: 650; cursor: pointer; }
#researchbee-app .rb-comparison-panel { margin-top: 20px; border: 2px solid var(--primary-light); border-radius: 0 ; overflow: hidden; background: #fff; }
#researchbee-app .rb-comparison-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; background: var(--primary-xlight); }
#researchbee-app .rb-comparison-head h3 { font-size: 18px; }
#researchbee-app .rb-comparison-scroll { overflow-x: auto; }
#researchbee-app .rb-comparison-table { width: 100%; border-collapse: collapse; min-width: 700px; font-size: 12px; }
#researchbee-app .rb-comparison-table th,
#researchbee-app .rb-comparison-table td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; vertical-align: top; }
#researchbee-app .rb-comparison-table th { background: #f8fafc; font-size: 11px; color: var(--text-muted); }
#researchbee-app .rb-comparison-table td:first-child { font-weight: 700; width: 150px; background: #FFFFFF; }
#researchbee-app .rb-comparison-empty { padding: 18px; font-size: 13px; color: var(--text-muted); }
#researchbee-app .rb-shortlist-count { font: 650 11.5px "Open Sans", Arial, sans-serif; color: var(--text-muted); }
#researchbee-app .rb-no-results { padding: 28px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 0 ; }
#researchbee-app .rb-no-results h3 { font-size: 18px; margin-bottom: 7px; }
#researchbee-app .rb-no-results p { font-size: 13px; color: var(--text-muted); }
#researchbee-app .rb-subject-map-note {
margin-top: 10px; padding: 11px 13px; border-radius: 0 ;
background: #eff6ff; border: 1px solid #bfdbfe; border-left: 4px solid var(--primary);
color: #1e3a8a; font-size: 12.5px; line-height: 1.55;
}
#researchbee-app .rb-subject-map-note.spelling {
background: #f0fdf4; border-color: #bbf7d0; border-left-color: var(--success); color: #166534;
}
#researchbee-app .rb-subject-map-note.nearest {
background: #fffbeb; border-color: #fde68a; border-left-color: var(--warning); color: #78350f;
}
#researchbee-app .rb-re3data { margin: 22px 0; border: 1px solid var(--border); background: #fff; }
#researchbee-app .rb-re3data > summary {
cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 15px; color: var(--text);
background: var(--primary-xlight); list-style-position: inside;
}
#researchbee-app .rb-re3data > summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
#researchbee-app .rb-re3data-tag {
display: inline-block; margin-left: 8px; padding: 2px 8px; font-size: 11px; font-weight: 600;
background: #fffbeb; color: #78350f; border: 1px solid #fde68a; vertical-align: middle;
}
#researchbee-app .rb-re3data-body { padding: 14px 18px 18px; }
#researchbee-app .rb-re3data-intro { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
#researchbee-app .rb-re3data-item { border-top: 1px solid var(--border); padding: 14px 0; }
#researchbee-app .rb-re3data-item:first-of-type { border-top: 0; padding-top: 4px; }
#researchbee-app .rb-re3data-item h4 { font-size: 16px; margin-bottom: 4px; overflow-wrap: anywhere; }
#researchbee-app .rb-re3data-item p { font-size: 13px; }
#researchbee-app .rb-re3data-item .r-specs { margin-top: 8px; }
#researchbee-app .rb-re3data-item .checks-list { margin-top: 10px; }
#researchbee-app .rb-re3data-item .verify-row { margin-top: 8px; }
#researchbee-app .rb-re3data-note { font-size: 13px; padding: 12px 16px; margin: 18px 0; }
#researchbee-app .rb-subject-alternatives { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; align-items: center; }
#researchbee-app .rb-subject-alternatives-label { font-size: 11.5px; color: var(--text-muted); font-weight: 650; }
#researchbee-app .rb-version-badge {
display: inline-flex; padding: 2px 7px; border-radius: 0 ; margin-left: 5px;
background: #EEF3FA; color: #2059A8; border: 1px solid #C9D8EE;
font: 600 10px ui-monospace, monospace; vertical-align: middle;
}
@media (max-width: 700px) {
#researchbee-app .rb-criteria-columns,
#researchbee-app .rb-section-grid { grid-template-columns: 1fr; }
#researchbee-app .rb-discovery-card .j-header { padding-right: 78px; }
#researchbee-app .rb-fit-score { right: 12px; width: 52px; height: 52px; }
#researchbee-app .rb-fit-component { grid-template-columns: 1fr auto; }
#researchbee-app .rb-fit-bar { grid-column: 1 / -1; }
}
/* v1.8.2: keep closed controls out of keyboard navigation and preserve focus. */
#researchbee-app [hidden] { display: none !important; }
#researchbee-app button:focus-visible, #researchbee-app a:focus-visible,
#researchbee-app summary:focus-visible, #researchbee-app input:focus-visible,
#researchbee-app textarea:focus-visible, #researchbee-app select:focus-visible {
outline: 3px solid #2059A8 !important; outline-offset: 3px !important;
}
#researchbee-app .rb-data-notice { margin: 0 0 18px; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 0 ; color: #334155; background: #f8fafc; font-size: 12px; line-height: 1.6; }
#researchbee-app .rb-cover-letter-notice { color: #475569; font-size: 12px; line-height: 1.6; }
#researchbee-app .rb-character-count { display: block; margin-top: 4px; font-size: 11px; color: #64748b; }
#researchbee-app .rb-extra-policy-row td { padding: 8px 12px; }
#researchbee-app .rb-extra-policy-row summary { cursor: pointer; font-weight: 600; font-size: 12px; }
#researchbee-app[dir="rtl"] .tab-label-wrap, #researchbee-app[dir="rtl"] .mode-text,
#researchbee-app[dir="rtl"] .detail-item, #researchbee-app[dir="rtl"] .form-group { text-align: start; }
#researchbee-app[dir="rtl"] input[type="text"], #researchbee-app[dir="rtl"] textarea { text-align: start; }
#researchbee-app #l-doi, #researchbee-app #l-issn { direction: ltr; unicode-bidi: isolate; text-align: left; }
@media (prefers-reduced-motion: reduce) {
#researchbee-app *, #researchbee-app *::before, #researchbee-app *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
/* v1.8.3: reserve image space and keep the introduction user initiated. */
#researchbee-app .lb-mascot-img { width: 150px; height: 125px; object-fit: contain; }
#researchbee-app img[data-rb-mascot], #researchbee-app .results-mascot-img { object-fit: contain; }
#researchbee-app .rb-about-btn { margin-inline-start: auto; border: 1px solid #cbd5e1; border-radius: 0 ; padding: 7px 11px; background: #fff; color: #334155; font: 600 12px "Open Sans", Arial, sans-serif; cursor: pointer; }
#researchbee-app .rb-about-btn:hover { background: #EEF3FA; }
/* v1.8.4: always-visible publication support banner, scoped for LibGuides. */
#researchbee-app .rb-purpose {
background: #fff; border-top: 3px solid #2059A8;
color: #001B48; text-align: start;
}
#researchbee-app .rb-purpose-inner {
max-width: 1100px; margin-inline: auto; padding: 28px 24px 26px;
display: grid; grid-template-columns: 144px minmax(0, 1fr);
column-gap: 28px; align-items: center;
}
#researchbee-app .rb-purpose-mascot {
grid-column: 1; grid-row: 1 / 3; display: flex; justify-content: center;
}
#researchbee-app .rb-purpose-image {
display: block; width: 144px; height: 144px; object-fit: contain;
}
#researchbee-app .rb-purpose-heading { grid-column: 2; min-width: 0; }
#researchbee-app .rb-purpose-kicker {
color: #5E6772; font-size: 12px; line-height: 1.5; font-weight: 700;
letter-spacing: .035em; margin-bottom: 6px;
}
#researchbee-app .rb-purpose h1 {
font-family: "Open Sans", Arial, sans-serif; font-size: clamp(25px, 3vw, 32px);
font-weight: 750; line-height: 1.2; letter-spacing: -.025em; color: #001B48;
}
#researchbee-app .rb-purpose-tagline {
margin-top: 7px; color: #526074; font-size: 16px; line-height: 1.5;
}
#researchbee-app .rb-purpose-services {
grid-column: 2; list-style: none; display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
margin: 22px 0 0; padding: 0;
}
#researchbee-app .rb-purpose-service { min-width: 0; }
#researchbee-app .rb-purpose-service-title { display: flex; align-items: flex-start; gap: 9px; }
#researchbee-app .rb-purpose-number {
display: inline-flex; flex: 0 0 26px; align-items: center; justify-content: center;
width: 26px; height: 26px; border-radius: 50%; background: #EBF1FA;
color: #2059A8; font-size: 13px; font-weight: 750; line-height: 1;
}
#researchbee-app .rb-purpose h2 {
font-family: "Open Sans", Arial, sans-serif; font-size: 17px; font-weight: 700;
line-height: 1.4; color: #001B48;
}
#researchbee-app .rb-purpose-service p {
margin-top: 8px; color: #526074; font-size: 15px; line-height: 1.55;
}
#researchbee-app .rb-purpose-search { background: #fffbf1; border-top: 1px solid #efdfb6; }
#researchbee-app .rb-purpose-search-inner {
max-width: 1100px; margin-inline: auto; padding: 15px 24px;
display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
#researchbee-app .rb-purpose-search-copy { min-width: 0; }
#researchbee-app .rb-purpose-search-copy strong {
display: block; font-size: 17px; line-height: 1.4; color: #001B48;
}
#researchbee-app .rb-purpose-search-copy p {
margin-top: 3px; font-size: 15px; line-height: 1.5; color: #4b5563;
}
#researchbee-app .rb-purpose-links { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
#researchbee-app .rb-purpose-link {
display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
padding: 9px 15px; border: 1px solid #c7ceda; border-radius: 0 ;
background: #fff; color: #001B48; font: 650 15px/1.4 "Open Sans", Arial, sans-serif;
text-decoration: none; white-space: nowrap;
}
#researchbee-app .rb-purpose-link:hover { background: #001B48; border-color: #001B48; color: #fff; }
#researchbee-app .rb-purpose-link:focus-visible { outline: 3px solid #2059A8; outline-offset: 3px; }
#researchbee-app[dir="rtl"] .rb-purpose-kicker,
#researchbee-app[dir="rtl"] .rb-purpose h1 { letter-spacing: normal; }
@media (max-width: 900px) {
#researchbee-app .rb-purpose-inner { grid-template-columns: 112px minmax(0, 1fr); gap: 0 20px; }
#researchbee-app .rb-purpose-mascot { grid-row: 1; }
#researchbee-app .rb-purpose-image { width: 112px; height: 112px; }
#researchbee-app .rb-purpose-services { grid-column: 1 / -1; }
#researchbee-app .rb-purpose-search-inner { flex-wrap: wrap; }
}
@media (max-width: 600px) {
#researchbee-app .rb-purpose-inner { grid-template-columns: 70px minmax(0, 1fr); padding: 20px 16px; column-gap: 13px; }
#researchbee-app .rb-purpose-image { width: 70px; height: 78px; }
#researchbee-app .rb-purpose-kicker { font-size: 11px; margin-bottom: 5px; }
#researchbee-app .rb-purpose h1 { font-size: 24px; line-height: 1.25; }
#researchbee-app .rb-purpose-tagline { font-size: 15px; }
#researchbee-app .rb-purpose-services { grid-template-columns: 1fr; gap: 13px; margin-top: 20px; }
#researchbee-app .rb-purpose-service p { margin-top: 3px; padding-inline-start: 35px; }
#researchbee-app .rb-purpose-service + .rb-purpose-service { border-top: 1px solid #edf0f4; padding-top: 13px; }
#researchbee-app .rb-purpose-search-inner { padding: 15px 16px; gap: 12px; }
#researchbee-app .rb-purpose-links { width: 100%; }
#researchbee-app .rb-purpose-link { flex: 1; }
}
/* v1.9.0: a quiet home screen and one task at a time. */
#researchbee-app .rb-workflow-header {
max-width: 1100px; margin: 0 auto; padding: 26px 20px 14px;
display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
#researchbee-app .rb-workflow-header h2 {
font: 700 22px/1.35 "Open Sans", Arial, sans-serif; color: #001B48;
}
#researchbee-app .rb-clear-all,
#researchbee-app .rb-back-options {
min-height: 44px; border: 1px solid #cbd5e1; border-radius: 0 ;
background: #fff; color: #334155; padding: 9px 14px;
font: 600 14px/1.45 "Open Sans", Arial, sans-serif; cursor: pointer;
}
#researchbee-app .rb-clear-all:hover,
#researchbee-app .rb-back-options:hover { background: #edf2f8; border-color: #94a3b8; }
#researchbee-app .tabs-bar {
background: transparent !important; box-shadow: none !important;
}
#researchbee-app .tabs-bar .tabs-inner {
display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
padding: 0 20px !important; gap: 12px !important; align-items: stretch !important;
}
#researchbee-app .tabs-bar .tab-btn {
--rb-tab-colour: #001B48;
border: 1px solid #d6dce5 !important; border-radius: 0 !important;
background: #fff !important; box-shadow: none !important;
padding: 17px 16px !important; gap: 12px !important;
transform: none !important; filter: none !important;
text-align: start; transition: background .15s, border-color .15s !important;
}
#researchbee-app .tabs-bar .tab-btn[data-tab="license"] { --rb-tab-colour: #065f46; }
#researchbee-app .tabs-bar .tab-btn[data-tab="data"] { --rb-tab-colour: #92400e; }
#researchbee-app .tabs-bar .tab-btn:hover { background: #f2f5fa !important; border-color: #94a3b8 !important; }
#researchbee-app .tabs-bar .tab-btn.active {
background: var(--rb-tab-colour) !important; border-color: var(--rb-tab-colour) !important;
box-shadow: none !important; transform: none !important;
}
#researchbee-app .rb-function-number {
display: inline-flex; align-items: center; justify-content: center;
flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
background: #edf1f7; color: #001B48; font: 750 17px/1 "Open Sans", Arial, sans-serif;
}
#researchbee-app .tabs-bar .tab-btn.active .rb-function-number { background: #fff; color: var(--rb-tab-colour); }
#researchbee-app .tabs-bar .tab-label-wrap { overflow: visible; }
#researchbee-app .tabs-bar .tab-label-main {
white-space: normal !important; overflow: visible !important;
color: #001B48 !important; font-size: 17px !important; font-weight: 700 !important; line-height: 1.35;
}
#researchbee-app .tabs-bar .tab-label-sub { display: block !important; font-size: 12px !important; color: #526074 !important; line-height: 1.5; margin-top: 3px; }
#researchbee-app .tabs-bar .tab-btn.active .tab-label-main { color: #fff !important; }
#researchbee-app .tabs-bar .tab-btn.active .tab-label-sub { color: #e5edf7 !important; }
#researchbee-app .tabs-bar .tab-btn:focus-visible { outline: 3px solid #2059A8 !important; outline-offset: 3px !important; }
#researchbee-app .main-content { padding-top: 22px; }
#researchbee-app #rb-home-view { color: #526074; font-size: 16px; padding: 0 0 12px; }
#researchbee-app .rb-journal-choices { padding: 8px 0 12px; }
#researchbee-app .rb-journal-choices h2 {
color: #001B48; font: 750 clamp(25px, 3vw, 32px)/1.25 "Open Sans", Arial, sans-serif;
letter-spacing: -.02em; margin-bottom: 9px;
}
#researchbee-app .rb-choice-intro { font-size: 16px; color: #526074; line-height: 1.6; }
#researchbee-app .rb-journal-choices .mode-selector { margin: 24px 0 0; gap: 18px; }
#researchbee-app .rb-journal-choices :is(.mode-btn, .rb-choice-btn) {
display: flex; flex-direction: row; align-items: flex-start; gap: 14px;
padding: 24px !important; background: #fff !important; border: 1px solid #d6dce5 !important;
border-radius: 0 !important; box-shadow: none !important; transform: none !important;
min-width: 0; text-align: start; cursor: pointer;
}
#researchbee-app .rb-journal-choices :is(.mode-btn, .rb-choice-btn)::before,
#researchbee-app .rb-journal-choices :is(.mode-btn, .rb-choice-btn)::after { display: none !important; }
#researchbee-app .rb-journal-choices :is(.mode-btn, .rb-choice-btn):hover { background: #f6f8fc !important; border-color: #8799b8 !important; }
#researchbee-app .rb-choice-number {
display: inline-flex; align-items: center; justify-content: center;
flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
background: #EBF1FA; color: #2059A8; font: 750 19px/1 "Open Sans", Arial, sans-serif;
}
#researchbee-app .rb-journal-choices .mode-title { color: #001B48 !important; font: 700 22px/1.3 "Open Sans", Arial, sans-serif !important; }
#researchbee-app .rb-journal-choices .mode-desc { display: block; margin-top: 9px; color: #526074; font: 400 16px/1.6 "Open Sans", Arial, sans-serif; }
#researchbee-app .rb-choice-action { display: block; margin-top: 15px; color: #334f7d; font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
#researchbee-app .rb-mode-back { margin-bottom: 16px; }
#researchbee-app .rb-back-options { border-color: transparent; background: transparent; padding-inline: 0; color: #334f7d; }
#researchbee-app .rb-data-notice { padding: 12px 15px; margin-bottom: 18px; font-size: 14px; background: #fff; }
#researchbee-app .rb-data-notice > p { line-height: 1.6; }
#researchbee-app .rb-data-notice details { margin-top: 6px; }
#researchbee-app .rb-data-notice summary { color: #334f7d; font-weight: 600; cursor: pointer; width: fit-content; min-height: 28px; }
#researchbee-app .rb-data-notice details p { margin-top: 8px; color: #526074; }
#researchbee-app #rb-chat-launcher { padding: 9px 14px; gap: 9px; }
#researchbee-app .rb-launcher-label-top { display: none; }
#researchbee-app .rb-launcher-label-main { font: 650 14px/1.4 "Open Sans", Arial, sans-serif; }
#researchbee-app #rb-chat-launcher .rb-launcher-icon { width: 34px; height: 34px; }
#researchbee-app[dir="rtl"] .rb-journal-choices h2 { letter-spacing: normal; }
@media (max-width: 650px) {
#researchbee-app .rb-workflow-header { padding: 22px 12px 14px; flex-wrap: wrap; gap: 10px; }
#researchbee-app .rb-workflow-header h2 { font-size: 21px; }
#researchbee-app .tabs-bar .tabs-inner { grid-template-columns: 1fr; padding: 0 12px !important; gap: 8px !important; }
#researchbee-app .tabs-bar .tab-btn { padding: 13px 14px !important; }
#researchbee-app .tabs-bar .tab-label-main { font-size: 17px !important; }
#researchbee-app .tabs-bar .tab-label-sub { display: none !important; }
#researchbee-app .rb-journal-choices .mode-selector { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
#researchbee-app .rb-journal-choices :is(.mode-btn, .rb-choice-btn) { padding: 20px 16px !important; gap: 12px; }
#researchbee-app .rb-journal-choices .mode-title { font-size: 20px !important; }
#researchbee-app .rb-journal-choices .mode-desc { font-size: 15px; }
}
/* Data repository: introduction, dataset description, sharing requirements. */
#researchbee-app #rb-repo-intro { padding: 8px 0 16px; }
#researchbee-app #rb-repo-intro h2 {
color: #001B48; font: 750 clamp(25px, 3vw, 32px)/1.25 "Open Sans", Arial, sans-serif;
letter-spacing: -.02em; margin: 0 0 10px;
}
#researchbee-app .rb-repo-step-summary {
list-style: none; padding: 0; margin: 24px 0; display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
#researchbee-app .rb-repo-step-summary li {
display: flex; align-items: flex-start; gap: 14px; background: #fff;
border: 1px solid #d6dce5; border-radius: 0 ; padding: 24px;
}
#researchbee-app .rb-repo-step-summary h3 {
font: 700 21px/1.35 "Open Sans", Arial, sans-serif; color: #001B48; margin: 0 0 8px;
}
#researchbee-app .rb-repo-step-summary p {
font: 400 16px/1.6 "Open Sans", Arial, sans-serif; color: #526074; margin: 0;
}
#researchbee-app .rb-repo-step-label {
color: #92400e; font: 700 13px/1.5 "Open Sans", Arial, sans-serif; margin: 0 0 8px;
}
#researchbee-app .rb-repo-step-actions {
display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px;
}
#researchbee-app #rb-repo-intro .btn-primary,
#researchbee-app .rb-repo-step-actions .btn-primary { width: auto; min-width: 200px; }
#researchbee-app #repo-form .rb-step-header h2 {
font: 700 clamp(23px, 2.7vw, 29px)/1.3 "Open Sans", Arial, sans-serif; margin: 0 0 9px;
}
#researchbee-app #repo-form .rb-step-header p { max-width: 760px; }
#researchbee-app #rb-repo-stage-2 > .section-sep:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 680px) {
#researchbee-app .rb-repo-step-summary { grid-template-columns: 1fr; gap: 12px; }
#researchbee-app .rb-repo-step-summary li { padding: 20px; }
#researchbee-app .rb-repo-step-actions { align-items: stretch; }
#researchbee-app .rb-repo-step-actions > button { flex: 1 1 100%; }
}
/* v1.9.1: compact journal summaries with alternating, non-semantic colours. */
#researchbee-app #journal-cards-wrap > .rb-discovery-card {
--rb-journal-surface: #f4f8ff;
--rb-journal-head: #edf3fc;
--rb-journal-line: #cad8ed;
--rb-journal-accent: #7d9bc7;
background: var(--rb-journal-surface); border: 1px solid var(--rb-journal-line);
border-inline-start: 4px solid var(--rb-journal-accent);
border-radius: 0 ; box-shadow: 0 2px 7px rgba(26,39,68,.04);
margin-bottom: 12px; min-width: 0;
}
#researchbee-app #journal-cards-wrap > .rb-discovery-card:nth-child(even) {
--rb-journal-surface: #fffaf0;
--rb-journal-head: #fff4df;
--rb-journal-line: #e7d9ba;
--rb-journal-accent: #c4a56c;
}
#researchbee-app #journal-cards-wrap .rb-discovery-card .j-header {
padding: 12px 16px; padding-inline-end: 80px;
background: var(--rb-journal-head); border-bottom-color: var(--rb-journal-line);
}
#researchbee-app #journal-cards-wrap .rb-discovery-card .j-meta { margin-bottom: 3px; font-size: 11.5px; overflow-wrap: anywhere; }
#researchbee-app #journal-cards-wrap .rb-discovery-card .j-title {
font-family: "Open Sans", Arial, sans-serif; font-weight: 700; font-size: 20px;
line-height: 1.35; margin-bottom: 7px; color: #001B48; overflow-wrap: anywhere;
}
#researchbee-app #journal-cards-wrap .rb-discovery-card .rb-identity-row { gap: 5px; }
#researchbee-app #journal-cards-wrap .rb-discovery-card .rb-fit-score {
top: 12px; right: auto; left: auto; inset-inline-end: 14px;
width: 50px; height: 50px; box-shadow: none; border-width: 2px;
border-color: var(--rb-journal-line);
}
#researchbee-app #journal-cards-wrap .rb-discovery-card .rb-fit-score strong { font-size: 17px; }
#researchbee-app #journal-cards-wrap .rb-discovery-card .rb-fit-score span { font-size: 8px; }
#researchbee-app #journal-cards-wrap .rb-discovery-card .rb-card-select { margin-top: 7px; font-size: 12px; min-height: 28px; }
#researchbee-app #journal-cards-wrap .rb-discovery-card .j-body {
padding: 12px 16px; gap: 10px; background: transparent;
}
#researchbee-app #journal-cards-wrap .rb-card-fit h5 { color: #001B48; font-size: 13px; margin-bottom: 3px; }
#researchbee-app #journal-cards-wrap .rb-card-fit p { color: #475569; font-size: 13px; line-height: 1.55; }
#researchbee-app #journal-cards-wrap .rb-card-ranking-note { font-size: 11.5px; line-height: 1.5; color: #526074; }
#researchbee-app #journal-cards-wrap .rb-card-ranking-note strong { color: #334155; }
#researchbee-app #journal-cards-wrap .rb-card-primary-actions { margin: 0; gap: 7px; }
#researchbee-app #journal-cards-wrap .rb-card-primary-actions .rb-cover-letter-notice,
#researchbee-app #journal-cards-wrap .rb-card-primary-actions [id^="cover-letter-"] { flex-basis: 100%; width: 100%; min-width: 0; }
#researchbee-app #journal-cards-wrap .rb-card-primary-actions .rb-refine-btn,
#researchbee-app #journal-cards-wrap .rb-card-primary-actions .rb-cover-letter-btn { min-height: 36px; padding: 7px 11px; }
#researchbee-app #journal-cards-wrap .rb-journal-details {
border-top: 1px solid var(--rb-journal-line); margin-top: 1px;
}
#researchbee-app #journal-cards-wrap .rb-journal-details > summary {
color: #243c62; cursor: pointer; min-height: 44px; padding: 11px 0 7px;
font-size: 13px; line-height: 1.5; font-weight: 700;
}
#researchbee-app #journal-cards-wrap .rb-journal-details > summary:hover { color: #2059A8; }
#researchbee-app #journal-cards-wrap .rb-journal-details .rb-details-open-label { display: none; }
#researchbee-app #journal-cards-wrap .rb-journal-details[open] > summary .rb-details-closed-label { display: none; }
#researchbee-app #journal-cards-wrap .rb-journal-details[open] > summary .rb-details-open-label { display: inline; }
#researchbee-app #journal-cards-wrap .rb-journal-details-body { display: flex; flex-direction: column; gap: 10px; padding-top: 5px; }
#researchbee-app #journal-cards-wrap .rb-journal-details-body > * { min-width: 0; }
#researchbee-app #journal-cards-wrap .rb-journal-details .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#researchbee-app #journal-cards-wrap .rb-journal-details .detail-item { min-width: 0; }
#researchbee-app #journal-cards-wrap .rb-journal-details .detail-item p { font-size: 12px; line-height: 1.55; }
#researchbee-app #journal-cards-wrap .rb-journal-details .rb-section-grid { gap: 10px; }
#researchbee-app #journal-cards-wrap .rb-journal-details .rb-info-panel,
#researchbee-app #journal-cards-wrap .rb-journal-details .rb-fit-breakdown,
#researchbee-app #journal-cards-wrap .rb-journal-details .rank-box { padding: 10px 12px; }
#researchbee-app #journal-cards-wrap .rb-journal-details .rb-evidence { padding-top: 9px; }
@media (max-width: 640px) {
#researchbee-app #journal-cards-wrap .rb-discovery-card .j-header { padding: 11px 12px; padding-inline-end: 72px; }
#researchbee-app #journal-cards-wrap .rb-discovery-card .j-title { font-size: 18px; }
#researchbee-app #journal-cards-wrap .rb-discovery-card .j-body { padding: 11px 12px; }
#researchbee-app #journal-cards-wrap .rb-discovery-card .rb-fit-score { inset-inline-end: 11px; }
#researchbee-app #journal-cards-wrap .rb-journal-details .detail-grid,
#researchbee-app #journal-cards-wrap .rb-journal-details .rb-section-grid { grid-template-columns: 1fr; }
#researchbee-app #journal-cards-wrap .rb-card-primary-actions .rb-refine-btn,
#researchbee-app #journal-cards-wrap .rb-card-primary-actions .rb-cover-letter-btn { min-height: 44px; }
}
/* v1.9.2: feedback link with a brief, gentle invitation animation. */
#researchbee-app .rb-feedback-link {
margin-inline-start: auto; display: inline-flex; align-items: center; gap: 9px;
min-height: 42px; padding: 9px 15px; border: 1px solid #f5ce78; border-radius: 0 ;
background: #fff2c8;
color: #28334a; font: 750 14px/1.4 "Open Sans", Arial, sans-serif; text-decoration: none;
box-shadow: 0 2px 8px rgba(0,0,0,.12); white-space: nowrap;
transition: background .18s, box-shadow .18s, transform .18s;
}
#researchbee-app .rb-feedback-link:hover {
background: #ffe5a3; color: #17243d; text-decoration: none;
box-shadow: 0 3px 12px rgba(0,0,0,.2); transform: translateY(-1px);
}
#researchbee-app .rb-feedback-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#researchbee-app .rb-feedback-icon {
flex: 0 0 auto; transform-origin: center;
animation: rb-feedback-nudge 1.35s ease-in-out .3s 3;
}
#researchbee-app .rb-feedback-arrow { flex: 0 0 auto; opacity: .7; }
@keyframes rb-feedback-nudge {
0%, 65%, 100% { transform: translateY(0) rotate(0deg); }
20% { transform: translateY(-2px) rotate(-8deg); }
40% { transform: translateY(-1px) rotate(6deg); }
}
@media (max-width: 480px) {
#researchbee-app .rb-feedback-link { padding: 8px 12px; font-size: 13px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
#researchbee-app .rb-feedback-icon { animation: none !important; }
#researchbee-app .rb-feedback-link { transition: none; }
#researchbee-app .rb-feedback-link:hover { transform: none; }
}
#researchbee-app .rb-trusted-links {display:flex;flex-wrap:wrap;gap:8px;padding:10px 0;font-size:12px;}
.rb-trusted-links > div {display:flex;flex-direction:column;gap:3px;}
.rb-trusted-links small {display:block;font-size:11px;font-weight:normal;overflow-wrap:anywhere;}
.j-title a {color:inherit;text-decoration:underline;text-underline-offset:3px;}
/* =============================================================
KHALIFA UNIVERSITY STYLE LAYER โ ResearchBee
Follows www.ku.ac.ae: Open Sans text, PT Sans uppercase titles
with a short rule, KU blue navigation, flat colour tiles,
square corners, no gradients or decorative shadows.
============================================================= */
#researchbee-app.rb-ku {
--primary: #2059A8; --primary-dark: #174483; --primary-light: #EBF1FA; --primary-xlight: #F4F7FC;
--text: #333A42; --text-muted: #5E6772; --border: #DDE2E8; --border-strong: #C4CBD4; --bg-subtle: #FFFFFF;
--ku-navy: #001B48; --ku-navy-2: #0A2D66; --ku-blue: #2059A8; --ku-blue-dark: #174483; --ku-sky: #6FA8E8;
--ku-purple: #5B3F8C; --ku-grey: #6D7480; --ku-title: #3E3E3E; --ku-line: #DDE2E8; --ku-soft: #F4F6F9; --ku-tint: #EBF1FA;
--ku-head: "PT Sans", "Open Sans", Arial, sans-serif;
min-height: 0; background: #fff; color: #333A42;
font-family: "Open Sans", Arial, sans-serif; font-size: 15px;
}
#researchbee-app.rb-ku :is(button, a, summary, input, textarea, select):focus-visible { outline: 3px solid var(--ku-sky) !important; outline-offset: 2px !important; }
#researchbee-app.rb-ku .rb-ku-shell { width: min(1170px, calc(100% - 40px)); margin: 0 auto; }
/* ---------- Header ---------- */
#researchbee-app.rb-ku .rb-ku-header { background: #fff; border-bottom: 1px solid var(--ku-line); }
#researchbee-app.rb-ku .rb-ku-header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; padding: 12px 0; }
#researchbee-app.rb-ku .rb-ku-logo { display: inline-flex; flex: 0 0 auto; padding-inline-end: 20px; border-inline-end: 1px solid var(--ku-line); }
#researchbee-app.rb-ku .rb-ku-logo img { display: block; width: auto !important; height: 42px !important; max-width: none !important; }
#researchbee-app.rb-ku .rb-ku-brand { display: flex; flex-direction: column; min-width: 0; }
#researchbee-app.rb-ku .rb-ku-brand-name { color: var(--ku-navy); font: 700 26px/1.1 var(--ku-head); }
#researchbee-app.rb-ku .rb-ku-brand-sub { margin-top: 3px; color: var(--text-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
/* Language + feedback: quiet controls on the right of the header */
#researchbee-app.rb-ku .rb-libguide-toolbar { margin-inline-start: auto; background: transparent; color: var(--text); border-radius: 0; }
#researchbee-app.rb-ku .rb-libguide-toolbar .model-bar-inner { display: flex; align-items: center; gap: 10px; max-width: none; padding: 0; background: transparent; }
#researchbee-app.rb-ku .rb-libguide-toolbar .model-label { color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
#researchbee-app.rb-ku .model-toggle { display: inline-flex; gap: 0; padding: 0; border: 1px solid var(--border-strong); border-radius: 0; background: #fff; }
#researchbee-app.rb-ku .lang-btn { min-width: 40px; min-height: 34px; padding: 4px 10px; border: 0; border-radius: 0; background: #fff; color: var(--ku-blue); font: 700 12.5px/1 "Open Sans", Arial, sans-serif; box-shadow: none; }
#researchbee-app.rb-ku .lang-btn.active { background: var(--ku-blue); color: #fff; }
#researchbee-app.rb-ku .lang-btn:hover:not(.active) { background: var(--ku-tint); }
#researchbee-app.rb-ku .rb-feedback-link {
margin-inline-start: 6px; min-height: 36px; padding: 6px 14px; gap: 8px; border: 1px solid var(--ku-blue); border-radius: 0;
background: #fff; color: var(--ku-blue); box-shadow: none; font: 700 12.5px/1.3 "Open Sans", Arial, sans-serif; letter-spacing: .03em; text-transform: uppercase;
}
#researchbee-app.rb-ku .rb-feedback-link:hover { background: var(--ku-blue); color: #fff; box-shadow: none; transform: none; }
#researchbee-app.rb-ku .rb-feedback-icon { animation: none; }
/* KU blue link bar */
#researchbee-app.rb-ku .rb-ku-nav { background: var(--ku-blue); }
#researchbee-app.rb-ku .rb-ku-nav-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
#researchbee-app.rb-ku .rb-ku-nav-inner::-webkit-scrollbar { display: none; }
#researchbee-app.rb-ku .rb-ku-nav a {
position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 46px; padding: 0 16px;
color: #fff; font-size: 13.5px; font-weight: 600; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
#researchbee-app.rb-ku .rb-ku-nav a:first-child { padding-inline-start: 0; }
#researchbee-app.rb-ku .rb-ku-nav a + a::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: rgba(255,255,255,.55); }
#researchbee-app.rb-ku .rb-ku-nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 9px; height: 2px; background: #fff; transform: scaleX(0); transition: transform .18s ease; }
#researchbee-app.rb-ku .rb-ku-nav a:first-child::after { left: 0; }
#researchbee-app.rb-ku[dir="rtl"] .rb-ku-nav a:first-child::after { left: 16px; right: 0; }
#researchbee-app.rb-ku .rb-ku-nav a:hover::after { transform: scaleX(1); }
/* ---------- Hero ---------- */
#researchbee-app.rb-ku .rb-purpose { position: relative; overflow: hidden; border-top: 0; background: var(--ku-navy); color: #fff; }
#researchbee-app.rb-ku .rb-purpose::before,
#researchbee-app.rb-ku .rb-purpose::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: 0; pointer-events: none; }
#researchbee-app.rb-ku .rb-purpose::before { width: 32%; background: var(--ku-blue); clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); }
#researchbee-app.rb-ku .rb-purpose::after { width: 14%; background: #2E6BC0; clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%); opacity: .85; }
#researchbee-app.rb-ku[dir="rtl"] .rb-purpose::before { clip-path: polygon(0 0, 72% 0, 100% 100%, 0 100%); }
#researchbee-app.rb-ku[dir="rtl"] .rb-purpose::after { clip-path: polygon(0 0, 55% 0, 100% 100%, 0 100%); }
#researchbee-app.rb-ku .rb-purpose-inner {
position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px;
width: min(1170px, calc(100% - 40px)); max-width: none; margin: 0 auto; padding: 44px 0 46px;
}
#researchbee-app.rb-ku .rb-purpose-heading { min-width: 0; max-width: 660px; }
#researchbee-app.rb-ku .rb-purpose-kicker { margin: 0 0 12px; color: #C7D3E6; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#researchbee-app.rb-ku .rb-purpose h1 {
position: relative; margin: 0 0 18px; padding-bottom: 16px; color: #fff;
font: 700 clamp(30px, 4vw, 44px)/1.08 var(--ku-head); letter-spacing: 0; text-transform: uppercase;
}
#researchbee-app.rb-ku .rb-purpose h1::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 60px; height: 4px; background: var(--ku-sky); }
#researchbee-app.rb-ku .rb-purpose-tagline { margin: 0; color: #E3EAF5; font-size: 18px; line-height: 1.5; }
#researchbee-app.rb-ku .rb-purpose-mascot { position: relative; flex: 0 0 auto; margin-inline-end: 6%; padding: 14px; background: #fff; }
#researchbee-app.rb-ku .rb-purpose-mascot::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border: 2px solid #fff; }
#researchbee-app.rb-ku .rb-purpose-image { display: block; width: 140px; height: 140px; object-fit: contain; }
/* Slim "looking for articles" strip */
#researchbee-app.rb-ku .rb-purpose-search { position: relative; z-index: 1; border-top: 0; background: var(--ku-soft); color: var(--text); }
#researchbee-app.rb-ku .rb-purpose-search-inner { width: min(1170px, calc(100% - 40px)); max-width: none; margin: 0 auto; padding: 14px 0; gap: 16px; }
#researchbee-app.rb-ku .rb-purpose-search-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
#researchbee-app.rb-ku .rb-purpose-search-copy strong { display: inline; color: var(--ku-navy); font-size: 14.5px; font-weight: 700; }
#researchbee-app.rb-ku .rb-purpose-search-copy p { margin: 0; color: var(--text-muted); font-size: 14px; }
#researchbee-app.rb-ku .rb-purpose-links { gap: 6px; }
#researchbee-app.rb-ku .rb-purpose-link {
min-height: 36px; padding: 6px 14px; border: 1px solid var(--ku-blue); border-radius: 0; background: #fff; color: var(--ku-blue);
font: 700 12.5px/1.3 "Open Sans", Arial, sans-serif; letter-spacing: .03em; text-transform: uppercase;
}
#researchbee-app.rb-ku .rb-purpose-link:hover { background: var(--ku-blue); border-color: var(--ku-blue); color: #fff; }
/* ---------- Section titles ---------- */
#researchbee-app.rb-ku :is(.rb-workflow-header h2, .rb-journal-choices h2, #rb-repo-intro h2) {
position: relative; margin: 0 0 12px; padding-bottom: 14px; color: var(--ku-title);
font: 700 clamp(23px, 2.6vw, 28px)/1.15 var(--ku-head); letter-spacing: 0; text-transform: uppercase;
}
#researchbee-app.rb-ku :is(.rb-workflow-header h2, .rb-journal-choices h2, #rb-repo-intro h2)::after {
content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 50px; height: 4px; background: var(--ku-title);
}
#researchbee-app.rb-ku .rb-choice-intro { color: var(--text-muted); font-size: 15.5px; }
/* ---------- Function tiles (the three tabs) ---------- */
#researchbee-app.rb-ku .rb-workflow-header { width: min(1170px, calc(100% - 40px)); max-width: none; margin: 0 auto; padding: 48px 0 10px; align-items: flex-end; }
#researchbee-app.rb-ku .rb-workflow-header h2 { margin-bottom: 0; }
#researchbee-app.rb-ku[dir="rtl"] :is(.rb-workflow-header h2, .rb-journal-choices h2, #rb-repo-intro h2) { padding-bottom: 20px; }
#researchbee-app.rb-ku .rb-clear-all {
min-height: 36px; padding: 6px 14px; border: 1px solid var(--ku-blue); border-radius: 0; background: #fff; color: var(--ku-blue);
font: 700 12.5px/1.3 "Open Sans", Arial, sans-serif; letter-spacing: .03em; text-transform: uppercase;
}
#researchbee-app.rb-ku .rb-clear-all:hover { background: var(--ku-blue); border-color: var(--ku-blue); color: #fff; }
#researchbee-app.rb-ku[data-rb-view="home"] .rb-clear-all { display: none; }
#researchbee-app.rb-ku .tabs-bar { margin-top: 20px; background: transparent !important; border: 0 !important; box-shadow: none !important; }
#researchbee-app.rb-ku .tabs-bar .tabs-inner {
display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px !important;
width: min(1170px, calc(100% - 40px)); max-width: none; margin: 0 auto; padding: 0 !important; overflow: visible !important;
}
#researchbee-app.rb-ku .tabs-bar .tab-btn {
--rb-tab-colour: var(--ku-blue);
position: relative; display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start;
gap: 16px !important; min-height: 190px; padding: 24px 24px 54px !important; overflow: visible;
border: 0 !important; border-radius: 0 !important; background: var(--rb-tab-colour) !important; color: #fff;
box-shadow: none !important; transform: none !important; filter: none !important; text-align: start; cursor: pointer;
transition: background-color .18s ease !important;
}
#researchbee-app.rb-ku .tabs-bar .tab-btn[data-tab="license"] { --rb-tab-colour: var(--ku-navy); }
#researchbee-app.rb-ku .tabs-bar .tab-btn[data-tab="data"] { --rb-tab-colour: var(--ku-purple); }
#researchbee-app.rb-ku .tabs-bar .tab-btn:hover { background: var(--ku-blue-dark) !important; }
#researchbee-app.rb-ku .tabs-bar .tab-btn[data-tab="license"]:hover { background: #0B2A63 !important; }
#researchbee-app.rb-ku .tabs-bar .tab-btn[data-tab="data"]:hover { background: #4A3274 !important; }
#researchbee-app.rb-ku .rb-function-number {
flex: 0 0 auto; width: 38px; height: 38px; border: 2px solid rgba(255,255,255,.75); border-radius: 0 !important;
background: transparent !important; color: #fff !important; font: 700 18px/1 var(--ku-head);
}
#researchbee-app.rb-ku .tabs-bar .tab-label-wrap { display: block; min-width: 0; overflow: visible !important; }
#researchbee-app.rb-ku .tabs-bar .tab-label-main {
display: block; color: #fff !important; font: 700 17px/1.3 "Open Sans", Arial, sans-serif !important;
text-transform: uppercase; white-space: normal !important; overflow: visible !important; text-overflow: clip !important;
}
#researchbee-app.rb-ku .tabs-bar .tab-label-sub {
display: block !important; margin-top: 8px; color: rgba(255,255,255,.84) !important;
font-size: 14px !important; font-weight: 400; line-height: 1.55 !important; text-transform: none;
}
#researchbee-app.rb-ku .rb-ku-tab-arrow { position: absolute; inset-inline-end: 22px; bottom: 22px; color: #fff; transition: transform .18s ease; }
#researchbee-app.rb-ku[dir="rtl"] .rb-ku-tab-arrow { transform: scaleX(-1); }
#researchbee-app.rb-ku .tabs-bar .tab-btn:hover .rb-ku-tab-arrow { transform: translateX(4px); }
#researchbee-app.rb-ku[dir="rtl"] .tabs-bar .tab-btn:hover .rb-ku-tab-arrow { transform: scaleX(-1) translateX(4px); }
/* Selected function: a light bar and a notch pointing to the workspace below */
#researchbee-app.rb-ku .tabs-bar .tab-btn.active { box-shadow: inset 0 -5px 0 var(--ku-sky) !important; }
#researchbee-app.rb-ku .tabs-bar .tab-btn.active::after {
content: ""; position: absolute; inset-inline-start: 34px; bottom: -11px; width: 22px; height: 22px;
background: var(--ku-sky); transform: rotate(45deg); z-index: -1;
}
#researchbee-app.rb-ku .tabs-bar .tab-btn.active .rb-ku-tab-arrow { transform: rotate(90deg); }
#researchbee-app.rb-ku:not([data-rb-view="home"]) .tabs-bar .tab-btn:not(.active) .tab-label-sub { color: rgba(255,255,255,.7) !important; }
/* ---------- Workspace ---------- */
#researchbee-app.rb-ku .main-content { width: min(1170px, calc(100% - 40px)); max-width: none; margin: 0 auto; padding: 30px 0 40px !important; }
#researchbee-app.rb-ku #rb-home-view { padding: 0; color: var(--text-muted); font-size: 15px; }
#researchbee-app.rb-ku .ar-banner { border-radius: 0; }
#researchbee-app.rb-ku .rb-data-notice { padding: 12px 16px; border: 0; border-inline-start: 4px solid #C99A2E; border-radius: 0; background: #FDF8EC; color: #4A3B12; font-size: 13.5px; }
#researchbee-app.rb-ku .rb-data-notice summary { color: var(--ku-blue); }
/* Choice cards (journal options, sharing options) */
#researchbee-app.rb-ku .rb-journal-choices { padding: 0 0 8px; }
#researchbee-app.rb-ku .rb-journal-choices .mode-selector { gap: 20px; margin-top: 22px; }
#researchbee-app.rb-ku .rb-journal-choices :is(.mode-btn, .rb-choice-btn) {
gap: 16px; padding: 24px !important; border: 1px solid var(--ku-line) !important; border-top: 4px solid var(--ku-blue) !important;
border-radius: 0 !important; background: #fff !important; transition: border-color .15s ease, background-color .15s ease;
}
#researchbee-app.rb-ku .rb-journal-choices :is(.mode-btn, .rb-choice-btn):nth-child(2) { border-top-color: var(--ku-navy) !important; }
#researchbee-app.rb-ku .rb-journal-choices :is(.mode-btn, .rb-choice-btn):hover { background: #FAFBFD !important; border-color: #B9C3CF !important; border-top-color: var(--ku-blue) !important; }
#researchbee-app.rb-ku .rb-choice-number {
flex: 0 0 38px; width: 38px; height: 38px; border-radius: 0 !important; background: var(--ku-blue) !important; color: #fff !important; font: 700 18px/1 var(--ku-head);
}
#researchbee-app.rb-ku .rb-journal-choices .mode-title { color: var(--ku-navy) !important; font: 700 20px/1.3 var(--ku-head) !important; text-transform: uppercase; }
#researchbee-app.rb-ku .rb-journal-choices .mode-desc { margin-top: 8px; color: var(--text-muted); font: 400 15px/1.6 "Open Sans", Arial, sans-serif; }
#researchbee-app.rb-ku .rb-choice-action { margin-top: 16px; color: var(--ku-blue); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; }
#researchbee-app.rb-ku .rb-choice-action::after { content: "\00a0\203A"; }
/* Data repository overview */
#researchbee-app.rb-ku .rb-repo-step-summary { gap: 20px; }
#researchbee-app.rb-ku .rb-repo-step-summary li { border: 1px solid var(--ku-line); border-top: 4px solid var(--ku-purple); border-radius: 0; padding: 24px; }
#researchbee-app.rb-ku .rb-repo-step-summary .rb-choice-number { background: var(--ku-purple) !important; }
#researchbee-app.rb-ku .rb-repo-step-summary h3 { color: var(--ku-navy); font: 700 19px/1.3 var(--ku-head); text-transform: uppercase; }
#researchbee-app.rb-ku .rb-repo-step-summary p { color: var(--text-muted); font-size: 15px; }
#researchbee-app.rb-ku .rb-repo-step-label { color: var(--ku-purple); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
/* Back links */
#researchbee-app.rb-ku .rb-back-options {
min-height: 36px; padding: 6px 0; border: 0; background: transparent; color: var(--ku-blue);
font: 700 12.5px/1.3 "Open Sans", Arial, sans-serif; letter-spacing: .03em; text-transform: uppercase;
}
#researchbee-app.rb-ku .rb-back-options::before { content: "\2039\00a0"; font-size: 16px; }
#researchbee-app.rb-ku .rb-back-options:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
/* Form cards */
#researchbee-app.rb-ku .card { border: 1px solid var(--ku-line); border-top: 4px solid var(--ku-blue); border-radius: 0; background: #fff; box-shadow: none; overflow: visible; }
#researchbee-app.rb-ku #mode-manuscript .card { border-top-color: var(--ku-navy); }
#researchbee-app.rb-ku #license-form .card { border-top-color: var(--ku-navy); }
#researchbee-app.rb-ku #repo-form .card { border-top-color: var(--ku-purple); }
#researchbee-app.rb-ku .card-header { padding: 22px 26px 18px; border-bottom: 1px solid var(--ku-line); background: #fff; }
#researchbee-app.rb-ku .card-header h2,
#researchbee-app.rb-ku #repo-form .rb-step-header h2 { color: var(--ku-navy); font: 700 22px/1.3 var(--ku-head); letter-spacing: 0; }
#researchbee-app.rb-ku .card-header p { margin-top: 6px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
#researchbee-app.rb-ku .card-body { padding: 24px 26px 26px; }
#researchbee-app.rb-ku .form-group label { color: var(--ku-navy); font-size: 13.5px; font-weight: 700; }
#researchbee-app.rb-ku :is(.form-group input[type="text"], .form-group input[type="number"], .form-group textarea, .form-group select) {
border: 1px solid var(--border-strong); border-radius: 0; background: #fff; box-shadow: none; font-size: 15px;
transition: border-color .15s ease, box-shadow .15s ease;
}
#researchbee-app.rb-ku :is(.form-group input, .form-group textarea, .form-group select):focus { border-color: var(--ku-blue); box-shadow: inset 0 0 0 1px var(--ku-blue); outline: none; }
#researchbee-app.rb-ku .field-hint { color: var(--text-muted); font-size: 12.5px; }
#researchbee-app.rb-ku :is(.req) { color: #B3261E; }
#researchbee-app.rb-ku .recommended,
#researchbee-app.rb-ku .rb-planning-only { border-radius: 0; }
#researchbee-app.rb-ku .section-sep { border-top: 1px solid var(--ku-line); }
#researchbee-app.rb-ku .section-label { color: var(--ku-title); font: 700 13px/1.4 "Open Sans", Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
#researchbee-app.rb-ku .rb-advanced { margin-top: 18px; border: 1px solid var(--ku-line); border-radius: 0; background: #fff; }
#researchbee-app.rb-ku .rb-advanced > summary { padding: 12px 16px; background: var(--ku-soft); color: var(--ku-blue); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
#researchbee-app.rb-ku .rb-advanced[open] > summary { border-bottom: 1px solid var(--ku-line); background: var(--ku-soft); }
#researchbee-app.rb-ku .btn { border-radius: 0; box-shadow: none; transform: none; }
#researchbee-app.rb-ku .btn-primary {
width: auto; min-width: 220px; min-height: 48px; padding: 0 26px; border: 0; background: var(--ku-blue); color: #fff;
font: 700 13.5px/1.2 "Open Sans", Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase;
}
#researchbee-app.rb-ku .btn-primary:hover:not(:disabled) { background: var(--ku-blue-dark); transform: none; box-shadow: none; }
#researchbee-app.rb-ku .btn-ghost { border-radius: 0; }
/* Results: keep the existing renderer, align its frame with KU */
#researchbee-app.rb-ku #journal-cards-wrap > .rb-discovery-card { border-radius: 0; box-shadow: none; --rb-journal-surface: #fff; --rb-journal-head: #F4F7FC; --rb-journal-line: #DDE2E8; --rb-journal-accent: var(--ku-blue); }
#researchbee-app.rb-ku #journal-cards-wrap > .rb-discovery-card:nth-child(even) { --rb-journal-surface: #fff; --rb-journal-head: #F6F4FA; --rb-journal-line: #E2DDEB; --rb-journal-accent: var(--ku-purple); }
#researchbee-app.rb-ku #journal-cards-wrap .rb-discovery-card .j-title { color: var(--ku-navy); font-family: var(--ku-head); }
/* Inline indigo set by the script */
#researchbee-app.rb-ku [style*="background:#e0e7ff"] { background: var(--ku-tint) !important; color: var(--ku-blue-dark) !important; border-radius: 0 !important; }
#researchbee-app.rb-ku [style*="color:#4338CA"] { color: var(--ku-blue) !important; }
#researchbee-app.rb-ku [style*="Georgia"] { font-family: var(--ku-head) !important; color: var(--ku-navy); text-transform: uppercase; font-size: 20px !important; }
#researchbee-app.rb-ku .results-title { color: var(--ku-title); font: 700 24px/1.2 var(--ku-head); text-transform: uppercase; }
/* ---------- Footer ---------- */
#researchbee-app.rb-ku .site-footer { margin-top: 24px; padding: 28px 0 32px; border-top: 4px solid var(--ku-navy); background: var(--ku-soft); }
#researchbee-app.rb-ku .footer-inner { width: min(1170px, calc(100% - 40px)); max-width: none; margin: 0 auto; color: var(--text-muted); font-size: 12.5px; line-height: 1.65; }
#researchbee-app.rb-ku .footer-inner a { color: var(--ku-blue); font-weight: 600; }
#researchbee-app.rb-ku .rb-version-badge { border-radius: 0; }
#researchbee-app.rb-ku .footer-sources { max-width: none; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--ku-line); color: var(--text-muted); font-size: 12px; text-align: start; }
/* ---------- Chat ---------- */
#researchbee-app.rb-ku #rb-chat-launcher { border-radius: 0; background: var(--ku-navy); box-shadow: 0 6px 18px rgba(0,27,72,.28); padding: 8px 16px 8px 8px; }
#researchbee-app.rb-ku #rb-chat-launcher:hover { background: var(--ku-blue); transform: none; box-shadow: 0 6px 18px rgba(0,27,72,.28); }
#researchbee-app.rb-ku .rb-launcher-label-main { font: 700 13px/1.3 "Open Sans", Arial, sans-serif; letter-spacing: .03em; text-transform: uppercase; }
#researchbee-app.rb-ku :is(.rb-launcher-icon, .rb-mobile-bar-icon) { border-radius: 0 !important; }
#researchbee-app.rb-ku #rb-chat-tooltip { border-radius: 0; background: var(--ku-navy); }
#researchbee-app.rb-ku #rb-chat-panel { border-radius: 0; border-top: 4px solid var(--ku-blue); }
#researchbee-app.rb-ku .rb-chat-header { background: var(--ku-navy); }
#researchbee-app.rb-ku .rb-chat-header img { border-radius: 0; }
#researchbee-app.rb-ku .rb-chat-header-name { font-family: var(--ku-head); }
#researchbee-app.rb-ku .rb-msg.user .rb-bubble { background: var(--ku-blue); border-radius: 0; }
#researchbee-app.rb-ku .rb-msg.assistant .rb-bubble { border-radius: 0; border-inline-start: 3px solid var(--ku-blue); }
#researchbee-app.rb-ku #rb-chat-send { border-radius: 0; background: var(--ku-blue); }
#researchbee-app.rb-ku #rb-chat-input { border-radius: 0; }
#researchbee-app.rb-ku #rb-mobile-chat-bar { background: var(--ku-navy); }
/* Intro dialog (opened from code only) */
#researchbee-app.rb-ku .rb-service-intro { border-radius: 0; border-top: 4px solid var(--ku-blue); }
/* LibGuides / Bootstrap hardening */
#researchbee-app.rb-ku h1, #researchbee-app.rb-ku h2, #researchbee-app.rb-ku h3 { margin-top: 0; }
#researchbee-app.rb-ku a.rb-purpose-link, #researchbee-app.rb-ku .rb-ku-nav a, #researchbee-app.rb-ku .rb-feedback-link { text-decoration: none !important; }
/* ---------- Responsive ---------- */
@media (max-width: 980px) {
#researchbee-app.rb-ku .rb-ku-brand-sub { display: none; }
#researchbee-app.rb-ku .tabs-bar .tab-btn { min-height: 210px; }
}
@media (max-width: 760px) {
#researchbee-app.rb-ku :is(.rb-ku-shell, .rb-purpose-inner, .rb-purpose-search-inner, .rb-workflow-header, .tabs-bar .tabs-inner, .main-content, .footer-inner) { width: calc(100% - 24px); }
#researchbee-app.rb-ku .main-content { padding-left: 0 !important; padding-right: 0 !important; }
#researchbee-app.rb-ku .rb-ku-header-inner { flex-wrap: wrap; gap: 10px 12px; min-height: 0; }
#researchbee-app.rb-ku .rb-ku-logo { padding-inline-end: 12px; }
#researchbee-app.rb-ku .rb-ku-logo img { height: 32px !important; }
#researchbee-app.rb-ku .rb-ku-brand-name { font-size: 21px; }
#researchbee-app.rb-ku .rb-libguide-toolbar { flex: 1 1 100%; margin: 0; }
#researchbee-app.rb-ku .rb-libguide-toolbar .model-bar-inner { justify-content: flex-start; }
#researchbee-app.rb-ku .rb-feedback-link { margin-inline-start: auto; }
#researchbee-app.rb-ku .rb-ku-nav a { min-height: 42px; padding: 0 13px; font-size: 12.5px; }
#researchbee-app.rb-ku .rb-purpose-inner { gap: 16px; padding: 28px 0 30px; }
#researchbee-app.rb-ku .rb-purpose h1 { font-size: 28px; margin-bottom: 14px; padding-bottom: 12px; }
#researchbee-app.rb-ku .rb-purpose-tagline { font-size: 15.5px; }
#researchbee-app.rb-ku .rb-purpose-mascot { margin-inline-end: 10px; padding: 8px; }
#researchbee-app.rb-ku .rb-purpose-mascot::before { inset: 8px -8px -8px 8px; }
#researchbee-app.rb-ku .rb-purpose-image { width: 84px; height: 84px; }
#researchbee-app.rb-ku .rb-purpose-search-inner { flex-direction: column; align-items: stretch; }
#researchbee-app.rb-ku .rb-purpose-links { width: 100%; }
#researchbee-app.rb-ku .rb-purpose-link { flex: 1; }
#researchbee-app.rb-ku .rb-workflow-header { padding-top: 34px; flex-wrap: wrap; }
#researchbee-app.rb-ku .tabs-bar .tabs-inner { grid-template-columns: 1fr; gap: 4px !important; }
#researchbee-app.rb-ku .tabs-bar .tab-btn { flex-direction: row !important; align-items: flex-start !important; min-height: 0; padding: 18px 48px 18px 16px !important; gap: 14px !important; }
#researchbee-app.rb-ku[dir="rtl"] .tabs-bar .tab-btn { padding: 18px 16px 18px 48px !important; }
#researchbee-app.rb-ku .tabs-bar .tab-label-main { font-size: 15px !important; }
#researchbee-app.rb-ku .tabs-bar .tab-label-sub { font-size: 13.5px !important; }
#researchbee-app.rb-ku .rb-function-number { width: 32px; height: 32px; font-size: 16px; }
#researchbee-app.rb-ku .rb-ku-tab-arrow { top: 50%; bottom: auto; inset-inline-end: 16px; margin-top: -10px; }
#researchbee-app.rb-ku .tabs-bar .tab-btn.active::after { inset-inline-start: 24px; }
#researchbee-app.rb-ku .card-header { padding: 18px 16px 14px; }
#researchbee-app.rb-ku .card-body { padding: 18px 16px 20px; }
#researchbee-app.rb-ku .btn-primary { width: 100%; min-width: 0; }
}
@media (max-width: 420px) {
#researchbee-app.rb-ku .rb-libguide-toolbar .model-label { display: none; }
#researchbee-app.rb-ku .rb-purpose-kicker { font-size: 11px; letter-spacing: .1em; }
#researchbee-app.rb-ku .rb-purpose h1 { font-size: 25px; }
#researchbee-app.rb-ku .rb-purpose-image { width: 64px; height: 64px; }
}
</style>
<div id="researchbee-app" class="rb-ku" data-researchbee-version="libguides-1.9.3-links-ku" lang="en" dir="ltr">
<div id="rb-service-intro-backdrop" aria-hidden="true">
<section class="rb-service-intro" id="rb-service-intro" role="dialog" aria-modal="true" aria-labelledby="rb-service-intro-title" tabindex="-1">
<button id="rb-service-intro-close" type="button" aria-label="Close ResearchBee introduction">×</button>
<div class="rb-service-intro-head">
<div class="rb-service-intro-kicker"><span aria-hidden="true">🐝</span> KU Library research support</div>
<h2 id="rb-service-intro-title">Welcome to ResearchBee</h2>
<p>Your guide to journal selection, open-access sharing, publishing decisions, and research-data repositories.</p>
</div>
<div class="rb-service-intro-body">
<div class="rb-service-list" aria-label="ResearchBee services">
<div class="rb-service-item"><span class="rb-service-item-icon" aria-hidden="true">📰</span><div><strong>Find and compare journals</strong><span>Match your topic or manuscript, then interpret scope, indexing, rankings, and open-access options.</span></div></div>
<div class="rb-service-item"><span class="rb-service-item-icon" aria-hidden="true">🛡</span><div><strong>Check article-sharing rights</strong><span>Review permitted versions, embargoes, licences, and deposit options, including Khazna.</span></div></div>
<div class="rb-service-item"><span class="rb-service-item-icon" aria-hidden="true">🗃</span><div><strong>Choose a data repository</strong><span>Identify trusted disciplinary, generalist, or institutional repositories for your dataset.</span></div></div>
<div class="rb-service-item"><span class="rb-service-item-icon" aria-hidden="true">💬</span><div><strong>Chat with ResearchBee</strong><span>Ask about KU OA and APC support, journal metrics, publishing tips, FAIR data, RDM, and more.</span></div></div>
</div>
<div class="rb-service-intro-actions">
<button class="rb-service-intro-action" id="rb-service-intro-explore" type="button">Explore the tools</button>
<button class="rb-service-intro-action" id="rb-service-intro-chat" type="button">Chat with ResearchBee</button>
</div>
<p class="rb-service-intro-hint">Click anywhere to close this introduction.</p>
</div>
</section>
</div>
<header class="rb-ku-header">
<div class="rb-ku-shell rb-ku-header-inner">
<a class="rb-ku-logo" href="https://library.ku.ac.ae/" target="_blank" rel="noopener noreferrer"><img src="https://d2jv02qf7xgjwx.cloudfront.net/customers/4595/images/cropped-logo.png" alt="Khalifa University" width="307" height="66" /></a>
<div class="rb-ku-brand"><span class="rb-ku-brand-name"><bdi>ResearchBee</bdi></span><span class="rb-ku-brand-sub">Khalifa University Library</span></div>
<div class="rb-libguide-toolbar" aria-label="ResearchBee language selector"><div class="model-bar-inner">
<span class="model-label">Language:</span>
<div class="model-toggle">
<button class="lang-btn active" data-lang="english" type="button">EN</button>
<button class="lang-btn" data-lang="arabic" type="button">AR</button>
</div>
<a class="rb-feedback-link" id="rb-feedback-link" href="https://kustar.libwizard.com/f/researchbee" target="_blank" rel="noopener noreferrer">
<svg class="rb-feedback-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M5 4h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-6 4V6a2 2 0 0 1 2-2Z"/><path d="M8 10h8M8 14h5"/></svg>
<span>Share feedback</span>
</a>
</div></div>
</div>
</header>
<nav class="rb-ku-nav" aria-label="KU Library links">
<div class="rb-ku-shell rb-ku-nav-inner">
<a href="https://library.ku.ac.ae/lib" target="_blank" rel="noopener noreferrer">KU Library</a>
<a href="https://khazna.ku.ac.ae" target="_blank" rel="noopener noreferrer">Khazna</a>
<a href="https://library.ku.ac.ae/khaznabot" target="_blank" rel="noopener noreferrer">Khazna AI Assistant</a>
<a href="https://library.ku.ac.ae/libbee" target="_blank" rel="noopener noreferrer"><bdi>LibBee</bdi></a>
<a href="https://openpolicyfinder.jisc.ac.uk" target="_blank" rel="noopener noreferrer">Open Policy Finder</a>
</div>
</nav>
<section class="rb-purpose" aria-labelledby="rb-purpose-title">
<div class="rb-purpose-inner">
<div class="rb-purpose-heading">
<p class="rb-purpose-kicker"><bdi>ResearchBee</bdi> · <span>Khalifa University Library</span></p>
<h1 id="rb-purpose-title">Your publication support assistant</h1>
<p class="rb-purpose-tagline">Helping you publish and share your research.</p>
</div>
<div class="rb-purpose-mascot">
<img class="rb-purpose-image" alt="ResearchBee" src="https://d2jv02qf7xgjwx.cloudfront.net/accounts/90850/images/reserachbee.png" width="144" height="144" loading="eager" decoding="async" />
</div>
</div>
<div class="rb-purpose-search">
<div class="rb-purpose-search-inner">
<div class="rb-purpose-search-copy">
<strong>Looking for articles to read?</strong>
<p>ResearchBee is not an article search tool. Use LibBee or Library Primo to find articles.</p>
</div>
<div class="rb-purpose-links">
<a class="rb-purpose-link" href="https://library.ku.ac.ae/libbee" target="_blank" rel="noopener noreferrer"><bdi>LibBee</bdi></a>
<a class="rb-purpose-link" href="https://khalifa.primo.exlibrisgroup.com/discovery/search?vid=971KUOSTAR_INST%3AKU&lang=en" target="_blank" rel="noopener noreferrer">Library Primo</a>
</div>
</div>
</div>
</section>
<div class="rb-workflow-header">
<h2 id="rb-functions-title" tabindex="-1">Choose a function</h2>
<button class="rb-clear-all" id="rb-clear-all" type="button">Clear all & return home</button>
</div>
<div class="tabs-bar">
<div class="tabs-inner">
<button class="tab-btn" data-tab="journals" type="button">
<span class="rb-function-number">1</span>
<span class="tab-label-wrap">
<span class="tab-label-main">Find suitable journals for your article</span>
<span class="tab-label-sub">Identify and compare journals that match your research.</span>
</span>
<svg class="rb-ku-tab-arrow" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M5 12h14M13 6l6 6-6 6"/></svg>
</button>
<button class="tab-btn" data-tab="license" type="button">
<span class="rb-function-number">2</span>
<span class="tab-label-wrap">
<span class="tab-label-main">Check whether you can share your article</span>
<span class="tab-label-sub">Review publisher policies, article versions, licences, and waiting periods before repository deposit.</span>
</span>
<svg class="rb-ku-tab-arrow" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M5 12h14M13 6l6 6-6 6"/></svg>
</button>
<button class="tab-btn" data-tab="data" type="button">
<span class="rb-function-number">3</span>
<span class="tab-label-wrap">
<span class="tab-label-main">Find a research data repository</span>
<span class="tab-label-sub">Explore suitable repositories for storing and sharing your research data.</span>
</span>
<svg class="rb-ku-tab-arrow" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M5 12h14M13 6l6 6-6 6"/></svg>
</button>
</div>
</div>
<main class="main-content">
<div id="rb-home-view"><p>Select a function above to get started.</p></div>
<aside class="rb-data-notice" id="rb-data-notice" hidden>
<p><strong>Before you submit:</strong> <span>AI assistance uses external services. Do not enter confidential manuscripts or identifiable personal or health data.</span></p>
<details><summary>How your information is used</summary>
<p>Your manuscript, dataset description and chat messages may be sent to OpenAI to provide AI assistance. OpenAlex receives subject keywords to identify suitable journals using related article evidence. Policy checks send journal identifiers or the DOI to the relevant services. Describe sensitive datasets without sharing their contents. Contact KU Library for help with confidential research.</p>
</details>
</aside>
<!-- Tab 1 -->
<div class="tab-panel" id="tab-journals" hidden>
<section class="rb-journal-choices" id="rb-journal-choices" aria-labelledby="rb-journal-choice-title">
<h2 id="rb-journal-choice-title" tabindex="-1">Choose one of two options</h2>
<p class="rb-choice-intro">Start with your research subject or use your manuscript.</p>
<div class="mode-selector">
<button class="mode-btn" data-mode="subject" onclick="window.ResearchBee.switchMode('subject', true)" type="button">
<span class="rb-choice-number">1</span>
<span class="mode-text"><span class="mode-title">Browse by subject</span>
<span class="mode-desc">Enter your research subject to explore and compare suitable journals.</span>
<span class="rb-choice-action">Browse journals by subject</span></span>
</button>
<button class="mode-btn" data-mode="manuscript" onclick="window.ResearchBee.switchMode('manuscript', true)" type="button">
<span class="rb-choice-number">2</span>
<span class="mode-text"><span class="mode-title">Analyse your manuscript</span>
<span class="mode-desc">Enter your title and abstract to find journals that match your manuscript.</span>
<span class="rb-choice-action">Find journals for my manuscript</span></span>
</button>
</div>
</section>
<div class="rb-mode-back" id="rb-mode-back" hidden><button class="rb-back-options" id="rb-back-options" type="button">Back to journal options</button></div>
<div id="mode-subject" hidden>
<form id="subject-form">
<div class="card">
<div class="card-header">
<h2>๐ Browse verified journals by subject</h2>
<p>ResearchBee maps your subject to the closed ASJC/SCImago vocabulary, then recommends only active journal records from the local Scopus/SCImago index. Open Policy Finder checks are available on demand.</p>
</div>
<div class="card-body">
<div class="form-group" style="max-width:620px">
<label for="s-subject" id="lbl-subject">Subject / discipline <span class="req">*</span></label>
<input autocomplete="off" id="s-subject" placeholder="e.g. Artificial Intelligence, Mechanical Engineering, Chemistry" required="" type="text" maxlength="200"/>
<div class="field-hint">Try a specific field such as Computer Science Applications, Library and Information Sciences, Renewable Energy, or Biomedical Engineering.</div>
</div>
<details class="rb-advanced" id="subject-advanced">
<summary>Advanced journal preferences</summary>
<div class="rb-advanced-body form-grid form-2col">
<div class="form-group"><label for="s-ranking-pref">Quartile filter</label><select id="s-ranking-pref"><option>No filter</option><option>Q1</option><option>Q2</option><option>Q1 or Q2</option></select></div>
<div class="form-group"><label for="s-access-pref">Journal access model</label><select id="s-access-pref"><option>Any journal</option><option>Open-access journals</option><option>Diamond / no APC</option></select></div>
<div class="form-group form-full rb-check-field"><label><input id="s-sharing-required" type="checkbox"/> Accepted manuscript must be depositable in a repository</label><div class="field-hint">ResearchBee will check the strongest candidates through Jisc Open Policy Finder. Unknown is not treated as permission or prohibition.</div></div>
<div class="form-group"><label for="s-repo-target">Intended repository</label><select id="s-repo-target"><option>Institutional repository</option><option>Subject repository</option><option>Both institutional & subject</option><option>Not sure</option></select></div>
<div class="form-group"><label for="s-apc">APC budget <span class="rb-planning-only">planning only</span></label><input id="s-apc" placeholder="e.g. no APC or up to USD 2,000" type="text" maxlength="300"/><div class="field-hint">Current title-level fees are not inferred or used as an exclusion unless verified.</div></div>
<div class="form-group"><label for="s-funder">Funder</label><input id="s-funder" placeholder="e.g. ERC, NIH, Wellcome" type="text" maxlength="300"/></div>
<div class="form-group"><label for="s-preferred">Preferred journals</label><textarea id="s-preferred" rows="2" maxlength="500" placeholder="One journal title per line; commas within titles are preserved"></textarea></div>
<div class="form-group form-full"><label for="s-avoid">Journals to exclude</label><textarea id="s-avoid" rows="2" maxlength="500" placeholder="One journal title per line; commas within titles are preserved"></textarea></div>
</div>
</details>
<button class="btn btn-primary" style="max-width:340px;margin-top:16px" type="submit"><span id="btn-subject-submit">Find verified journals</span></button>
</div>
</div>
</form>
<div class="progress-box" id="subject-progress"></div>
<div class="hidden" id="subject-results"></div>
</div>
<div id="mode-manuscript" hidden style="display:none">
<form id="journal-form">
<div class="card">
<div class="card-header">
<h2>๐ฐ Match a manuscript to verified journals</h2>
<p>ResearchBee first classifies the manuscript, then retrieves active journal candidates from the verified index. The AI may explain and rerank those records, but it cannot invent journal identities, ISSNs or metrics.</p>
</div>
<div class="card-body">
<div class="form-grid form-2col">
<div class="form-group form-full"><label for="j-title" id="lbl-title">Title <span class="req">*</span></label><input id="j-title" placeholder="Full manuscript title" required="" type="text" maxlength="300"/></div>
<div class="form-group form-full"><label for="j-abstract" id="lbl-abstract">Abstract <span class="req">*</span></label><textarea id="j-abstract" placeholder="Paste your full abstract here..." required="" rows="7" maxlength="5000"></textarea></div>
<div class="form-group"><label for="j-article-type" id="lbl-article-type">Article type</label><select id="j-article-type"><option>Original research article</option><option>Review article</option><option>Systematic review / meta-analysis</option><option>Short communication</option><option>Case study</option><option>Methods paper</option><option>Perspective / commentary</option><option>Letter</option><option>Conference paper</option></select></div>
</div>
<details class="rb-advanced" id="manuscript-advanced">
<summary>Advanced journal preferences and manuscript context</summary>
<div class="rb-advanced-body form-grid form-2col">
<div class="form-group"><label for="j-keywords" id="lbl-keywords">Keywords</label><input id="j-keywords" placeholder="Comma-separated" type="text" maxlength="500"/></div>
<div class="form-group"><label for="j-discipline" id="lbl-discipline">Discipline / sub-discipline</label><input id="j-discipline" placeholder="e.g. Library and Information Sciences" type="text" maxlength="300"/></div>
<div class="form-group"><label for="j-methods" id="lbl-methods">Methods</label><input id="j-methods" placeholder="e.g. survey, experiment, case study, RAG pipeline" type="text" maxlength="500"/></div>
<div class="form-group"><label for="j-audience" id="lbl-audience">Target audience</label><input id="j-audience" placeholder="e.g. library practitioners, AI researchers" type="text" maxlength="300"/></div>
<div class="form-group"><label for="j-ranking-pref" id="lbl-ranking-pref">Quartile filter</label><select id="j-ranking-pref"><option>No filter</option><option>Q1</option><option>Q2</option><option>Q1 or Q2</option></select></div>
<div class="form-group"><label for="j-access-pref">Journal access model</label><select id="j-access-pref"><option>Any journal</option><option>Open-access journals</option><option>Diamond / no APC</option></select></div>
<div class="form-group form-full rb-check-field"><label><input id="j-sharing-required" type="checkbox"/> Accepted manuscript must be depositable in a repository</label><div class="field-hint">The strongest candidates will be checked through Jisc Open Policy Finder before the shortlist is displayed.</div></div>
<div class="form-group"><label for="j-repo-target" id="lbl-repo-target">Intended repository</label><select id="j-repo-target"><option>Institutional repository</option><option>Subject repository</option><option>Both institutional & subject</option><option>Not sure</option></select></div>
<div class="form-group"><label for="j-apc" id="lbl-apc">APC budget <span class="rb-planning-only">planning only</span></label><input id="j-apc" placeholder="e.g. no APC or up to USD 2,000" type="text" maxlength="300"/><div class="field-hint">Current APCs are not estimated. Unknown fees remain clearly labelled.</div></div>
<div class="form-group"><label for="j-funder" id="lbl-funder">Funder</label><input id="j-funder" placeholder="e.g. ERC, NIH, Wellcome, cOAlition S" type="text" maxlength="300"/></div>
<div class="form-group"><label for="j-institution" id="lbl-institution">Institution</label><input id="j-institution" placeholder="e.g. Khalifa University" type="text" maxlength="300"/></div>
<div class="form-group"><label for="j-country" id="lbl-country">Country / region</label><input id="j-country" placeholder="e.g. UAE" type="text" maxlength="300"/></div>
<div class="form-group form-full"><label for="j-preferred" id="lbl-preferred">Preferred journals</label><textarea id="j-preferred" rows="2" maxlength="500" placeholder="One journal title per line; commas within titles are preserved"></textarea></div>
<div class="form-group form-full"><label for="j-avoid" id="lbl-avoid">Journals to exclude</label><textarea id="j-avoid" rows="2" maxlength="500" placeholder="One journal title per line; commas within titles are preserved"></textarea></div>
</div>
</details>
<button class="btn btn-primary" style="margin-top:16px" type="submit"><span id="btn-journal-submit">Find best-fit verified journals</span></button>
</div>
</div>
</form>
<div class="progress-box" id="journal-progress"></div>
<div class="hidden" id="journal-results"></div>
</div>
</div>
<!-- Tab 2 -->
<div class="tab-panel" id="tab-license" hidden>
<section class="rb-journal-choices" id="rb-share-choices" aria-labelledby="rb-share-choice-title">
<h2 id="rb-share-choice-title" tabindex="-1">How would you like to check sharing permissions?</h2>
<p class="rb-choice-intro">Check a specific article or explore a journal's sharing policy.</p>
<div class="mode-selector">
<button class="rb-choice-btn rb-share-choice" data-share-mode="article" type="button">
<span class="rb-choice-number">1</span><span class="mode-text">
<span class="mode-title">Check a specific article</span>
<span class="mode-desc">Use a DOI or article URL to check sharing permissions and whether your article is in Khazna.</span>
<span class="rb-choice-action">Check my article</span></span></button>
<button class="rb-choice-btn rb-share-choice" data-share-mode="journal" type="button">
<span class="rb-choice-number">2</span><span class="mode-text">
<span class="mode-title">Check a journal's sharing policy</span>
<span class="mode-desc">Use a journal name or ISSN to explore publisher policies on sharing article versions.</span>
<span class="rb-choice-action">Check a journal policy</span></span></button>
</div></section>
<div id="rb-share-work" hidden>
<div class="rb-mode-back"><button class="rb-back-options" id="rb-share-back" type="button">Back to sharing options</button></div>
<form id="license-form">
<div class="card">
<div class="card-header">
<h2 id="rb-share-form-title" tabindex="-1">Check article-sharing permissions</h2>
<p>Review which version you may share, where you may deposit it, and any conditions that apply.</p>
</div>
<div class="card-body">
<div class="form-grid form-2col">
<div class="form-group form-full doi-primary">
<label for="l-doi" id="lbl-l-doi">Article DOI or URL <span class="recommended">recommended โ gives a verified answer</span></label>
<input id="l-doi" placeholder="e.g. 10.1080/19322909.2023.2221477 or https://doi.org/..." type="text" maxlength="400"/>
<div class="field-hint">Paste the DOI or the article page URL. We'll extract the DOI automatically and check your exact article โ including whether it is already in the KU repository, Khazna.</div>
</div>
</div>
<div id="rb-share-journal-fields" class="form-grid form-2col" hidden>
<div class="form-group"><label for="l-journal" id="lbl-l-journal">Journal name</label><input id="l-journal" placeholder="e.g. Nature Communications" type="text" maxlength="300"/></div>
<div class="form-group"><label for="l-issn" id="lbl-l-issn">ISSN (optional โ improves accuracy)</label><input id="l-issn" placeholder="e.g. 2041-1723" type="text" maxlength="20"/></div>
<div class="form-group"><label for="l-publisher" id="lbl-l-publisher">Publisher (optional)</label><input id="l-publisher" placeholder="e.g. Springer Nature" type="text" maxlength="300"/></div>
<div class="form-group form-full"><div class="field-hint">Journal-level results come directly from the Jisc Open Policy Finder API and may contain several conditional options. They do not replace an article-level DOI check.</div></div>
</div>
<details class="rb-advanced" id="rb-sharing-preferences">
<summary>Article version, deposit location and other preferences</summary>
<div class="rb-advanced-body form-grid form-2col">
<div class="form-group"><label for="l-version" id="lbl-l-version">Manuscript version of interest</label><select id="l-version"><option>All versions</option><option>Submitted version / preprint</option><option>Accepted manuscript (AAM / postprint)</option><option>Published version (VoR)</option></select></div>
<div class="form-group"><label for="l-funder" id="lbl-l-funder">Funder (affects rights retention)</label><input id="l-funder" placeholder="e.g. cOAlition S, ERC, NIH, Wellcome" type="text" maxlength="300"/></div>
<div class="form-group"><label for="l-repo" id="lbl-l-repo">Intended deposit location</label><select id="l-repo"><option>Institutional repository</option><option>Subject repository (e.g. arXiv, PMC, SSRN)</option><option>Personal website</option><option>ResearchGate / Academia.edu</option><option>Preprint server</option><option>Both institutional & subject</option></select></div>
<div class="form-group"><label for="l-licence" id="lbl-l-licence">Intended licence</label><select id="l-licence"><option>CC BY</option><option>CC BY-NC</option><option>CC BY-NC-ND</option><option>CC BY-SA</option><option>CC0</option><option>Publisher's bespoke licence</option><option>Not sure</option></select></div>
<div class="form-group form-full"><label for="l-notes" id="lbl-l-notes">Additional context (optional)</label><textarea id="l-notes" placeholder="Already accepted? Already published? Embargo concerns? Funder mandate deadlines?" rows="3" maxlength="500"></textarea></div>
</div>
</details>
<button class="btn btn-primary" style="margin-top:16px" type="submit"><span id="btn-license-submit">Check Green OA policy</span></button>
</div>
</div>
</form>
<div class="progress-box" id="license-progress"></div>
<div class="hidden" id="license-results"></div>
</div>
</div><!-- End sharing workspace -->
<!-- Tab 3 -->
<div class="tab-panel" id="tab-data">
<section id="rb-repo-intro" class="rb-task-choices" aria-labelledby="rb-repo-intro-title">
<h2 id="rb-repo-intro-title">Find a home for your research data</h2>
<p class="rb-choice-intro">Find a suitable repository in two simple steps.</p>
<ol class="rb-repo-step-summary">
<li><span class="rb-choice-number" aria-hidden="true">1</span><div><h3>Describe your dataset</h3><p>Tell us about your data, research field, file formats and approximate size.</p></div></li>
<li><span class="rb-choice-number" aria-hidden="true">2</span><div><h3>Set your sharing requirements</h3><p>Choose access, licence and deposit requirements to find suitable repositories.</p></div></li>
</ol>
<button id="rb-repo-start" class="btn btn-primary" type="button">Start: describe your dataset</button>
</section>
<div class="rb-mode-back" id="rb-repo-back-wrap" hidden><button class="rb-back-options" id="rb-repo-back-options" type="button">Back to data repository overview</button></div>
<form id="repo-form" hidden novalidate>
<div class="card">
<div class="card-header rb-step-header">
<p class="rb-repo-step-label" id="rb-repo-step-label">Step 1 of 2</p>
<h2 id="rb-repo-step-title">Describe your dataset</h2>
<p id="rb-repo-step-description">Enter the basic details so ResearchBee can identify suitable repositories.</p>
</div>
<div class="card-body">
<section id="rb-repo-stage-1" aria-labelledby="rb-repo-step-title">
<div class="form-grid form-2col">
<div class="form-group form-full"><label for="r-title" id="lbl-r-title">Dataset title <span class="req">*</span></label><input id="r-title" placeholder="Descriptive title for your dataset" required="" type="text" maxlength="300"/></div>
<div class="form-group form-full"><label for="r-desc" id="lbl-r-desc">Description <span class="req">*</span></label><textarea id="r-desc" placeholder="What does the dataset contain, how was it collected, and what is its intended reuse?" required="" rows="4" maxlength="2000"></textarea></div>
<div class="form-group"><label for="r-discipline" id="lbl-r-discipline">Discipline / domain <span class="req">*</span></label><input id="r-discipline" placeholder="e.g. genomics, climate science, engineering" required="" type="text" maxlength="300"/></div>
<div class="form-group"><label for="r-datatypes" id="lbl-r-datatypes">Data types <span class="req">*</span></label><input id="r-datatypes" placeholder="e.g. tabular, images, sequencing reads, time series" required="" type="text" maxlength="300"/></div>
<div class="form-group"><label for="r-formats" id="lbl-r-formats">File formats</label><input id="r-formats" placeholder="e.g. CSV, FASTQ, NetCDF, TIFF, HDF5" type="text" maxlength="300"/></div>
<div class="form-group"><label for="r-size" id="lbl-r-size">Approximate total size</label><input id="r-size" placeholder="e.g. 250 MB / 5 GB / 2 TB" type="text" maxlength="300"/></div>
</div>
<div class="rb-repo-step-actions"><button id="rb-repo-next" class="btn btn-primary" type="button">Next: sharing requirements</button></div>
</section>
<section id="rb-repo-stage-2" aria-labelledby="rb-repo-step-title" hidden>
<div class="section-sep">
<div class="section-label">Sensitivity & access</div>
<div class="form-grid form-2col">
<div class="form-group"><label for="r-sensitivity" id="lbl-r-sensitivity">Sensitivity classification</label><select id="r-sensitivity"><option>Open</option><option>Restricted</option><option>Sensitive</option><option>Mixed</option></select></div>
<div class="form-group"><label for="r-personal" id="lbl-r-personal">Contains personal / health data?</label><select id="r-personal"><option>No</option><option>Yes โ anonymised</option><option>Yes โ pseudonymised</option><option>Yes โ identifiable</option><option>Unsure</option></select></div>
<div class="form-group"><label for="r-licence" id="lbl-r-licence">Intended licence</label><select id="r-licence"><option>CC BY</option><option>CC0</option><option>CC BY-NC</option><option>CC BY-SA</option><option>CC BY-NC-SA</option><option>Restricted / custom</option><option>Not sure</option></select></div>
<div class="form-group"><label for="r-embargo" id="lbl-r-embargo">Embargo required?</label><select id="r-embargo"><option>No</option><option value="Yes">Yes</option><option>Unsure</option></select></div>
<div class="form-group"><label for="r-embargo-months">Embargo duration (months, optional)</label><input id="r-embargo-months" type="number" min="1" max="120" step="1" placeholder="e.g. 6 or 12" disabled=""/><div class="field-hint">Enter a duration only when an embargo is required.</div></div>
<div class="form-group"><label for="r-doi" id="lbl-r-doi">Persistent identifier (DOI) required?</label><select id="r-doi"><option>Yes</option><option>No</option><option>Unsure</option></select></div>
<div class="form-group"><label for="r-versioning" id="lbl-r-versioning">Versioning required?</label><select id="r-versioning"><option>Yes</option><option>No</option><option>Unsure</option></select></div>
</div>
</div>
<div class="section-sep">
<div class="section-label">Context</div>
<div class="form-grid form-2col">
<div class="form-group"><label for="r-funder" id="lbl-r-funder">Funder</label><input id="r-funder" placeholder="e.g. Horizon Europe, NIH, ERC, ADEK" type="text" maxlength="300"/></div>
<div class="form-group"><label for="r-institution" id="lbl-r-institution">Institution</label><input id="r-institution" placeholder="e.g. Khalifa University" type="text" maxlength="300"/></div>
<div class="form-group"><label for="r-country" id="lbl-r-country">Country / region</label><input id="r-country" placeholder="e.g. UAE" type="text" maxlength="300"/></div>
<div class="form-group"><label for="r-preferred" id="lbl-r-preferred">Preferred / required repository (optional)</label><input id="r-preferred" placeholder="e.g. Zenodo, GenBank" type="text" maxlength="300"/></div>
<div class="form-group form-full"><label for="r-publication" id="lbl-r-publication">Linked publication / DOI (optional)</label><input id="r-publication" placeholder="Related article DOI or title" type="text" maxlength="300"/></div>
<div class="form-group form-full"><label for="r-notes" id="lbl-r-notes">Additional notes</label><textarea id="r-notes" placeholder="Any special requirements, funder mandates, or context..." rows="3" maxlength="500"></textarea></div>
</div>
</div>
<div class="rb-repo-step-actions"><button id="rb-repo-previous" class="rb-back-options" type="button">Back to dataset details</button>
<button class="btn btn-primary" style="margin-top:8px" type="submit"><span id="btn-repo-submit">Find best repositories</span></button>
</div>
</section>
</div>
</div>
</form>
<div class="progress-box" id="repo-progress"></div>
<div class="hidden" id="repo-results"></div>
</div>
</main>
<div class="site-footer rb-app-footer">
<div class="footer-inner">
<p>Ranking metrics sourced from journal data (2025). Always verify policies on <a href="https://openpolicyfinder.jisc.ac.uk" rel="noopener noreferrer" target="_blank">Open Policy Finder</a> and repositories on <a href="https://www.re3data.org" rel="noopener noreferrer" target="_blank">re3data</a> before deposit.</p>
<p><a href="https://library.ku.ac.ae/lib" rel="noopener noreferrer" target="_blank">KU Library</a> ยท <a href="https://khazna.ku.ac.ae" rel="noopener noreferrer" target="_blank">KU repository โ Khazna</a> ยท <a href="https://github.com/ku-library/researchbee" rel="noopener noreferrer" target="_blank">GitHub</a> <span class="rb-version-badge">Interface v1.9.3</span></p>
<p class="footer-sources">
<strong>Data sources.</strong>
Self-archiving permissions: <a href="https://shareyourpaper.org/permissions" rel="noopener noreferrer" target="_blank">Shareyourpaper.org Permissions</a> (OA.Works).
Journal metrics: SCImago, (n.d.). <a href="https://www.scimagojr.com" rel="noopener noreferrer" target="_blank">SJR โ SCImago Journal & Country Rank</a> [Portal], data used under non-commercial terms with attribution.
Journal and works metadata: <a href="https://openalex.org" rel="noopener noreferrer" target="_blank">OpenAlex</a>.
Journal-level self-archiving policies: <a href="https://openpolicyfinder.jisc.ac.uk" rel="noopener noreferrer" target="_blank">Jisc Open Policy Finder</a>, licensed CC BY-NC-ND 4.0.
Repository holdings: <a href="https://khazna.ku.ac.ae" rel="noopener noreferrer" target="_blank">Khazna</a> (OAI-PMH).
ResearchBee reports what these sources say; where a source cannot confirm a policy, it says so rather than estimating.
</p>
</div>
</div>
<button aria-label="Need help? Chat with ResearchBee" id="rb-mobile-chat-bar">
<img alt="ResearchBee" class="rb-mobile-bar-icon rb-chat-mascot-icon" data-rb-mascot="" src="https://d2jv02qf7xgjwx.cloudfront.net/accounts/90850/images/reserachbee.png" width="44" height="44" loading="lazy" decoding="async" />
<span class="rb-mobile-bar-text">
<span class="rb-mobile-bar-top">Need help?</span>
<span class="rb-mobile-bar-main">Chat with ResearchBee</span>
</span>
<span class="rb-mobile-bar-arrow">โบ</span>
</button>
<div id="rb-chat-tooltip">💬 Ask ResearchBee about publishing and RDM</div>
<button aria-label="Open ResearchBee chat โ Need help? Chat with ResearchBee" id="rb-chat-launcher">
<img alt="ResearchBee" class="rb-launcher-icon rb-chat-mascot-icon" data-rb-mascot="" src="https://d2jv02qf7xgjwx.cloudfront.net/accounts/90850/images/reserachbee.png" width="44" height="44" loading="lazy" decoding="async" />
<span class="rb-launcher-label">
<span class="rb-launcher-label-top">Need help?</span>
<span class="rb-launcher-label-main">Chat with ResearchBee</span>
</span>
<span id="rb-chat-badge"></span>
</button>
<div aria-hidden="true" aria-label="ResearchBee chat assistant" id="rb-chat-panel" role="dialog">
<div class="rb-chat-header">
<img alt="ResearchBee" data-rb-mascot="" src="https://d2jv02qf7xgjwx.cloudfront.net/accounts/90850/images/reserachbee.png" width="44" height="44" loading="lazy" decoding="async" />
<div class="rb-chat-header-text">
<span class="rb-chat-header-name">ResearchBee</span>
<span class="rb-chat-header-sub">KU Library Publishing Assistant</span>
</div>
<div class="rb-chat-status" title="Chat availability is checked when you send a message" aria-hidden="true"></div>
<button aria-label="Close chat" class="rb-chat-close" id="rb-chat-close" type="button">ร</button>
</div>
<div class="rb-chat-disclaimer">
<span>Chat messages are sent to OpenAI. Do not share confidential or personal data.</span><br/>
โ ๏ธ Always verify OA policies on
<a href="https://openpolicyfinder.jisc.ac.uk" rel="noopener noreferrer" style="color:#92400E;font-weight:600;margin-left:3px" target="_blank">Open Policy Finder</a>
</div>
<div aria-live="polite" id="rb-chat-messages"></div>
<div class="rb-chat-input-wrap">
<textarea aria-label="Chat message" id="rb-chat-input" maxlength="2000" placeholder="Ask about KU OA policy, publishing rights, or Khaznaโฆ" rows="1"></textarea>
<button aria-label="Send message" disabled="" id="rb-chat-send" type="button">
<svg fill="none" height="16" viewbox="0 0 16 16" width="16"><path d="M14.5 8L2 2l2.5 6L2 14l12.5-6z" fill="white"></path></svg>
</button>
</div>
<div class="rb-chat-footer">ResearchBee ยท <a href="https://library.ku.ac.ae/lib" rel="noopener noreferrer" target="_blank">KU Library</a></div>
</div>
<noscript><div class="rb-libguide-noscript">ResearchBee requires JavaScript. Please enable JavaScript and reload this page.</div></noscript>
</div>
<script>
(function () {
"use strict";
const RB_ROOT = document.getElementById("researchbee-app");
if (!RB_ROOT || RB_ROOT.dataset.researchbeeInitialized === "true") return;
RB_ROOT.dataset.researchbeeInitialized = "true";
window.ResearchBee = window.ResearchBee || {};
// api.js - fetch wrapper for Research Navigator backend
// Set RB_API_BASE to your HuggingFace Space URL before deploying
const RB_API_BASE = "https://nikeshn-researchbee.hf.space";
const RB_REQUESTS = new Map();
// Include unkeyed enrichment/export calls in a full-session reset.
const RB_ACTIVE_REQUESTS = new Set();
let RB_SESSION_GENERATION = 0;
function rbCancelAllRequests() {
RB_SESSION_GENERATION += 1;
RB_ACTIVE_REQUESTS.forEach(request => {
request.superseded = true;
request.controller.abort();
});
RB_ACTIVE_REQUESTS.clear();
RB_REQUESTS.clear();
}
function rbApiError(body, status) {
const detail = body?.detail ?? body?.error ?? body?.message;
if (Array.isArray(detail)) {
return detail.map(item => {
const field = Array.isArray(item.loc) ? item.loc.filter(part => !["body", "manuscript", "dataset", "license_input"].includes(part)).join(" โ ") : "Input";
return `${field}: ${item.msg || "Please check this value."}`;
}).join("; ");
}
return typeof detail === "string" && detail ? detail : `Request failed (HTTP ${status}). Please try again.`;
}
function rbWaitText(english, arabic) { return getLanguage() === "arabic" ? arabic : english; }
function rbCancelRequest(key, userCancelled = false) {
const previous = RB_REQUESTS.get(key);
if (previous) { previous.cancelled = userCancelled; previous.superseded = !userCancelled; previous.controller.abort(); RB_REQUESTS.delete(key); }
}
function rbStaleRequest(error) { return Boolean(error?.stale); }
async function rbFetchJson(url, options = {}, settings = {}) {
const key = settings.requestKey || "";
if (key) rbCancelRequest(key);
const request = { controller: new AbortController(), superseded: false, timedOut: false, cancelled: false, session: RB_SESSION_GENERATION };
RB_ACTIVE_REQUESTS.add(request);
if (key) RB_REQUESTS.set(key, request);
const timer = setTimeout(() => { request.timedOut = true; request.controller.abort(); }, settings.timeoutMs || 120000);
try {
const response = await fetch(url, { ...options, signal: request.controller.signal });
let data;
try { data = await response.json(); }
catch (error) {
if (request.controller.signal.aborted) throw error;
if (response.ok) throw new Error("The service returned an unreadable response. Please try again.");
data = {};
}
if (request.controller.signal.aborted) throw Object.assign(new Error("Request cancelled."), { name: "AbortError" });
if (request.superseded || request.session !== RB_SESSION_GENERATION) throw Object.assign(new Error("A newer request replaced this search."), { stale: true });
if (!response.ok) throw new Error(rbApiError(data, response.status));
return data;
} catch (error) {
if (request.superseded || request.session !== RB_SESSION_GENERATION) throw Object.assign(new Error("A newer request replaced this search."), { stale: true });
if (request.cancelled) throw Object.assign(new Error(rbWaitText("Stopped waiting. Your entries are preserved. You can try again.", "ุชู
ุฅููุงู ุงูุงูุชุธุงุฑ. ุชู
ุงูุงุญุชูุงุธ ุจู
ุฏุฎูุงุชู ููู
ููู ุงูู
ุญุงููุฉ ู
ุฑุฉ ุฃุฎุฑู.")), { cancelled: true });
if (request.timedOut) throw new Error(rbWaitText("The request timed out. Please try again; the service may be starting up or busy. Your entries are preserved.", "ุงูุชูุช ู
ููุฉ ุงูุทูุจ. ูุฑุฌู ุงูู
ุญุงููุฉ ู
ุฑุฉ ุฃุฎุฑูุ ูุฏ ุชููู ุงูุฎุฏู
ุฉ ููุฏ ุงูุชุดุบูู ุฃู ู
ุดุบููุฉ. ุชู
ุงูุงุญุชูุงุธ ุจู
ุฏุฎูุงุชู."));
if (error instanceof TypeError) throw new Error(rbWaitText("Could not reach ResearchBee. Check your connection and try again. Your entries are preserved.", "ุชุนุฐุฑ ุงูุงุชุตุงู ุจู ResearchBee. ุชุญูู ู
ู ุงุชุตุงูู ุซู
ุญุงูู ู
ุฑุฉ ุฃุฎุฑู. ุชู
ุงูุงุญุชูุงุธ ุจู
ุฏุฎูุงุชู."));
throw error;
} finally {
clearTimeout(timer);
RB_ACTIVE_REQUESTS.delete(request);
if (key && RB_REQUESTS.get(key) === request) RB_REQUESTS.delete(key);
}
}
async function callAPI(endpoint, payload, settings = {}) {
return rbFetchJson(`${RB_API_BASE}${endpoint}`, {
method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(payload),
}, settings);
}
function rbRenderChatText(container, value, streaming = false) {
const fragment = document.createDocumentFragment();
const lines = String(value || "").split("\n");
lines.forEach((line, index) => {
if (index) fragment.appendChild(document.createElement("br"));
const matches = line.matchAll(/https?:\/\/[^\s<>"']+/g);
let offset = 0;
for (const match of matches) {
fragment.appendChild(document.createTextNode(line.slice(offset, match.index)));
const safe = safeHttpsUrl(match[0]);
if (safe) {
const link = document.createElement("a");
link.href = safe; link.target = "_blank"; link.rel = "noopener noreferrer";
link.textContent = match[0]; fragment.appendChild(link);
} else fragment.appendChild(document.createTextNode(match[0]));
offset = match.index + match[0].length;
}
fragment.appendChild(document.createTextNode(line.slice(offset)));
});
if (streaming) { const cursor = document.createElement("span"); cursor.className = "rb-cursor"; cursor.textContent = "โ"; cursor.setAttribute("aria-hidden", "true"); fragment.appendChild(cursor); }
container.replaceChildren(fragment);
}
function rbPrepareChatHistory(messages) {
return messages.slice(-20).map(message => ({ role: message.role, content: String(message.content || "").slice(0, message.role === "assistant" ? 12000 : 2000) }));
}
function rbOpenAlexId(value, prefix = "S") {
let candidate = String(value || "").trim();
if (/^https:\/\//i.test(candidate)) {
try { const url = new URL(candidate); if (url.hostname !== "openalex.org") return ""; candidate = url.pathname.split("/").filter(Boolean).pop() || ""; } catch (_) { return ""; }
}
const match = candidate.match(new RegExp(`^${prefix}?(\\d+)$`, "i"));
return match ? `${prefix}${match[1]}` : "";
}
function getModel() {
return RB_ROOT.querySelector(".model-btn.active")?.dataset.model || "gpt-4o-mini";
}
function getLanguage() {
return RB_ROOT.querySelector(".lang-btn.active")?.dataset.lang || "english";
}
// Release A: keep untrusted values in JavaScript memory rather than embedding
// them inside inline event-handler attributes.
const RB_COVER_LETTER_PAYLOADS = new Map();
const RB_RELATED_WORK_PAYLOADS = new Map();
const RB_SUBJECT_JOURNAL_PAYLOADS = new Map();
function rbDomKey(value, fallback = "item") {
const clean = String(value || "").replace(/[^a-zA-Z0-9_-]/g, "").slice(0, 40);
return clean || fallback;
}
function safeHttpsUrl(value, allowedHosts = []) {
try {
const text = String(value || "").trim();
if (!/^https:\/\//i.test(text)) return "";
const url = new URL(text);
if (url.protocol !== "https:" || url.username || url.password || (url.port && url.port !== "443")) return "";
if (!url.hostname.includes(".") || /^(localhost|127\.|10\.|192\.168\.|169\.254\.|0\.)/.test(url.hostname) || /^172\.(1[6-9]|2\d|3[01])\./.test(url.hostname) || url.hostname.includes(":") || /\.(local|internal|localhost)$/.test(url.hostname)) return "";
if (allowedHosts.length && !allowedHosts.some(host =>
url.hostname === host || url.hostname.endsWith(`.${host}`)
)) return "";
return url.href;
} catch (_) {
return "";
}
}
function makeExternalLink(url, label, allowedHosts = []) {
const safeUrl = safeHttpsUrl(url, allowedHosts);
if (!safeUrl) return null;
const link = document.createElement("a");
link.href = safeUrl;
link.target = "_blank";
link.rel = "noopener noreferrer";
link.className = "vlink";
link.style.fontSize = "11px";
link.textContent = label;
return link;
}
function setInlineMessage(container, message, kind = "muted") {
if (!container) return;
const p = document.createElement("p");
p.style.fontSize = "13px";
p.style.padding = "8px";
p.style.color = kind === "error" ? "var(--danger)" :
kind === "success" ? "var(--success)" : "var(--text-muted)";
p.textContent = message;
container.replaceChildren(p);
}
/* ------------------------------------------------------------------ */
// render.js - shared rendering helpers
const MASCOT = "https://d2jv02qf7xgjwx.cloudfront.net/accounts/90850/images/reserachbee.png";
const _HF = "https://nikeshn-researchbee.hf.space";
function renderMascotRow(message) {
return `
<div class="results-mascot-row">
<img src="${MASCOT}" class="results-mascot-img" alt="ResearchBee" width="44" height="44" loading="lazy" decoding="async">
<div class="results-mascot-bubble">${message}</div>
</div>`;
}
function esc(str) {
if (!str) return "";
return String(str)
.replace(/&/g, "&").replace(/</g, "<")
.replace(/>/g, ">").replace(/"/g, """);
}
// Evidence-backed links; publisher discovery is strictly click-triggered.
function rbTrustedAnchor(url, label, cls = "") {
const safe = safeHttpsUrl(url);
return safe ? `<a href="${esc(safe)}" target="_blank" rel="noopener noreferrer" class="${esc(cls)}">${esc(label)}</a>` : esc(label);
}
function rbJournalTitle(journal) {
return rbTrustedAnchor(journal.journal_links?.homepage?.url, journal.name || "");
}
function rbLinkStatus(link) {
if (!link?.url) return esc(rbText("Not available"));
const status = rbText(({"metadata-only":"Metadata only",checked:"Checked",curated:"Curated"})[link.status] || "Not available");
const date = link.reviewed_at || link.source_updated_at;
return `${esc(status)}${date ? ` ยท ${esc(date)}` : ""}${link.source ? ` ยท ${rbTrustedAnchor(link.source, rbText("Source"))}` : ""}`;
}
function rbJournalLinks(journal) {
const links = journal.journal_links || {};
const home = links.homepage || {}, guide = links.guidelines || {};
const key = String(links.canonical_id || journal.scopus_id || journal.id || journal.issn || "");
return `<div class="rb-trusted-links" data-link-key="${esc(key)}" aria-live="polite">
<div>${home.url ? rbTrustedAnchor(home.url, rbText("Journal website"), "btn btn-ghost") : `<strong>${esc(rbText("Journal website"))}: ${esc(rbText("Not available"))}</strong>`}
<small>${rbLinkStatus(home)}</small></div>
<div>${guide.url ? rbTrustedAnchor(guide.url, rbText("Author guidelines"), "btn btn-ghost") : `<strong>${esc(rbText("Author guidelines"))}: ${esc(rbText("Not available"))}</strong>`}
<small>${rbLinkStatus(guide)}${guide.scope ? ` ยท ${esc(rbText(guide.scope === "journal-specific" ? "Journal-specific instructions" : "General publisher guidance"))}` : ""}</small></div>
${!guide.url && links.can_discover ? `<button type="button" class="btn btn-ghost rb-find-guidelines" data-canonical-id="${esc(links.canonical_id)}">${esc(rbText("Find author guidelines"))}</button>` : ""}
${guide.attempted_at && !guide.url ? `<small>${esc(rbText("Author guidance unavailable; use the journal website if available."))} ยท ${esc(guide.attempted_at)}</small>` : ""}
</div>`;
}
function rbCategoryRows(journal) { return renderFieldQuartiles(journal.quartiles_by_field || []); }
async function rbFindGuidelines(event) {
const button = event.target.closest?.(".rb-find-guidelines");
if (!button || button.disabled) return;
const host = button.closest(".rb-trusted-links");
const generation = RB_DISCOVERY_STATE.generation;
const session = RB_SESSION_GENERATION;
button.disabled = true;
button.textContent = rbText("Checking official publisher pageโฆ");
try {
const links = await callAPI("/api/journal-links", { scopus_id: button.dataset.canonicalId }, { timeoutMs: 30000 });
if (generation !== RB_DISCOVERY_STATE.generation || session !== RB_SESSION_GENERATION || !host.isConnected) return;
RB_DISCOVERY_STATE.all.forEach(j => { if (String(j.journal_links?.canonical_id) === button.dataset.canonicalId) j.journal_links = links; });
RB_ROOT.querySelectorAll(".rb-trusted-links").forEach(node => {
if (node.dataset.linkKey === host.dataset.linkKey) node.outerHTML = rbJournalLinks({journal_links:links});
});
} catch (error) {
if (rbStaleRequest(error) || generation !== RB_DISCOVERY_STATE.generation || session !== RB_SESSION_GENERATION || !host.isConnected) return;
button.disabled = false; button.textContent = rbText("Find author guidelines");
const note = document.createElement("small"); note.textContent = rbText("The lookup failed. The journal website remains available; try again later."); host.append(note);
}
}
RB_ROOT.addEventListener("click", rbFindGuidelines);
function quartileBadge(q) {
if (!q || q === "-") return "";
const cls = { Q1: "b-q1", Q2: "b-q2", Q3: "b-q3", Q4: "b-q4" }[q] || "b-muted";
return `<span class="badge ${cls}">${esc(q)}</span>`;
}
function confidenceBadge(c) {
const cls = { High: "b-success", Medium: "b-warning", Low: "b-muted" }[c] || "b-muted";
return `<span class="badge ${cls}">Fit: ${esc(c)}</span>`;
}
function oaStatusBadge(s) {
const cls = s === "Confirmed" ? "b-success"
: s === "Partially confirmed" ? "b-warning" : "b-danger";
return `<span class="badge ${cls}">OA: ${esc(s)}</span>`;
}
function accessBadge(a) {
const cls = a === "Open" ? "b-success" : a === "Controlled" ? "b-danger" : "b-warning";
return `<span class="badge ${cls}">${esc(a)}</span>`;
}
function fairBadge(f) {
const cls = f === "High" ? "b-success" : f === "Medium" ? "b-warning" : "b-muted";
return `<span class="badge ${cls}">FAIR: ${esc(f)}</span>`;
}
function allowedClass(a) {
if (a === "Yes") return "v-yes";
if (a === "No") return "v-no";
if (a === "Conditional") return "v-conditional";
if (a === "No policy listed") return "v-none";
return "v-unclear";
}
function renderVersionBlock(title, v) {
if (!v) return "";
const options = Array.isArray(v.options) ? v.options : [];
const optionsHtml = options.length ? `
<details class="opf-options">
<summary>${options.length} Open Policy Finder option${options.length === 1 ? "" : "s"} โ view details</summary>
<ol class="opf-option-list">
${options.map((option, index) => `
<li class="opf-option-item">
<div class="opf-option-summary">Option ${index + 1}: ${esc(option.summary || "Policy option")}</div>
<div class="opf-option-meta">
${option.where ? `<div><strong>Where:</strong> ${esc(option.where)}</div>` : ""}
${option.embargo ? `<div><strong>Embargo:</strong> ${esc(option.embargo)}</div>` : ""}
${option.licence ? `<div><strong>Licence:</strong> ${esc(option.licence)}</div>` : ""}
${option.conditions ? `<div><strong>Conditions:</strong> ${esc(option.conditions)}</div>` : ""}
</div>
</li>`).join("")}
</ol>
</details>` : "";
return `
<div class="version-card">
<div class="v-head">
<span class="v-title">${esc(title)}</span>
<span class="v-allowed ${allowedClass(v.allowed)}">${esc(v.allowed || "Unclear")}</span>
</div>
<dl class="v-grid">
${v.where ? `<div><dt>Where</dt><dd>${esc(v.where)}</dd></div>` : ""}
${v.embargo ? `<div><dt>Embargo</dt><dd>${esc(v.embargo)}</dd></div>` : ""}
${v.licence ? `<div><dt>Licence</dt><dd>${esc(v.licence)}</dd></div>` : ""}
${v.conditions ? `<div class="v-full"><dt>Conditions</dt><dd>${esc(v.conditions)}</dd></div>` : ""}
</dl>
${optionsHtml}
</div>`;
}
function renderVerifyLinks(vl, showScopusPrimary = true) {
if (!vl) return "";
const values = showScopusPrimary
? [["Scopus", vl.scopus], ["Open Policy Finder", vl.sherpa_romeo], ["DOAJ", vl.doaj], ["OpenAlex", vl.openalex]]
: [["Open Policy Finder", vl.sherpa_romeo], ["Scopus", vl.scopus], ["DOAJ", vl.doaj], ["OpenAlex", vl.openalex]];
const links = values.map(([label, value]) => [label, safeHttpsUrl(value)]).filter(([, url]) => url);
if (!links.length) return "";
return `<div class="verify-row"><span class="verify-lbl">${esc(rbText("Verify on:"))}</span>${links.map(([label, url]) => `<a href="${esc(url)}" target="_blank" rel="noopener noreferrer" class="vlink ${label === "Scopus" && showScopusPrimary ? "vlink-scopus" : ""}">${esc(label)}</a>`).join("")}</div>`;
}
function renderOpenAlexMetrics(oa) {
if (!oa) return "";
const fmt = (n) => n != null ? Number(n).toLocaleString() : "-";
const tags = [oa.is_in_doaj ? "ยท DOAJ-listed" : "", oa.is_oa ? "ยท OA journal" : ""].filter(Boolean).join(" ");
return `
<dl class="oa-metrics">
<div class="oa-m"><dt>Works</dt><dd>${fmt(oa.works_count)}</dd></div>
<div class="oa-m"><dt>Citations</dt><dd>${fmt(oa.cited_by_count)}</dd></div>
<div class="oa-m"><dt>h-index</dt><dd>${fmt(oa.h_index)}</dd></div>
<div class="oa-m"><dt>2-yr citedness</dt><dd>${oa.two_yr_mean_citedness != null ? Number(oa.two_yr_mean_citedness).toFixed(2) : "-"}</dd></div>
<div class="oa-src">Source: OpenAlex ${tags}</div>
</dl>`;
}
/* =========================================================================
Scopus / SCImago index display layer (journals.db, 48,888 titles)
The backend has been returning these fields since the index went in and the
page has never drawn them:
quartiles_by_field the headline quartile is the journal's BEST across its
subject areas; 46% of ranked journals rank differently
across their own fields
indexation_state "no quartile" is not one answer, it is six
successor_title ~7,000 renamed titles โ redirect, don't warn
oa_diamond no APC and no subscription
Every function here returns "" when the fields are absent, so the ~700
titles still served by the SCImago CSV fallback degrade to exactly what the
page rendered before.
========================================================================= */
/* Two backend paths produce the extras and they land in two different places:
enrich_ranking() -> j.ranking.* (the analysed shortlist cards)
enrich_extended() -> j.* (the quick-match table rows)
Read both. Neither is guaranteed. */
function idxFields(j) {
const r = (j && j.ranking) || {};
const pick = (k) => (j && j[k] !== undefined && j[k] !== null ? j[k] : r[k]);
return {
byField: pick("quartiles_by_field") || [],
state: pick("indexation_state") || "",
message: pick("indexation_message") || "",
warn: pick("warn") === true,
indexed: pick("currently_indexed"),
successor: pick("successor_title") || "",
diamond: pick("oa_diamond") === true,
sjr: pick("sjr"),
fromScopus: pick("from_scopus"),
};
}
const RB_Q_CLASS = { Q1: "b-q1", Q2: "b-q2", Q3: "b-q3", Q4: "b-q4" };
function diamondBadge(j) {
return idxFields(j).diamond
? `<span class="badge b-diamond" title="No article-processing charge for authors and no subscription fee for readers.">โ Diamond OA</span>`
: "";
}
/* Show the spread only when there is a spread to show. For a single-field
journal the headline quartile already says everything, and a block that
repeats it is noise on the common case. */
function renderFieldQuartiles(byField) {
if (!Array.isArray(byField) || !byField.length) return `<p>SCImago SJR ยท ${esc(rbText("Not available"))}</p>`;
const chips = byField.map(f => `<span class="fq-chip">
${f.profile_url && /^Q[1-4]$/.test(f.quartile || "") ? `<a href="${esc(safeHttpsUrl(f.profile_url, ["scimagojr.com"]))}" target="_blank" rel="noopener noreferrer">${quartileBadge(f.quartile)}</a>` : esc(rbText("Not available"))}
<span class="fq-field">${rbTrustedAnchor(safeHttpsUrl(f.category_url,["scimagojr.com"]), f.field)}${!f.category_url ? ` ยท ${esc(rbText("Not available"))}` : ""}</span>
<small>${esc(f.source || rbText("Not available"))} ยท ${esc(f.year || rbText("Not available"))}</small></span>`).join("");
return `<div class="fq-block"><div class="fq-label">${esc(rbText("Quartile by field"))}</div><div class="fq-chips">${chips}</div><p class="fq-note">${esc(rbText("Each quartile belongs to its own category. SCImago SJR is separate from Scopus CiteScore."))}</p></div>`;
}
/* A journal too new for an SJR is a timing artefact and safe to submit to; a
journal Scopus discontinued is the opposite. A blank quartile field says
neither. The prose comes from the API (`indexation_message`) rather than
from here, so the wording โ including Scopus's caveat that discontinuation
is not evidence of predatory practice โ has one source of truth. */
const RB_IDX_UI = {
discontinued: { cls: "idx-danger", icon: "โ ", short: "Discontinued", head: "Discontinued by Scopus" },
renamed: { cls: "idx-info", icon: "โป", short: "Renamed", head: "No longer indexed under this name" },
ceased: { cls: "idx-muted", icon: "โป", short: "Ceased", head: "No longer indexed โ the journal appears to have ceased" },
not_indexed: { cls: "idx-muted", icon: "โป", short: "Not in Scopus",head: "No Scopus source record" },
indexed_new: { cls: "idx-info", icon: "โณ", short: "Too new", head: "Indexed in Scopus โ quartile not yet assigned" },
indexed_unranked: { cls: "idx-muted", icon: "โ", short: "Unranked", head: "Indexed in Scopus โ SCImago computes no SJR" },
indexed_no_sjr: { cls: "idx-muted", icon: "โ", short: "No SJR", head: "Indexed in Scopus โ absent from SCImago" },
// indexed_ranked is deliberately absent: the metrics block already says it.
};
function renderIndexationNotice(j) {
const f = idxFields(j);
if (!f.state || f.state === "indexed_ranked") return "";
const ui = RB_IDX_UI[f.state];
if (!ui) return "";
// A successor is a redirect, not a verdict. On a renamed title it is the
// answer; on a discontinued one it only says where to look next, and must
// not be allowed to read as reassurance.
const successor = f.successor
? `
<p class="idx-successor">Continues as <strong>${esc(f.successor)}</strong><a href="https://www.scimagojr.com/journalsearch.php?q=${encodeURIComponent(f.successor)}" target="_blank" rel="noopener">look it up โ</a></p>`
: "";
return `
<div class="idx-notice ${ui.cls}">
<div class="idx-head"><span class="idx-icon">${ui.icon}</span>${esc(ui.head)}</div>
${f.message ? `<p class="idx-msg">${esc(f.message)}</p>` : ""}${successor}
</div>`;
}
/* Compact form for the quick-match table, where there is no room for a notice
block and the quartile column otherwise renders a bare "-". */
function indexationFlag(j) {
const f = idxFields(j);
if (!f.state || f.state === "indexed_ranked") return "";
const ui = RB_IDX_UI[f.state];
if (!ui) return "";
return `<span class="ext-flag ${ui.cls}" title="${esc(ui.head)}${f.message ? " โ " + esc(f.message) : ""}">${esc(ui.short)}</span>`;
}
/* Silence about where an answer came from is how an interface makes itself
look more certain than it is. When journals.db had no Scopus source record
and the SCImago CSV served the lookup, say so โ otherwise the ABSENCE of an
indexation notice reads as "checked, nothing to report" when it is really
"not checked". */
function renderIndexProvenance(j) {
const f = idxFields(j);
if (f.fromScopus !== false) return "";
return `
<p class="rank-verify rank-fallback"><strong>Source:</strong> matched against the SCImago list only โ there is no Scopus source record for this title, so its indexation state and per-field quartiles could not be checked.</p>`;
}
/* Signature is (r, j): the journal object is needed because enrich_extended()
puts the extras at the top level rather than under .ranking. Called with one
argument it still works, it just cannot see that variant. */
function renderRankingBlock(r, j) {
if (!r) return "";
const host = j || { ranking: r };
const f = idxFields(host);
const isConfirmed = r.verification_status === "Confirmed";
const isDerived = /openalex-derived/i.test(r.verification_status || "");
const cls = isConfirmed ? "confirmed" : isDerived ? "derived" : "unverified";
const badge = isConfirmed
? `<span class="badge b-success">โ Verified by ISSN</span>`
: isDerived
? `<span class="badge b-warning">[!] OpenAlex-derived</span>`
: `<span class="badge b-danger">[!] Unverified โ check manually</span>`;
return `
<div class="rank-box ${cls}">
<div class="rank-head">
<h5>๐ Journal metrics</h5>
${badge}
</div>
<dl class="rank-grid">
<div class="rank-item"><dt>Source</dt><dd>${esc(r.source || rbText("Not available"))}</dd></div>
<div class="rank-item"><dt>Year</dt><dd>${esc(r.year || rbText("Not available"))}</dd></div>
<div class="rank-item"><dt>Quartile</dt><dd>${r.quartile ? `<span class="badge ${RB_Q_CLASS[r.quartile] || "b-muted"}">${esc(r.quartile)}</span>` : "-"}</dd></div>
${r.percentile ? `<div class="rank-item"><dt>Rank/Percentile</dt><dd>${esc(r.percentile)}</dd></div>` : ""}
${f.sjr != null ? `<div class="rank-item"><dt>SJR</dt><dd>${esc(String(f.sjr))}</dd></div>` : ""}
${r.category ? `<div class="rank-item"><dt>Category</dt><dd style="font-size:11px">${esc(r.category)}</dd></div>` : ""}
${r.h_index ? `<div class="rank-item"><dt>h-index</dt><dd>${esc(r.h_index)}</dd></div>` : ""}
</dl>
${renderFieldQuartiles(f.byField)}
${r.interpretation ? `<p class="rank-note">${esc(r.interpretation)}</p>` : ""}
${r.verification_status ? `<p class="rank-verify"><strong>Verification:</strong> ${esc(r.verification_status)}</p>` : ""}${renderIndexProvenance(host)}
</div>`;
}
function renderKhaznaCard(k, mode = "article") {
const tip = mode === "data"
? "Even when your data lives in a domain-specific repository, register the metadata in the KU repository, Khazna, so the work appears in KU's research portfolio."
: "Register your publication with Khazna. Deposit a manuscript file only when the checked version, repository location, licence and embargo conditions permit it; contact KU Library when permission is unclear.";
return `
<div class="khazna-card">
<div class="khazna-head">
<span style="font-size:22px">๐๏ธ</span>
<div>
<h3>KU repository — Khazna</h3>
<div style="font-size:12px;opacity:.8">khazna.ku.ac.ae</div>
</div>
</div>
<div class="khazna-body">
<p>${esc(rbText(k.message || tip))}</p>
<div class="khazna-tip"><span>๐ก</span><span>${esc(rbText(tip))}</span></div>
<div class="khazna-actions">
<a href="${esc(safeHttpsUrl(k.url || "https://khazna.ku.ac.ae"))}" target="_blank" class="k-btn k-btn-fill">๐ Visit Khazna</a>
<a href="mailto:${esc(k.contact || "khazna@ku.ac.ae")}" class="k-btn k-btn-outline">โ khazna@ku.ac.ae</a>
<a href="${esc(safeHttpsUrl(k.library_url || "https://library.ku.ac.ae/lib"))}" target="_blank" class="k-btn k-btn-outline">๐ KU Library</a>
</div>
</div>
</div>`;
}
function renderHelpCard() {
return `
<div class="help-card">
<div class="help-left">
<span class="help-icon">๐</span>
<div class="help-text">
<h4>Need help? Contact KU Library</h4>
<p>Not sure what to deposit, which version, or how? Our librarians can advise on open access, self-archiving, and research data management.</p>
</div>
</div>
<div class="help-links">
<a href="mailto:library@ku.ac.ae" class="k-btn k-btn-fill" style="font-size:12px;padding:7px 14px">โ Contact Library</a>
<a href="https://library.ku.ac.ae/lib" target="_blank" class="k-btn k-btn-outline" style="font-size:12px;padding:7px 14px">๐ Library Website</a>
</div>
</div>`;
}
function rbRenderRepositoryConstraints(repository) {
const assessment = repository.constraint_assessment || {};
const metadataOnly = repository.metadata_registration_only === true || assessment.state === "metadata_only";
const restricted = repository.file_deposit_recommended === false || assessment.file_deposit_recommended === false;
const conflicts = Array.isArray(assessment.constraint_conflicts) ? assessment.constraint_conflicts : [];
const unresolved = Array.isArray(assessment.unresolved_constraints) ? assessment.unresolved_constraints : [];
const capability = repository.capabilities || assessment.capabilities || {};
if (!metadataOnly && !restricted && !conflicts.length && !unresolved.length && !capability.reviewed) return "";
const heading = metadataOnly ? "Metadata registration only" : restricted ? "Review required before file deposit" : "Repository requirement checks";
return `<section class="policy-notes rb-repository-constraints">
<h5>${esc(rbText(heading))}</h5>
${metadataOnly ? `<p>${esc(rbText("Register metadata with KU Library. Dataset file hosting, DOI assignment, embargo and versioning need separate confirmation."))}</p>` : ""}
${restricted && !metadataOnly ? `<p>${esc(rbText("File deposit is not recommended until the repository and KU Library confirm the requirements for this dataset."))}</p>` : ""}
${assessment.sensitive_data_review_required ? `<p><strong>${esc(rbText("Sensitive-data review required. Do not upload identifiable or confidential files."))}</strong></p>` : ""}
${(conflicts.length || unresolved.length) ? `<ul class="checks-list">${[...conflicts, ...unresolved].map(item => `<li>${esc(item)}</li>`).join("")}</ul>` : ""}
${capability.reviewed ? `<p>${esc(rbText("Capability record reviewed:"))} ${esc(capability.reviewed)}</p>` : ""}
</section>`;
}
function rbRenderPolicyEvaluation(evaluation) {
if (!evaluation) return "";
const label = { meets: "Selected context appears compatible", conditional: "Conditional โ review the applicable option", does_not_meet: "Selected context is not permitted by the assessed options", unknown: "Selected-context applicability is unknown" }[evaluation.state] || "Selected-context applicability is unknown";
const unresolved = Array.isArray(evaluation.unresolved_conditions) ? evaluation.unresolved_conditions : [];
const selected = evaluation.selected_option || {};
return `<section class="policy-notes rb-context-evaluation"><p><strong>${esc(rbText(label))}</strong></p>
${selected.where ? `<p><strong>${esc(rbText("Where"))}:</strong> ${esc(selected.where)}</p>` : ""}
${selected.licence ? `<p><strong>${esc(rbText("Licence"))}:</strong> ${esc(selected.licence)}</p>` : ""}
${selected.embargo ? `<p><strong>${esc(rbText("Embargo"))}:</strong> ${esc(selected.embargo)}</p>` : ""}
${unresolved.length ? `<ul class="checks-list">${unresolved.map(item => `<li>${esc(item)}</li>`).join("")}</ul>` : ""}
</section>`;
}
function renderRepoSpecs(repository) {
const specs = [
["Max file size", repository.max_file_size],
["Licences", repository.licences_supported],
["Persistent ID", repository.persistent_identifier],
["Versioning", repository.versioning],
["Embargo support", repository.embargo_support],
["Access model", repository.access_model],
["Sensitive data", repository.sensitive_data_suitable],
["Curation", repository.curation],
].filter(([, value]) => String(value || "").trim());
if (!specs.length) return "";
return `<dl class="r-specs">${specs.map(([label, value]) =>
`<div><dt>${esc(label)}</dt><dd>${esc(value)}</dd></div>`).join("")}</dl>`;
}
function renderRepoCard(r, idx) {
const isKhazna = r.is_khazna;
const verify = r.verify_links || {};
const confidence = r.fit_confidence || r.confidence || "";
const verification = r.verified_note || r.verification_status || "";
return `
<div class="card j-card r-card ${isKhazna ? "is-khazna" : ""}">
<div class="j-header">
<div class="j-meta">#${idx + 1} ยท ${esc(r.type)} ยท ${esc(r.cost)}${isKhazna ? " ยท KU Institutional" : ""}</div>
<div class="j-title">
${rbTrustedAnchor(r.url, r.name)}
${r.url ? `<a href="${esc(safeHttpsUrl(r.url))}" target="_blank" rel="noopener noreferrer" style="font-size:14px;font-family:system-ui,sans-serif;font-weight:400;color:var(--primary);margin-left:8px" class="btn btn-ghost">${esc(rbText("Visit repository"))} โ</a>` : ""}
</div>
<div class="badge-row">
${confidence ? confidenceBadge(confidence) : ""}
${r.access_model ? accessBadge(r.access_model) : ""}
${r.fair_alignment ? fairBadge(r.fair_alignment) : ""}
${r.certification && r.certification !== "None" ? `<span class="badge b-accent">${esc(r.certification)}</span>` : ""}
</div>
</div>
<div class="j-body">
<p style="color:var(--text-muted);font-size:13px">${esc(r.scope)}</p>
<div class="detail-grid">
<div class="detail-item"><h5>Why it fits</h5><p>${esc(r.fit_reason || "Selected from the curated registry for this dataset profile.")}</p></div>
<div class="detail-item"><h5>Data types</h5><p>${esc(r.data_types_accepted)}</p></div>
</div>
<hr class="divider">
${renderRepoSpecs(r)}
${rbRenderRepositoryConstraints(r)}
${verification ? `<p style="font-size:12px"><strong>Verification:</strong> ${esc(verification)}</p>` : ""}
${!isKhazna ? `
<div class="verify-row">
<span class="verify-lbl">Verify on:</span>
${verify.re3data ? `<a href="${esc(safeHttpsUrl(verify.re3data))}" target="_blank" rel="noopener noreferrer" class="vlink">re3data โ</a>` : ""}
${verify.fairsharing ? `<a href="${esc(safeHttpsUrl(verify.fairsharing))}" target="_blank" rel="noopener noreferrer" class="vlink">FAIRsharing โ</a>` : ""}
${r.source_url ? `<a href="${esc(safeHttpsUrl(r.source_url))}" target="_blank" rel="noopener noreferrer" class="vlink">Registry source โ</a>` : ""}
</div>` : `
<div class="verify-row">
<span class="verify-lbl">Contact:</span>
<a href="mailto:khazna@ku.ac.ae" class="vlink">khazna@ku.ac.ae</a>
<a href="https://khazna.ku.ac.ae" target="_blank" rel="noopener noreferrer" class="vlink">khazna.ku.ac.ae โ</a>
</div>`}
</div>
</div>`;
}
function renderNextActions(actions, global_notes) {
if (!actions?.length) return "";
return `
<div class="card mt-6">
<div class="card-header"><h2>โ
Next best actions</h2></div>
<div class="card-body">
<ol class="actions-list">
${actions.map((a, i) => `
<li class="action-item">
<span class="a-num">${i + 1}</span>
<span>${esc(a)}</span>
</li>`).join("")}
</ol>
${global_notes ? `<p class="global-note">${esc(global_notes)}</p>` : ""}
</div>
</div>`;
}
function renderManuscriptUnderstanding(m) {
if (!m) return "";
return `
<div class="card understanding">
<div class="card-header"><h2>๐ง Manuscript understanding</h2></div>
<div class="card-body">
<p style="font-size:14px">${esc(m.summary)}</p>
<div class="tag-row">
${m.discipline ? `<span class="badge b-primary">${esc(m.discipline)}</span>` : ""}
${m.article_type ? `<span class="badge b-muted">${esc(m.article_type)}</span>` : ""}
</div>
${m.inferred_criteria?.length ? `
<div>
<h5 style="font-size:13px;font-weight:600;margin-bottom:6px">Inferred selection criteria</h5>
<ul style="list-style:disc;padding-left:18px;display:flex;flex-direction:column;gap:3px">
${m.inferred_criteria.map(c => `<li style="font-size:13px;color:var(--text-muted)">${esc(c)}</li>`).join("")}
</ul>
</div>` : ""}
${m.assumptions?.length ? `
<div class="acc">
<button class="acc-btn" onclick="this.nextElementSibling.classList.toggle('open')">
Assumptions made (${m.assumptions.length}) <span>โพ</span>
</button>
<div class="acc-body">
<ul>${m.assumptions.map(a => `<li>${esc(a)}</li>`).join("")}</ul>
</div>
</div>` : ""}
</div>
</div>`;
}
function renderSubmissionChecklist(sc) {
if (!sc) return "";
const steps = (sc.key_steps || []).map((s, i) =>
`<li class="action-item"><span class="a-num">${i+1}</span><span>${esc(s)}</span></li>`
).join("");
const docs = (sc.required_documents || []).map(d =>
`<li style="font-size:13px;color:var(--text-muted)">${esc(d)}</li>`
).join("");
return `
<div class="acc">
<button class="acc-btn" onclick="this.nextElementSibling.classList.toggle('open');this.querySelector('.acc-arrow').classList.toggle('open')">
<span>๐ Submission checklist & requirements</span>
<span class="acc-arrow" style="transition:transform .2s;display:inline-block">โพ</span>
</button>
<div class="acc-body">
<dl class="r-specs" style="margin-bottom:12px">
<div><dt>Submission system</dt><dd>${esc(sc.submission_system || "Not specified")}</dd></div>
<div><dt>Word limit</dt><dd>${esc(sc.word_limit || "Not specified")}</dd></div>
<div><dt>Cover letter required</dt><dd>${esc(sc.cover_letter_required || "Unclear")}</dd></div>
<div><dt>Data availability</dt><dd>${esc(sc.data_availability_statement || "Unclear")}</dd></div>
<div><dt>Ethical approval</dt><dd>${esc(sc.ethical_approval || "If applicable")}</dd></div>
</dl>
${sc.formatting_notes ? `<p style="font-size:13px;margin-bottom:10px"><strong>Formatting:</strong> ${esc(sc.formatting_notes)}</p>` : ""}
${docs ? `<div style="margin-bottom:10px"><strong style="font-size:13px">Required documents:</strong><ul style="list-style:disc;padding-left:18px;margin-top:4px">${docs}</ul></div>` : ""}
${steps ? `<div><strong style="font-size:13px">Key submission steps:</strong><ol class="actions-list" style="margin-top:6px">${steps}</ol></div>` : ""}
</div>
</div>`;
}
function renderCoverLetterBtn(journal, manuscript, uid) {
const key = rbDomKey(uid || journal.issn || journal.name, "journal");
RB_COVER_LETTER_PAYLOADS.set(key, {
journalName: String(journal.name || ""),
publisher: String(journal.publisher || ""),
manuscriptTitle: String(manuscript?.title || ""),
abstract: String(manuscript?.abstract || "").substring(0, 5000),
articleType: String(manuscript?.article_type || "Original research article"),
discipline: String(manuscript?.discipline || ""),
});
return `
<p class="rb-cover-letter-notice">Draft only. Verify every claim and complete author confirmations for originality, approval, conflicts of interest and ethics before sending.</p>
<button type="button" class="btn btn-ghost rb-cover-letter-btn"
style="margin-top:4px;font-size:13px" data-cover-id="${key}">
โ Generate cover letter
</button>
<div id="cover-letter-${key}" aria-live="polite"></div>`;
}
function wireCoverLetterButtons(root) {
root.querySelectorAll(".rb-cover-letter-btn").forEach(btn => {
btn.addEventListener("click", () => {
const payload = RB_COVER_LETTER_PAYLOADS.get(btn.dataset.coverId || "");
if (payload) window.ResearchBee.generateCoverLetter(payload, btn);
});
});
}
// โโ Altmetric badge โ async loaded after journal cards render โโโโโโโโโโโโโ
function renderAltmetricPlaceholder(issn) {
if (!issn) return "";
const uid = issn.replace(/[^a-zA-Z0-9]/g, "");
return `<div id="altmetric-${uid}"></div>`;
}
async function loadAltmetricBadge(issn) {
if (!issn) return;
const uid = issn.replace(/[^a-zA-Z0-9]/g, "");
const container = document.getElementById(`altmetric-${uid}`);
if (!container) return;
try {
const r = await fetch(`${_HF}/api/altmetric?issn=${encodeURIComponent(issn)}`);
if (!r.ok) return;
const data = await r.json();
if (!data.score) return;
container.innerHTML = `
<div class="altmetric-wrap">
<span class="altmetric-label">Altmetric</span>
${data.image
? `<a href="${data.url || '#'}" target="_blank" rel="noopener">
<img src="${data.image}" class="altmetric-img" alt="Altmetric score ${data.score}">
</a>`
: `<a href="${data.url || '#'}" target="_blank" class="altmetric-score-pill">${data.score}</a>`}
<span class="altmetric-score-label">Score: <strong>${data.score}</strong></span>
<a href="https://www.altmetric.com/about-our-data/our-sources/"
target="_blank" class="altmetric-src">What is this?</a>
</div>`;
} catch (_) { /* silent fail โ Altmetric is optional enrichment */ }
}
// โโ Related works accordion โ lazy loaded on click โโโโโโโโโโโโโโโโโโโโโโโโ
function renderRelatedWorksAccordion(journal, uid) {
const sourceId = String((journal.openalex || {}).openalex_id || "");
const issn = String(journal.issn || "");
if (!sourceId && !issn) return "";
const key = rbDomKey(uid || issn || sourceId, "related");
RB_RELATED_WORK_PAYLOADS.set(key, { sourceId, issn });
return `
<div class="acc rb-related-works" style="margin-top:0" data-related-id="${key}">
<button type="button" class="acc-btn rb-related-toggle"
data-related-id="${key}" aria-expanded="false" aria-controls="rw-${key}">
<span>๐ Related works in this journal</span>
<span class="acc-arrow" style="transition:transform .2s;display:inline-block" aria-hidden="true">โพ</span>
</button>
<div class="acc-body" id="rw-${key}">
<div class="rw-tabs" style="display:flex;gap:0;border-bottom:1px solid var(--border);margin-bottom:10px" role="tablist">
<button type="button" class="rw-tab active rb-rw-tab" id="rwtab-cited-${key}"
data-related-id="${key}" data-rw-tab="cited" role="tab" aria-selected="true"
style="padding:6px 14px;font-size:12px;font-weight:600;border:none;background:none;cursor:pointer;border-bottom:2px solid #4338CA;color:#4338CA;font-family:system-ui,sans-serif">
Highly cited
</button>
<button type="button" class="rw-tab rb-rw-tab" id="rwtab-chain-${key}"
data-related-id="${key}" data-rw-tab="chain" role="tab" aria-selected="false"
style="padding:6px 14px;font-size:12px;font-weight:600;border:none;background:none;cursor:pointer;border-bottom:2px solid transparent;color:var(--text-muted);font-family:system-ui,sans-serif">
Citation chain
</button>
</div>
<div id="rwpanel-cited-${key}" role="tabpanel"><div class="rw-loading">Open this section to load works.</div></div>
<div id="rwpanel-chain-${key}" role="tabpanel" style="display:none">
<p style="font-size:12px;color:var(--text-muted);padding:4px 0 8px">
Select a paper from โHighly citedโ, then choose <strong>See who cites this โ</strong>
</p>
</div>
</div>
</div>`;
}
function wireRelatedWorks(root) {
root.querySelectorAll(".rb-related-toggle").forEach(btn => {
btn.addEventListener("click", () => {
const uid = btn.dataset.relatedId || "";
const body = document.getElementById(`rw-${uid}`);
if (!body) return;
const open = !body.classList.contains("open");
body.classList.toggle("open", open);
btn.setAttribute("aria-expanded", String(open));
btn.querySelector(".acc-arrow")?.classList.toggle("open", open);
if (open) window.ResearchBee._loadRelatedWorks(uid);
});
});
root.querySelectorAll(".rb-rw-tab").forEach(btn => {
btn.addEventListener("click", () => {
window.ResearchBee._switchRwTab(btn.dataset.relatedId || "", btn.dataset.rwTab || "cited");
});
});
}
window.ResearchBee._switchRwTab = function(uid, tab) {
["cited", "chain"].forEach(name => {
const btn = document.getElementById(`rwtab-${name}-${uid}`);
const panel = document.getElementById(`rwpanel-${name}-${uid}`);
if (!btn || !panel) return;
const active = name === tab;
btn.classList.toggle("active", active);
btn.style.borderBottomColor = active ? "#4338CA" : "transparent";
btn.style.color = active ? "#4338CA" : "var(--text-muted)";
btn.setAttribute("aria-selected", String(active));
panel.style.display = active ? "block" : "none";
});
};
function appendWorkMeta(meta, work) {
if (work.year) {
const year = document.createElement("span");
year.textContent = String(work.year);
meta.appendChild(year);
}
const citedBy = Number(work.cited_by || 0);
if (Number.isFinite(citedBy) && citedBy > 0) {
const citations = document.createElement("span");
citations.textContent = `๐ ${citedBy.toLocaleString()} citations`;
meta.appendChild(citations);
}
const doi = makeExternalLink(work.doi, "DOI โ", ["doi.org"]);
if (doi) meta.appendChild(doi);
const openAlex = makeExternalLink(work.openalex_url, "OpenAlex โ", ["openalex.org"]);
if (openAlex) meta.appendChild(openAlex);
}
function makeWorkItem(work, citationUid = "") {
const item = document.createElement("div");
item.className = "rw-item";
const title = document.createElement("div");
title.className = "rw-title";
title.textContent = String(work.title || "Untitled");
item.appendChild(title);
const authors = Array.isArray(work.authors) ? work.authors.slice(0, 3).filter(Boolean) : [];
if (authors.length) {
const authorLine = document.createElement("div");
authorLine.className = "rw-authors";
authorLine.textContent = authors.join(", ");
item.appendChild(authorLine);
}
const meta = document.createElement("div");
meta.className = "rw-meta";
appendWorkMeta(meta, work);
const workId = safeHttpsUrl(work.openalex_url, ["openalex.org"]);
if (citationUid && workId) {
const chainBtn = document.createElement("button");
chainBtn.type = "button";
chainBtn.textContent = "See who cites this โ";
chainBtn.style.cssText = "font-size:11px;background:#e0e7ff;color:#4338CA;border:none;border-radius:4px;padding:2px 7px;cursor:pointer;font-family:system-ui,sans-serif";
chainBtn.addEventListener("click", () => {
window.ResearchBee._startCitationChain(citationUid, workId, String(work.title || "Untitled"));
});
meta.appendChild(chainBtn);
}
item.appendChild(meta);
return item;
}
function renderWorkList(panel, works, citationUid = "", sourceLabel = "Source: OpenAlex") {
const list = document.createElement("div");
list.className = "rw-list";
works.forEach(work => list.appendChild(makeWorkItem(work, citationUid)));
const source = document.createElement("div");
source.className = "rw-src";
source.append(document.createTextNode(`${sourceLabel} ยท `));
const sourceLink = makeExternalLink("https://openalex.org", "OpenAlex", ["openalex.org"]);
if (sourceLink) source.appendChild(sourceLink);
list.appendChild(source);
panel.replaceChildren(list);
}
window.ResearchBee._loadRelatedWorks = async function(uid) {
// Update only the cited-results panel. The accordion tabs and citation-chain
// panel must remain in the DOM for the chain workflow to function.
const panel = document.getElementById(`rwpanel-cited-${uid}`);
if (!panel || panel.dataset.loaded === "1") return;
panel.dataset.loaded = "1";
setInlineMessage(panel, "Loading related works...");
const source = RB_RELATED_WORK_PAYLOADS.get(uid) || {};
const cleanId = rbOpenAlexId(source.sourceId);
if (!cleanId) {
setInlineMessage(panel, "No OpenAlex source ID is available for this journal.");
return;
}
try {
const data = await rbFetchJson(`${_HF}/api/openalex-works?source_id=${encodeURIComponent(cleanId)}&per_page=5`, {}, { timeoutMs: 20000 });
const works = Array.isArray(data.works) ? data.works : [];
if (!works.length) {
setInlineMessage(panel, "No works data are available for this journal.");
return;
}
renderWorkList(panel, works, uid, "Highly cited works");
} catch (_) {
panel.dataset.loaded = "";
setInlineMessage(panel, "Could not load works data.", "error");
}
};
// โโ Deeper Analysis Strip โ links to Scopus, WoS, SciVal โโโโโโโโโโโโโโโโโ
const KU_PROXY = "http://login.khalifa.idm.oclc.org/login?url=";
const SCOPUS_URL = `${KU_PROXY}https://www.scopus.com`;
const WOS_URL = `${KU_PROXY}https://www.webofscience.com`;
const SCIVAL_URL = `${KU_PROXY}https://www.scival.com`;
function renderDeeperAnalysisStrip(journalName, issn) {
const q = issn
? `${KU_PROXY}https://www.scopus.com/sources?ORIGIN=SRCTITLE&title=${encodeURIComponent(journalName)}`
: `${KU_PROXY}https://www.scopus.com/sources`;
return `
<div class="deeper-analysis-strip">
<span class="deeper-analysis-label">๐ฌ Deeper analysis:</span>
<a href="${esc(q)}" target="_blank" rel="noopener" class="da-link da-scopus">๐ Scopus Sources</a>
<a href="${esc(WOS_URL)}" target="_blank" rel="noopener" class="da-link da-wos">๐ฌ Web of Science</a>
<a href="${esc(SCIVAL_URL)}" target="_blank" rel="noopener" class="da-link da-scival">๐ SciVal</a>
</div>`;
}
function renderSubjectDeeperAnalysisStrip() {
return `
<div class="subject-deeper-strip">
<span style="font-size:13px;font-weight:600;color:var(--text-muted)">๐ฌ For citation analysis, author metrics & research performance:</span>
<div style="display:flex;gap:8px;flex-wrap:wrap;margin-top:8px">
<a href="${esc(SCOPUS_URL)}" target="_blank" rel="noopener" class="da-link da-scopus">๐ Scopus</a>
<a href="${esc(WOS_URL)}" target="_blank" rel="noopener" class="da-link da-wos">๐ฌ Web of Science</a>
<a href="${esc(SCIVAL_URL)}" target="_blank" rel="noopener" class="da-link da-scival">๐ SciVal</a>
<a href="https://library.ku.ac.ae/lib" target="_blank" rel="noopener" class="da-link da-library">๐๏ธ KU Library</a>
</div>
</div>`;
}
// โโ Trending papers placeholder โ loaded async via window.ResearchBee._loadTrendingPapers โ
function renderTrendingPapersSection(concept, conceptId) {
if (!concept && !conceptId) return "";
const uid = (concept || "").replace(/[^a-zA-Z0-9]/g, "").slice(0, 20) || "topic";
const _HF = "https://nikeshn-researchbee.hf.space";
return `
<div class="trending-papers-wrap">
<button class="ext-toggle" onclick="
this.classList.toggle('open');
var b = this.nextElementSibling;
b.style.display = b.style.display === 'none' || b.style.display === '' ? 'block' : 'none';
window.ResearchBee._loadTrendingPapers('${uid}', '${encodeURIComponent(conceptId || concept || "")}', '${esc(concept || "")}');
">
<span>๐ Trending papers in ${esc(concept || "this field")}</span>
<span class="ext-arrow">โผ</span>
</button>
<div id="trending-${uid}" style="display:none;margin-top:6px">
<div style="font-size:12px;color:var(--text-muted);padding:8px">Click to load trending papers...</div>
</div>
</div>`;
}
// Global โ called from inline onclick
window.ResearchBee._loadTrendingPapers = async function(uid, conceptParam, conceptLabel) {
const container = document.getElementById(`trending-${uid}`);
if (!container || container.dataset.loaded) return;
container.dataset.loaded = "1";
container.innerHTML = `<div style="font-size:12px;color:var(--text-muted);padding:8px">Loading trending papers...</div>`;
try {
const _HF = "https://nikeshn-researchbee.hf.space";
const concept = decodeURIComponent(conceptParam);
// Route through HF backend to avoid CORS issues with direct OpenAlex calls
const isConceptId = /^C\d+$/.test(concept);
const params = isConceptId
? `concept_id=${encodeURIComponent(concept)}&per_page=5`
: `concept=${encodeURIComponent(concept)}&per_page=5`;
const r = await fetch(`${_HF}/api/trending-papers?${params}`);
if (!r.ok) throw new Error("API error");
const data = await r.json();
const works = data.works || [];
if (!works.length) {
container.innerHTML = `<p style="font-size:13px;color:var(--text-muted);padding:8px">No trending papers found for this field.</p>`;
return;
}
const rows = works.map(w => {
const authors = (w.authors || []).join(", ");
const journal = w.journal || "";
const doi = w.doi ? `<a href="${w.doi}" target="_blank" class="vlink" style="font-size:11px">DOI โ</a>` : "";
const oaLink = w.openalex_url ? `<a href="${w.openalex_url}" target="_blank" class="vlink" style="font-size:11px">OpenAlex โ</a>` : "";
return `
<div class="rw-item">
<div class="rw-title">${w.title || "Untitled"}</div>
${authors ? `<div class="rw-authors">${authors}${journal ? ` ยท <em>${journal}</em>` : ""}</div>` : ""}
<div class="rw-meta">
${w.year ? `<span>${w.year}</span>` : ""}
${w.cited_by ? `<span>๐ ${w.cited_by.toLocaleString()} citations</span>` : ""}
${doi} ${oaLink}
</div>
</div>`;
}).join("");
container.innerHTML = `
<div class="rw-list">
${rows}
<div class="rw-src">Source: <a href="https://openalex.org" target="_blank" rel="noopener noreferrer" class="vlink">OpenAlex</a> ยท Most cited ยท Last 3 years</div>
</div>`;
} catch(e) {
container.innerHTML = `<p style="font-size:13px;color:var(--text-muted);padding:8px">Could not load trending papers.</p>`;
}
};
// โโ Citation chaining โ forward citations for a selected paper โโโโโโโโโโโโ
window.ResearchBee._startCitationChain = async function(uid, workId, title) {
window.ResearchBee._switchRwTab(uid, "chain");
const chainPanel = document.getElementById(`rwpanel-chain-${uid}`);
if (!chainPanel) return;
const heading = document.createElement("p");
heading.style.cssText = "font-size:12px;color:var(--text-muted);margin-bottom:8px";
heading.append(document.createTextNode("Papers citing: "));
const strong = document.createElement("strong");
strong.textContent = String(title || "Untitled");
heading.appendChild(strong);
const loading = document.createElement("div");
loading.className = "rw-loading";
loading.textContent = "Loading citing papers...";
chainPanel.replaceChildren(heading, loading);
const cleanId = rbOpenAlexId(workId, "W");
if (!/^W\d+$/.test(cleanId)) {
setInlineMessage(chainPanel, "Invalid OpenAlex work identifier.", "error");
return;
}
try {
const data = await rbFetchJson(`${_HF}/api/openalex-cited-by?work_id=${encodeURIComponent(cleanId)}&per_page=5`, {}, { timeoutMs: 20000, requestKey: `citation:${uid}` });
const works = Array.isArray(data.works) ? data.works : [];
if (!works.length) {
setInlineMessage(chainPanel, "No citing papers were found for this work.");
return;
}
const results = document.createElement("div");
renderWorkList(results, works, "", "Forward citations");
const back = document.createElement("button");
back.type = "button";
back.textContent = "โ Back to highly cited";
back.style.cssText = "font-size:11px;margin-top:6px;background:none;border:1px solid var(--border);border-radius:6px;padding:3px 10px;cursor:pointer;color:var(--text-muted);font-family:system-ui,sans-serif";
back.addEventListener("click", () => window.ResearchBee._switchRwTab(uid, "cited"));
chainPanel.replaceChildren(heading, results, back);
} catch (_) {
setInlineMessage(chainPanel, "Could not load citing papers.", "error");
}
};
// โโ KU Journal Finder Guide card โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function renderJournalFinderCard() {
return `
<div class="jf-guide-card">
<div class="jf-guide-left">
<div class="jf-guide-icon">๐</div>
<div>
<h4 class="jf-guide-title">KU Library Journal Finder Guide</h4>
<p class="jf-guide-desc">
Explore 20+ journal finder tools โ publisher-specific finders (Elsevier, Springer, Wiley, IEEE & more),
AI matchers, indexing checkers, and OA verifiers โ all curated by KU Library.
</p>
</div>
</div>
<a href="https://library.ku.ac.ae/journalfinder"
target="_blank" rel="noopener"
class="jf-guide-btn">
Open Guide โ
</a>
</div>`;
}
/* ------------------------------------------------------------------ */
RB_ROOT.querySelectorAll('img[data-rb-mascot]').forEach((img) => { img.src = MASCOT; });
// render_license.js โ rendering helpers for the verified-sources License tab.
//
// Design rule mirrored from the backend: the UI must never make an answer look
// more certain than it is. Provenance is always visible, and "we could not
// check" is rendered differently from "it is not there".
// โโ Provenance badge โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function provenanceBadge(green, sourceMode) {
const status = green?.policy_status || "Not confirmed";
const apiSourced = green?.source_type === "open_policy_finder_api" &&
(status === "Confirmed" || sourceMode === "journal_api");
if (apiSourced) {
return `<span class="prov-badge prov-api" title="Retrieved from the authenticated Jisc Open Policy Finder API; journal-level scope">
โ Verified source · Open Policy Finder API · journal-level
</span>`;
}
if (status === "Confirmed") {
return `<span class="prov-badge prov-verified" title="Retrieved from an article-level permission database">
โ Verified · OA.Works Permissions · article-level
</span>`;
}
const label = sourceMode === "doi"
? "No record found for this article"
: "Policy not retrieved";
return `<span class="prov-badge prov-unverified" title="No policy record could be retrieved">
โ ${label}
</span>`;
}
// โโ Source panel: where every fact came from โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function renderSourcePanel(green, result) {
const apiSourced = green?.source_type === "open_policy_finder_api" && green?.policy_status === "Confirmed";
const articleVerified = green?.policy_status === "Confirmed" && !apiSourced;
const urls = Array.isArray(green?.evidence_urls) ? green.evidence_urls.map(url => safeHttpsUrl(url)).filter(Boolean) : [];
const verifyUrl = safeHttpsUrl(green?._verify_url) || "https://openpolicyfinder.jisc.ac.uk/";
const panelClass = apiSourced ? "sp-api" : articleVerified ? "sp-verified" : "sp-unverified";
const icon = apiSourced ? "๐" : articleVerified ? "๐" : "โ ๏ธ";
const heading = apiSourced
? "Source: Jisc Open Policy Finder API"
: articleVerified
? "Where this article-level answer came from"
: "Policy details were not retrieved";
const linkLabel = apiSourced
? "Check current policy on Open Policy Finder"
: "Check Open Policy Finder";
const evidenceLinks = urls.filter(u => u && u !== verifyUrl).slice(0, 4);
return `
<div class="source-panel ${panelClass}">
<div class="sp-head">
<span class="sp-icon">${icon}</span>
<strong>${heading}</strong>
</div>
<p class="sp-note">${esc(green?.evidence_note || "")}</p>
${green?.policy_updated ? `
<p class="sp-meta">Policy record last updated: <strong>${esc(green.policy_updated)}</strong>
${green.monitoring ? ` · monitoring: ${esc(green.monitoring)}` : ""}</p>` : ""}
${green?.policy_issuer ? `
<p class="sp-meta">Policy set by: <strong>${esc(green.policy_issuer)}</strong>
${green.journal_oa_type ? ` · journal type: ${esc(green.journal_oa_type)}` : ""}</p>` : ""}
${apiSourced ? `<p class="sp-meta">Source data: Jisc Open Policy Finder. Licensed CC BY-NC-ND 4.0. Journal-level policy options may require an applicability check.</p>` : ""}
<div class="sp-links">
${evidenceLinks.map((u, i) =>
`<a href="${esc(safeHttpsUrl(u))}" target="_blank" rel="noopener noreferrer" class="sp-link">Policy evidence ${i + 1}</a>`).join("")}
<a href="${esc(verifyUrl)}" target="_blank" rel="noopener noreferrer" class="sp-link sp-link-primary">
${linkLabel}
</a>
${result?.doi_url ? `<a href="${esc(safeHttpsUrl(result.doi_url))}" target="_blank" rel="noopener noreferrer" class="sp-link">View article</a>` : ""}
</div>
</div>`;
}
// โโ Deposit statement โ must be reproduced verbatim โโโโโโโโโโโโโโโโโโโโโโโ
function renderDepositStatement(green) {
const stmt = green?.deposit_statement;
if (!stmt) return "";
return `
<div class="deposit-stmt">
<div class="ds-head">
<span>๐ Required deposit statement</span>
<button type="button" class="ds-copy" data-stmt="${esc(stmt)}">Copy</button>
</div>
<p class="ds-body">${esc(stmt)}</p>
<p class="ds-note">The publisher requires this exact wording to accompany your deposited file.
Reproduce it verbatim — do not paraphrase.</p>
</div>`;
}
// โโ Khazna deposit status โ three-valued โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function renderKhaznaStatus(k) {
if (!k) return "";
if (!k.checked) {
return `
<div class="khazna-status ks-unknown">
<span class="ks-icon">โ</span>
<div>
<strong>KU repository status not checked</strong>
<p>${esc(k.reason === "no DOI supplied"
? "Enter your article's DOI to check whether it is already in the KU repository, Khazna."
: "The KU repository index is temporarily unavailable, so we could not check. This does not mean the article is absent from Khazna.")}</p>
</div>
</div>`;
}
if (!k.in_khazna) {
return `
<div class="khazna-status ks-absent">
<span class="ks-icon">๐ญ</span>
<div>
<strong>${esc(rbText("Not found in loaded snapshot"))}</strong>
<p>${esc(rbText(k.message || "This DOI was not found in the loaded Khazna snapshot. Confirm in the live portal before creating another record."))}</p>
${k.freshness_note ? `<p class="ks-meta">${esc(k.freshness_note)}</p>` : ""}
</div>
</div>`;
}
const state = k.deposit_state || "undetermined";
const cls = { open: "ks-open", embargoed: "ks-embargo", restricted: "ks-restricted",
closed: "ks-restricted", metadata_only: "ks-gap" }[state] || "ks-unknown";
const icon = { open: "โ
", embargoed: "โณ", restricted: "๐",
closed: "๐", metadata_only: "๐" }[state] || "โ";
return `
<div class="khazna-status ${cls}">
<span class="ks-icon">${icon}</span>
<div>
<strong>${esc(rbText("Found in loaded snapshot"))} — ${esc(state.replace("_", " "))}</strong>
<p>${esc(k.message)}</p>
${k.freshness_note ? `<p class="ks-meta">${esc(k.freshness_note)}</p>` : ""}
${k.embargo_end ? `<p class="ks-meta">Embargo ends: <strong>${esc(k.embargo_end)}</strong></p>` : ""}
${k.portal_url ? `<a href="${esc(safeHttpsUrl(k.portal_url))}" target="_blank" rel="noopener" class="ks-link">View the Khazna record โ</a>` : ""}
</div>
</div>`;
}
// โโ ShareYourPaper deposit call-to-action โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function renderShareYourPaper(result, green) {
if (!result?.shareyourpaper_url || !green?._can_archive) return "";
return `
<div class="syp-card">
<div class="syp-body">
<h4>Deposit this article in minutes</h4>
<p>ShareYourPaper walks you through a legal deposit and checks the file you
upload. It's run by OA.Works, the non-profit whose permissions data powers
this answer.</p>
<a href="${esc(safeHttpsUrl(result.shareyourpaper_url))}" target="_blank" rel="noopener" class="syp-btn">
Open ShareYourPaper โ
</a>
</div>
</div>`;
}
// โโ Subject repositories โ for the ARTICLE, not for data โโโโโโโโโโโโโโโโโ
// Rendered only when OA.Works confirmed a subject repository is permitted.
function renderSubjectRepositories(repos) {
if (!repos?.length) return "";
return `
<div class="card mt-6">
<div class="card-header">
<h2>๐ Subject repositories you may also use</h2>
<p>Your publisher permits deposit in a non-commercial subject repository.
These match this journal's subject area.</p>
</div>
<div class="card-body">
<div class="subj-grid">
${repos.map(r => `
<div class="subj-card">
<div class="subj-head">
<a href="${esc(safeHttpsUrl(r.url))}" target="_blank" rel="noopener">${esc(r.name)}</a>
</div>
<p class="subj-scope">${esc(r.scope)}</p>${rbTrustedAnchor(r.url, rbText("Visit repository"), "btn btn-ghost")}
<dl class="subj-meta">
<div><dt>Versions</dt><dd>${esc(r.versions)}</dd></div>
<div><dt>Review</dt><dd>${esc(r.moderation)}</dd></div>
</dl>
<p class="subj-verified">${esc(r.verified_note || "")}</p>
</div>`).join("")}
</div>
<p class="subj-note">A subject repository does not replace the KU repository,
Khazna — deposit in both so the work counts towards KU's research portfolio.</p>
</div>
</div>`;
}
// โโ Copy-button wiring (call once after rendering) โโโโโโโโโโโโโโโโโโโโโโโโ
function wireCopyButtons(root) {
root.querySelectorAll(".ds-copy").forEach(btn => {
btn.addEventListener("click", async () => {
try {
await navigator.clipboard.writeText(btn.dataset.stmt || "");
const original = btn.textContent;
btn.textContent = "Copied โ";
setTimeout(() => { btn.textContent = original; }, 1800);
} catch {
btn.textContent = "Press Ctrl+C";
}
});
});
}
/* ------------------------------------------------------------------ */
// journal.js - Journal submission tab
const RB_JOURNAL_BASE = "https://nikeshn-researchbee.hf.space";
const KU_OA_LINK = "https://library.ku.ac.ae/oa";
const KU_RATINGS = "https://library.ku.ac.ae/oa/ratings";
// Maps keyword โ KU OA publisher page
// Checks if publisher string STARTS WITH or CONTAINS the keyword
function getKuPubPage(publisher) {
const p = (publisher || "")
.toLowerCase()
.replace(/&/g, "&")
.replace(/\.$/g, "")
.trim();
if (p.includes("elsevier")) return "https://library.ku.ac.ae/oa/elsevier";
if (p.startsWith("ieee") || p.includes("ieee ")) return "https://library.ku.ac.ae/oa/ieee";
if (p.includes("american chemical society")) return "https://library.ku.ac.ae/oa/acs";
if (p.includes("springer") || p.includes("nature portfolio")) return "https://library.ku.ac.ae/oa/SpringerNature";
if (p.includes("taylor") || p.includes("routledge")) return "https://library.ku.ac.ae/oa/TandF";
if (p.includes("wiley")) return "https://library.ku.ac.ae/oa/wiley";
return KU_OA_LINK;
}
function journalTab() {
const form = document.getElementById("journal-form");
const results = document.getElementById("journal-results");
const resetBtn= document.getElementById("journal-reset");
if (!form) return;
form.addEventListener("submit", async (e) => {
e.preventDefault();
const submitBtn = form.querySelector(".btn-primary");
submitBtn.disabled = true;
submitBtn.innerHTML = `<span class="btn-spinner"></span> Analysing...`;
results.innerHTML = "";
results.classList.remove("hidden");
showProgress("journal-progress", [
"Analysing your manuscript...",
"Matching journals to your criteria...",
"Enriching with journal metrics...",
"Building results..."
]);
try {
const manuscript = getManuscriptData();
window.ResearchBee.lastManuscript = manuscript;
setStep("journal-progress", 1);
const data = await callAPI("/api/analyze-journal", { manuscript, model: getModel(), language: getLanguage() }, { requestKey: "discovery" });
setStep("journal-progress", 2);
await new Promise(r => setTimeout(r, 300));
setStep("journal-progress", 3);
const result = data.result;
const total = (result.journals?.length || 0) + (result.extended_list?.length || 0);
doneProgress("journal-progress", `[OK] ${total} journals found - ${result.journals?.length || 0} detailed ยท ${result.extended_list?.length || 0} quick matches`);
setTimeout(() => renderJournalResults(result, results), 400);
} catch (err) {
document.getElementById("journal-progress").innerHTML =
`<div class="p-step" style="color:var(--danger)"><span class="p-dot" style="background:var(--danger)"></span><span>Error: ${esc(err.message)}</span></div>`;
} finally {
submitBtn.disabled = false;
submitBtn.innerHTML = `<span>๐</span> Find best-fit journals`;
}
});
resetBtn?.addEventListener("click", () => {
results.innerHTML = "";
results.classList.add("hidden");
document.getElementById("journal-progress")?.classList.remove("show");
form.reset();
RB_ROOT.scrollIntoView({ behavior: "smooth", block: "start" });
});
}
function getManuscriptData() {
const g = (id) => document.getElementById(id)?.value?.trim() || "";
return {
title: g("j-title"),
abstract: g("j-abstract"),
keywords: g("j-keywords"),
discipline: g("j-discipline"),
article_type: g("j-article-type"),
methods: g("j-methods"),
audience: g("j-audience"),
funder: g("j-funder"),
institution: g("j-institution"),
country: g("j-country"),
apc_budget: g("j-apc"),
oa_preference: g("j-oa-pref"),
ranking_preference: g("j-ranking-pref"),
ranking_source: g("j-ranking-src"),
speed_preference: g("j-speed"),
preferred_journals: g("j-preferred"),
avoid_journals: g("j-avoid"),
repository_target: g("j-repo-target"),
};
}
function renderJournalFinderPolicySection(oa, policyNotes) {
if (oa?.policy_status === "Confirmed") {
return `
<hr class="divider">
<div>
<h5 style="font-size:14px;font-weight:600;margin-bottom:10px">๐ข Verified Green OA / self-archiving by version</h5>
<div class="version-list">
${renderVersionBlock("Submitted version / preprint", oa.preprint)}
${renderVersionBlock("Accepted manuscript (AAM / postprint)", oa.postprint)}
${renderVersionBlock("Published version (Version of Record)", oa.published_version)}
</div>
</div>
${policyNotes ? `<div class="policy-notes">${policyNotes}</div>` : ""}`;
}
return `
<hr class="divider">
<div class="policy-notes" role="note">
<p><strong>Self-archiving rights are not checked in Journal Finder.</strong></p>
<p>Use <strong>License Checking</strong> with the article DOI before depositing a preprint, accepted manuscript, or Version of Record.</p>
${policyNotes ? policyNotes : ""}
</div>`;
}
function renderJournalCard(j, idx) {
const oa = j.green_oa || {};
const policyNotes = [
oa.licence_notes ? `<p><strong>Licence notes:</strong> ${esc(oa.licence_notes)}</p>` : "",
oa.repository_action_note? `<p><strong>Repository action:</strong> ${esc(oa.repository_action_note)}</p>` : "",
oa.evidence_note ? `<p style="font-style:italic;font-size:12px;color:var(--text-muted)">Evidence: ${esc(oa.evidence_note)}</p>` : "",
oa.risk_flag ? `<p class="p-risk">[!] <span><strong>Risk:</strong> ${esc(oa.risk_flag)}</span></p>` : "",
].filter(Boolean).join("");
// Unique ID for async loaders
const uid = `${rbDomKey(j.issn || j.name, "journal")}-${idx}`;
const _q = (j.ranking || {}).quartile || "";
const _h = parseInt((j.ranking || {}).h_index || (j.openalex || {}).h_index || 0) || 0;
const _qrank = {"Q1":1,"Q2":2,"Q3":3,"Q4":4}[_q] || 9;
const _scop = idxFields(j);
return `
<div class="card j-card"
data-fit="${idx}"
data-quartile="${_qrank}"
data-hindex="${_h}"
data-warn="${_scop.warn ? 1 : 0}"
data-qraw="${esc(_q)}">
<div class="j-header">
<div class="j-meta">#${idx + 1} ยท ${esc(j.publisher || "")}${j.issn ? ` ยท ISSN ${esc(j.issn)}` : ""}</div>
<div class="j-title">${rbJournalTitle(j)}</div>${rbJournalLinks(j)}
<div class="badge-row">
${confidenceBadge(j.confidence)}
${j.ranking?.quartile ? quartileBadge(j.ranking.quartile) : ""}
${oaStatusBadge(oa.policy_status || "Not confirmed")}
${diamondBadge(j)}
</div>
</div>
<div class="j-body">
${renderIndexationNotice(j)}
${j.ku_apc_covered ? `
<div class="ku-apc-note">
<div style="display:flex;align-items:flex-start;gap:8px">
<span style="font-size:18px;flex-shrink:0">๐</span>
<div>
<strong>KU Library may cover the APC for this journal.</strong>
<div style="margin-top:4px;font-size:12px;color:#92400e;line-height:1.5">
This journal is <strong>Q1</strong>${_scop.byField.length > 1 ? " in at least one of its subject areas" : ""} and the publisher has a KU OA agreement.
Verify it is in the <strong>top 15% by Scopus</strong> before submitting your OA request.
</div>
<div style="display:flex;gap:8px;flex-wrap:wrap;margin-top:8px">
<a href="${getKuPubPage(j.publisher)}" target="_blank" rel="noopener"
style="font-size:12px;font-weight:600;color:#854d0e;text-decoration:underline">
View ${esc(j.publisher || "publisher")} OA process โ
</a>
<span style="color:#d97706">ยท</span>
<a href="${KU_RATINGS}" target="_blank" rel="noopener"
style="font-size:12px;font-weight:600;color:#854d0e;text-decoration:underline">
Check top 15% ratings โ
</a>
</div>
</div>
</div>
</div>` : ""}
<div class="detail-grid">
<div class="detail-item"><h5>๐ฏ Why it fits</h5><p>${esc(j.fit_reason)}</p></div>
<div class="detail-item"><h5>๐ฅ Audience match</h5><p>${esc(j.audience_match)}</p></div>
<div class="detail-item"><h5>๐ Submission strategy</h5><p>${esc(j.submission_strategy)}</p></div>
<div class="detail-item"><h5>๐ OA / compliance</h5><p>${esc(j.oa_compliance_note)}</p></div>
</div>
${renderRankingBlock(j.ranking, j)}
${renderJournalFinderPolicySection(oa, policyNotes)}
${renderSubmissionChecklist(j.submission_checklist)}
${renderCoverLetterBtn(j, window.ResearchBee.lastManuscript, uid)}
${renderOpenAlexMetrics(j.openalex)}
<!-- Related works accordion โ lazy loaded on click -->
${renderRelatedWorksAccordion(j, uid)}
${renderVerifyLinks(j.verify_links)}
${renderDeeperAnalysisStrip(j.name, j.issn)}
<!-- Altmetric badge โ async loaded after render -->
${renderAltmetricPlaceholder(j.issn)}
</div>
</div>`;
}
function renderExtendedList(list) {
if (!list?.length) return "";
const rows = list.map((j, i) => {
const vl = j.verify_links || {};
const q = j.quartile;
const xf = idxFields(j);
const flag = indexationFlag(j);
return `
<tr data-warn="${xf.warn ? 1 : 0}">
<td>${i + 6}</td>
<td><strong>${esc(j.name)}</strong>${xf.diamond ? `<span class="ext-diamond" title="Diamond OA โ no APC for authors, no subscription for readers.">โ Diamond</span>` : ""}<br><span style="font-size:12px;color:var(--text-muted)">${esc(j.publisher || "")}</span></td>
<td style="font-family:ui-monospace,monospace;font-size:12px">${esc(j.issn || "-")}</td>
<td>${q ? quartileBadge(q) : (flag ? "" : '<span style="color:var(--text-light);font-size:12px">-</span>')}${flag}</td>
<td style="font-size:12px;color:var(--text-muted)">${esc(j.fit_reason || "")}</td>
<td>
<div class="ext-links">
${vl.scopus ? `<a href="${esc(safeHttpsUrl(vl.scopus))}" target="_blank" class="el el-scopus">Scopus</a>` : ""}
${vl.sherpa_romeo? `<a href="${esc(safeHttpsUrl(vl.sherpa_romeo))}" target="_blank" class="el el-sherpa">Open Policy Finder</a>` : ""}
${j.ku_apc_covered ? `
<a href="${getKuPubPage(j.publisher)}" target="_blank" class="el" style="background:#fef9c3;color:#854d0e;border:1px solid #fde047" title="KU APC may apply โ Q1 journal">๐ KU APC</a>
<a href="${KU_RATINGS}" target="_blank" class="el" style="background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-size:10px" title="Check top 15% eligibility">Check rating โ</a>
` : ""}
</div>
</td>
</tr>`;
}).join("");
return `
<div class="extended-wrap">
<button class="ext-toggle" onclick="this.classList.toggle('open');this.nextElementSibling.classList.toggle('show')">
<span>๐ Show ${list.length} more journal suggestions</span>
<span class="ext-arrow">โผ</span>
</button>
<div class="ext-body">
<table class="ext-table">
<thead>
<tr><th>#</th><th>Journal</th><th>ISSN</th><th>Quartile / status</th><th>Why it fits</th><th>Verify</th></tr>
</thead>
<tbody>${rows}</tbody>
</table>
</div>
</div>`;
}
function renderRepoRecommendation(r) {
if (!r) return "";
return `
<div class="card rec-card mt-6">
<div class="card-header"><h2>๐ก Deposit-rights status</h2></div>
<div class="card-body space-y">
<dl class="rec-grid">
${r.permission_status ? `<div class="rec-item"><dt>Permission</dt><dd>${esc(r.permission_status)}</dd></div>` : ""}
${r.embargo_status ? `<div class="rec-item"><dt>Embargo status</dt><dd>${esc(r.embargo_status)}</dd></div>` : ""}
<div class="rec-item"><dt>Best version to deposit</dt><dd>${esc(r.best_version_to_deposit)}</dd></div>
<div class="rec-item"><dt>Best timing</dt><dd>${esc(r.best_timing)}</dd></div>
<div class="rec-item"><dt>Immediate open deposit</dt><dd>${esc(r.immediate_open_deposit_possible)}</dd></div>
<div class="rec-item"><dt>Embargoed deposit needed</dt><dd>${esc(r.embargoed_deposit_needed)}</dd></div>
<div class="rec-item"><dt>Metadata-only first</dt><dd>${esc(r.metadata_only_first)}</dd></div>
</dl>
${r.khazna_note ? `<div class="policy-notes"><p><strong>Khazna note:</strong> ${esc(r.khazna_note)}</p></div>` : ""}
${r.manual_checks_required?.length ? `
<div>
<h5 style="font-size:13px;font-weight:600;margin-bottom:6px">[!] Manual checks required</h5>
<ul class="checks-list">${r.manual_checks_required.map(c => `<li>${esc(c)}</li>`).join("")}</ul>
</div>` : ""}
</div>
</div>`;
}
function renderJournalResults(result, container) {
// Compatibility guard: any v2 response must use the unified renderer even
// if a LibGuides cache or script ordering issue leaves this legacy handler attached.
if (result?.schema_version === "journal_discovery_v2" && typeof rbV18RenderDiscoveryResults === "function") {
return rbV18RenderDiscoveryResults(result, container, "manuscript");
}
const journals = result.journals || [];
const extended = result.extended_list || [];
const total = journals.length + extended.length;
RB_COVER_LETTER_PAYLOADS.clear();
RB_RELATED_WORK_PAYLOADS.clear();
container.innerHTML = `
${renderMascotRow('Here are your best-fit journal recommendations with verified journal metrics. Deposit rights are checked separately with a DOI.')}
<div class="results-header">
<h2 class="results-title">Analysis</h2>
<div class="results-meta">
<span class="count-chip">${total} journals found</span>
<button class="btn btn-ghost" id="journal-reset">โฉ Start over</button>
</div>
</div>
${renderManuscriptUnderstanding(result.manuscript_understanding)}
<h3 style="font-family:Georgia,serif;font-size:22px;margin-bottom:10px">๐ Best-fit journal shortlist</h3>
<div class="sort-bar" id="journal-sort-bar">
<span class="sort-label">Sort by:</span>
<button class="sort-btn active" data-sort="fit" onclick="window.ResearchBee.sortJournalCards('fit',this)">๐ฏ Best fit</button>
<button class="sort-btn" data-sort="quartile" onclick="window.ResearchBee.sortJournalCards('quartile',this)">๐ Quartile first</button>
<button class="sort-btn" data-sort="hindex" onclick="window.ResearchBee.sortJournalCards('hindex',this)">๐ H-index</button>
</div>
<div id="journal-cards-wrap">
${journals.map((j, i) => renderJournalCard(j, i)).join("")}
</div>
${renderExtendedList(extended)}
${renderRepoRecommendation(result.repository_recommendation)}
${result.khazna ? renderKhaznaCard(result.khazna, "article") : ""}
<!-- Trending papers โ based on first journal's top concept -->
${(() => {
const firstJ = (result.journals || [])[0];
const concept = firstJ?.openalex?.top_concept || result.manuscript_understanding?.discipline || "";
const conceptId = firstJ?.openalex?.top_concept_id || "";
return concept ? renderTrendingPapersSection(concept, conceptId) : "";
})()}
${renderNextActions(result.next_actions, result.global_notes)}
${renderHelpCard()}
${renderJournalFinderCard()}
`;
// Wire export buttons
document.getElementById("export-bibtex")?.addEventListener("click", () => exportCitations(result.journals, "bibtex"));
document.getElementById("export-ris")?.addEventListener("click", () => exportCitations(result.journals, "ris"));
// Reset button
document.getElementById("journal-reset")?.addEventListener("click", () => {
container.innerHTML = "";
container.classList.add("hidden");
document.getElementById("journal-progress")?.classList.remove("show");
document.getElementById("journal-form")?.reset();
RB_ROOT.scrollIntoView({ behavior: "smooth", block: "start" });
});
// Safe event wiring after the HTML skeleton is in the DOM.
wireCoverLetterButtons(container);
wireRelatedWorks(container);
// โโ Load Altmetric badges async after render โโโโโโโโโโโโโโโโโโโโโโโโโโโ
journals.forEach(j => {
if (j.issn) loadAltmetricBadge(j.issn);
});
container.scrollIntoView({ behavior: "smooth", block: "start" });
}
// โโ Subject browse mode โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function subjectTab() {
const form = document.getElementById("subject-form");
const results = document.getElementById("subject-results");
if (!form) return;
form.addEventListener("submit", async (e) => {
e.preventDefault();
const input = document.getElementById("s-subject");
const subject = input?.value?.trim();
if (!subject) return;
const submitBtn = form.querySelector(".btn-primary");
submitBtn.disabled = true;
submitBtn.innerHTML = "Searching journals...";
results.innerHTML = "";
results.classList.remove("hidden");
showProgress("subject-progress", [
"Identifying your subject...",
"Searching journal database...",
"Building results..."
]);
try {
setStep("subject-progress", 1);
const data = await callAPI("/api/browse-subject", {
subject, model: getModel(), language: getLanguage()
});
setStep("subject-progress", 2);
doneProgress("subject-progress",
data.result.journals?.length
? `Found ${data.result.journals.length} journals`
: "Search complete"
);
setTimeout(() => renderSubjectResults(data.result, results), 300);
} catch (err) {
document.getElementById("subject-progress").innerHTML =
`<div class="p-step" style="color:var(--danger)">
<span class="p-dot" style="background:var(--danger)"></span>
<span>Error: ${esc(err.message)}</span>
</div>`;
} finally {
submitBtn.disabled = false;
submitBtn.innerHTML = "Search journals";
}
});
document.getElementById("subject-reset")?.addEventListener("click", resetSubject);
}
function resetSubject() {
const results = document.getElementById("subject-results");
if (results) { results.innerHTML = ""; results.classList.add("hidden"); }
document.getElementById("subject-progress")?.classList.remove("show");
document.getElementById("subject-form")?.reset();
}
function renderSubjectQuartileCell(journal) {
return `<div class="subject-q-item">${renderFieldQuartiles(journal.quartiles_by_field || [])}</div>`;
}
function wireSubjectResultActions(container) {
container.querySelector(".rb-subject-retry")?.addEventListener("click", resetSubject);
container.querySelectorAll(".rb-subject-sort").forEach(btn => {
btn.addEventListener("click", () => {
window.ResearchBee.sortSubjectTable(btn.dataset.sort || "hindex", btn);
});
});
container.querySelectorAll(".rb-subject-copy-issn").forEach(btn => {
btn.addEventListener("click", async () => {
const payload = RB_SUBJECT_JOURNAL_PAYLOADS.get(btn.dataset.subjectId || "");
if (!payload?.issn) return;
try {
await navigator.clipboard.writeText(payload.issn);
const original = btn.textContent;
btn.textContent = "Copied!";
setTimeout(() => { btn.textContent = original; }, 1500);
} catch (_) {
btn.textContent = "Copy failed";
}
});
});
container.querySelectorAll(".rb-subject-cover-toggle").forEach(btn => {
btn.addEventListener("click", () => {
window.ResearchBee.showSubjectCoverLetterForm(btn.dataset.subjectId || "", btn);
});
});
container.querySelectorAll(".rb-subject-analyse").forEach(btn => {
btn.addEventListener("click", () => {
const payload = RB_SUBJECT_JOURNAL_PAYLOADS.get(btn.dataset.subjectId || "");
if (payload) window.ResearchBee.analyseFullyFromSubject(payload.name, payload.issn);
});
});
container.querySelectorAll(".rb-subject-cover-submit").forEach(btn => {
btn.addEventListener("click", () => {
window.ResearchBee.submitSubjectCoverLetter(btn.dataset.subjectId || "", btn);
});
});
container.querySelectorAll(".rb-subject-cover-cancel").forEach(btn => {
btn.addEventListener("click", () => {
const uid = btn.dataset.subjectId || "";
const row = document.getElementById(`clform-${uid}`);
if (row) row.style.display = "none";
const toggle = container.querySelector(`.rb-subject-cover-toggle[data-subject-id="${uid}"]`);
if (toggle) toggle.textContent = "Cover letter";
});
});
}
function renderSubjectResults(result, container) {
// Compatibility guard matching manuscript mode.
if (result?.schema_version === "journal_discovery_v2" && typeof rbV18RenderDiscoveryResults === "function") {
return rbV18RenderDiscoveryResults(result, container, "subject");
}
const journals = result.journals || [];
RB_SUBJECT_JOURNAL_PAYLOADS.clear();
if (result.confidence === "not_found" || !journals.length) {
container.innerHTML = `
<div class="subj-notfound">
<div class="subj-notfound-icon">?</div>
<h3>No journals found</h3>
<p>${esc(result.user_message || "Try a different subject term.")}</p>
<button type="button" class="btn btn-ghost rb-subject-retry">Try again</button>
</div>`;
wireSubjectResultActions(container);
return;
}
const banner = result.user_message
? `<div class="subj-banner">
<span class="subj-banner-icon">${result.confidence === "near" ? "Corrected:" : "Note:"}</span>
${esc(result.user_message)}
</div>`
: "";
const rows = journals.map((journal, index) => {
const verify = journal.verify_links || {};
const uid = `${rbDomKey(journal.issn || journal.name, "subject")}-${index}`;
RB_SUBJECT_JOURNAL_PAYLOADS.set(uid, {
name: String(journal.name || ""),
publisher: String(journal.publisher || ""),
issn: String(journal.issn || ""),
});
const quartile = journal.quartile || "";
const quartileRank = {Q1: 1, Q2: 2, Q3: 3, Q4: 4}[quartile] || 9;
const hIndex = Number(journal.h_index || 0) || 0;
const oaRank = journal.open_access === "Yes" ? 0 : 1;
return `
<tr id="row-${uid}" data-quartile="${quartileRank}" data-hindex="${hIndex}"
data-oa="${oaRank}" data-qraw="${esc(quartile)}" ${quartile === "Q1" ? 'class="q1-row"' : ""}>
<td style="color:var(--text-muted);font-size:12px;font-family:ui-monospace,monospace">${index + 1}</td>
<td>
<strong style="font-size:13px">${esc(journal.name)}</strong>
<div style="font-size:11px;color:var(--text-muted);margin-top:2px">${esc(journal.publisher || "")}</div>
</td>
<td style="font-family:ui-monospace,monospace;font-size:12px">${esc(journal.issn || "-")}</td>
<td>${renderSubjectQuartileCell(journal)}</td>
<td style="font-family:ui-monospace,monospace;font-size:12px">${journal.h_index || "-"}</td>
<td>
<div style="display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px">
${verify.scimago ? `<a href="${esc(safeHttpsUrl(verify.scimago))}" target="_blank" rel="noopener noreferrer" class="el el-scopus">SCImago</a>` : ""}
${verify.sherpa_romeo ? `<a href="${esc(safeHttpsUrl(verify.sherpa_romeo))}" target="_blank" rel="noopener noreferrer" class="el el-sherpa">Open Policy Finder</a>` : ""}
${verify.doaj ? `<a href="${esc(safeHttpsUrl(verify.doaj))}" target="_blank" rel="noopener noreferrer" class="el" style="background:#fef3c7;color:#92400e">DOAJ</a>` : ""}
${verify.scopus_sources ? `<a href="${esc(safeHttpsUrl(verify.scopus_sources))}" target="_blank" rel="noopener noreferrer" class="el" style="background:#e0e7ff;color:#3730a3">Scopus</a>` : ""}
${journal.issn ? `<button type="button" class="copy-chip copy-chip-sm rb-subject-copy-issn" data-subject-id="${uid}" title="Copy ISSN">${esc(journal.issn)} ๐</button>` : ""}
${journal.ku_apc_covered ? `
<a href="${getKuPubPage(journal.publisher)}" target="_blank" rel="noopener noreferrer" class="el" style="background:#fef9c3;color:#854d0e;border:1px solid #fde047" title="KU APC may apply โ verify title-level eligibility and top-15% requirements.">๐ KU APC candidate</a>
<a href="${KU_RATINGS}" target="_blank" rel="noopener noreferrer" class="el" style="background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-size:10px">Check rating โ</a>
` : ""}
</div>
<div style="display:flex;gap:6px;flex-wrap:wrap">
<button type="button" class="el rb-subject-cover-toggle" data-subject-id="${uid}"
style="background:#e0e7ff;color:#3730a3;cursor:pointer;border:none">Cover letter</button>
<button type="button" class="el rb-subject-analyse" data-subject-id="${uid}"
style="background:#d1fae5;color:#065f46;cursor:pointer;border:none">Analyse fully</button>
</div>
</td>
</tr>
<tr id="clform-${uid}" style="display:none">
<td colspan="6" style="padding:12px 14px;background:#f8f9fc;border-top:none">
<div class="subj-cl-form">
<p style="font-size:13px;font-weight:600;margin-bottom:10px">Generate cover letter for <em>${esc(journal.name)}</em></p>
<div class="form-grid form-2col" style="max-width:700px;gap:10px">
<div class="form-group">
<label style="font-size:12px" for="cl-title-${uid}">Manuscript title <span class="req">*</span></label>
<input id="cl-title-${uid}" type="text" placeholder="Your manuscript title">
</div>
<div class="form-group">
<label style="font-size:12px" for="cl-author-${uid}">Your name (optional)</label>
<input id="cl-author-${uid}" type="text" placeholder="e.g. Dr. Nikesh">
</div>
<div class="form-group form-full">
<label style="font-size:12px" for="cl-abstract-${uid}">Abstract <span class="req">*</span></label>
<textarea id="cl-abstract-${uid}" rows="4" placeholder="Paste your abstract here..."></textarea>
</div>
</div>
<div style="display:flex;gap:8px;margin-top:10px">
<button type="button" class="btn btn-primary rb-subject-cover-submit" data-subject-id="${uid}"
style="max-width:220px;font-size:13px;padding:10px 16px">Generate & download</button>
<button type="button" class="btn btn-ghost rb-subject-cover-cancel" data-subject-id="${uid}"
style="font-size:13px">Cancel</button>
</div>
<div id="cl-status-${uid}" style="margin-top:8px" aria-live="polite"></div>
</div>
</td>
</tr>`;
}).join("");
container.innerHTML = `
${renderMascotRow('Here are the top journals for ' + esc(result.normalised) + '.')}
<div class="results-header">
<h2 class="results-title">Top journals: ${esc(result.normalised)}</h2>
<div class="results-meta">
<span class="count-chip">${journals.length} journals</span>
<button type="button" class="btn btn-ghost" id="subject-reset-btn">Reset</button>
</div>
</div>
${banner}
<div class="sort-bar" id="subj-sort-bar">
<span class="sort-label">Sort by:</span>
<button type="button" class="sort-btn active rb-subject-sort" data-sort="hindex">๐ H-index</button>
<button type="button" class="sort-btn rb-subject-sort" data-sort="quartile">๐ Quartile first</button>
<button type="button" class="sort-btn rb-subject-sort" data-sort="oa">๐ OA first</button>
</div>
<div class="card" style="overflow:hidden;margin-bottom:20px">
<table class="ext-table" style="width:100%" id="subj-table">
<thead><tr><th>#</th><th>Journal</th><th>ISSN</th><th>Quartile by field</th><th>H-index</th><th>Verify & Actions</th></tr></thead>
<tbody id="subj-tbody">${rows}</tbody>
</table>
</div>
<div class="subj-tip">
<strong>Want deeper manuscript-fit analysis?</strong>
Switch to <em>Analyse manuscript</em> mode above. Use <em>License Checking</em> with the article DOI for verified deposit rights.
</div>
${renderSubjectDeeperAnalysisStrip()}
${renderJournalFinderCard()}
${renderTrendingPapersSection(result.normalised, result.scimago_concept_id || "")}
`;
document.getElementById("subject-reset-btn")?.addEventListener("click", resetSubject);
wireSubjectResultActions(container);
container.scrollIntoView({ behavior: "smooth", block: "start" });
}
// โโ Export citations โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
async function exportCitations(journals, format) {
try {
const data = await callAPI("/api/export-citations", { journals, format });
const blob = new Blob([data.content], { type: "text/plain" });
const url = URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url; a.download = data.filename; a.click();
URL.revokeObjectURL(url);
} catch(err) {
if (rbStaleRequest(err)) return;
alert("Export failed: " + err.message);
}
}
// โโ Cover letter generator โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function renderGeneratedCoverLetter(container, result, journalName) {
const card = document.createElement("div");
card.className = "card";
card.style.cssText = "margin-top:10px;border:1.5px solid var(--primary-light)";
const header = document.createElement("div");
header.className = "card-header";
header.style.background = "var(--primary-xlight)";
const heading = document.createElement("h2");
heading.style.fontSize = "16px";
heading.textContent = `โ Cover letter โ ${journalName}`;
const meta = document.createElement("p");
meta.style.fontSize = "12px";
meta.append(document.createTextNode("Subject line: "));
const subject = document.createElement("strong");
subject.textContent = String(result.subject_line || "");
meta.appendChild(subject);
if (result.word_count) meta.append(document.createTextNode(` ยท ${result.word_count} words`));
header.append(heading, meta);
const body = document.createElement("div");
body.className = "card-body";
const pre = document.createElement("pre");
pre.style.cssText = "white-space:pre-wrap;font-family:system-ui,sans-serif;font-size:13px;line-height:1.7";
pre.textContent = String(result.cover_letter || "");
const actions = document.createElement("div");
actions.style.cssText = "margin-top:12px;display:flex;gap:8px";
const download = document.createElement("button");
download.type = "button";
download.className = "btn btn-ghost";
download.style.fontSize = "12px";
download.textContent = "โฌ Download .txt";
download.addEventListener("click", () => {
window.ResearchBee.downloadCoverLetter(pre.textContent || "", journalName);
});
const copy = document.createElement("button");
copy.type = "button";
copy.className = "btn btn-ghost";
copy.style.fontSize = "12px";
copy.textContent = "๐ Copy";
copy.addEventListener("click", async () => {
try {
await navigator.clipboard.writeText(pre.textContent || "");
copy.textContent = "Copied!";
setTimeout(() => { copy.textContent = "๐ Copy"; }, 1600);
} catch (_) {
copy.textContent = "Copy failed";
}
});
actions.append(download, copy);
body.append(pre, actions);
card.append(header, body);
container.replaceChildren(card);
}
window.ResearchBee.generateCoverLetter = async function(payload, btn) {
const coverId = btn?.dataset?.coverId || "";
const container = document.getElementById(`cover-letter-${coverId}`);
if (!container || !payload) return;
btn.disabled = true;
btn.textContent = "Generating...";
setInlineMessage(container, "Writing cover letter...");
try {
const data = await callAPI("/api/cover-letter", {
manuscript_title: payload.manuscriptTitle,
abstract: payload.abstract,
journal_name: payload.journalName,
publisher: payload.publisher,
article_type: payload.articleType,
discipline: payload.discipline,
language: getLanguage(),
model: getModel(),
});
renderGeneratedCoverLetter(container, data.result || {}, payload.journalName);
rbApplyUiLanguage(container);
} catch (err) {
setInlineMessage(container, `Error: ${String(err.message || err)}`, "error");
} finally {
btn.disabled = false;
btn.textContent = rbText("โ Generate cover letter");
}
};
window.ResearchBee.downloadCoverLetter = function(text, journalName) {
const blob = new Blob([String(text || "")], { type: "text/plain" });
const url = URL.createObjectURL(blob);
const link = document.createElement("a");
link.href = url;
const safeName = String(journalName || "journal")
.replace(/[^a-zA-Z0-9 _-]/g, "")
.trim()
.replace(/\s+/g, "-")
.toLowerCase()
.slice(0, 60) || "journal";
link.download = `cover-letter-${safeName}.txt`;
link.click();
URL.revokeObjectURL(url);
};
// โโ Subject browse cover letter โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
window.ResearchBee.showSubjectCoverLetterForm = function(uid, btn) {
const row = document.getElementById(`clform-${uid}`);
if (!row) return;
const isVisible = row.style.display !== "none";
row.style.display = isVisible ? "none" : "table-row";
if (btn) btn.textContent = isVisible ? "Cover letter" : "Hide form";
};
window.ResearchBee.submitSubjectCoverLetter = async function(uid, btn) {
const payload = RB_SUBJECT_JOURNAL_PAYLOADS.get(uid);
if (!payload) return;
const title = document.getElementById(`cl-title-${uid}`)?.value?.trim();
const abstract = document.getElementById(`cl-abstract-${uid}`)?.value?.trim();
const author = document.getElementById(`cl-author-${uid}`)?.value?.trim();
const status = document.getElementById(`cl-status-${uid}`);
if (!title || !abstract) {
setInlineMessage(status, "Please fill in title and abstract.", "error");
return;
}
btn.disabled = true;
btn.textContent = "Generating...";
setInlineMessage(status, "Writing cover letter...");
try {
const data = await callAPI("/api/cover-letter", {
manuscript_title: title,
abstract,
journal_name: payload.name,
publisher: payload.publisher,
author_name: author,
language: getLanguage(),
model: getModel(),
});
const result = data.result || {};
const full = `Subject: ${result.subject_line || ""}\n\n${result.cover_letter || ""}`;
window.ResearchBee.downloadCoverLetter(full, payload.name);
setInlineMessage(status, "Downloaded!", "success");
setTimeout(() => { if (status) status.replaceChildren(); }, 3000);
} catch (err) {
setInlineMessage(status, `Error: ${String(err.message || err)}`, "error");
} finally {
btn.disabled = false;
btn.textContent = "Generate & download";
}
};
// โโ Analyse fully from subject browse โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
window.ResearchBee.analyseFullyFromSubject = function(jName, jIssn) {
const prefField = document.getElementById("j-preferred");
if (prefField) prefField.value = jName;
switchMode("manuscript");
const form = document.getElementById("journal-form");
if (form) {
let notice = document.getElementById("analyse-notice");
if (!notice) {
notice = document.createElement("div");
notice.id = "analyse-notice";
notice.className = "subj-banner";
notice.style.marginBottom = "16px";
form.parentNode.insertBefore(notice, form);
}
const label = document.createElement("span");
label.className = "subj-banner-icon";
label.textContent = "Pre-filled:";
const name = document.createElement("strong");
name.textContent = String(jName || "");
notice.replaceChildren(label, document.createTextNode(" "), name,
document.createTextNode(" added to preferred journals. Add your manuscript details and submit."));
}
RB_ROOT.querySelector(".tabs-bar")?.scrollIntoView({ behavior: "smooth", block: "start" });
};
// โโ Manuscript Analysis โ sort journal cards โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
window.ResearchBee.sortJournalCards = function(mode, btn) {
const wrap = document.getElementById("journal-cards-wrap");
if (!wrap) return;
// Update active button
RB_ROOT.querySelectorAll("#journal-sort-bar .sort-btn").forEach(b => b.classList.remove("active"));
btn.classList.add("active");
const cards = Array.from(wrap.querySelectorAll(".j-card"));
cards.sort((a, b) => {
if (mode === "fit") return +a.dataset.fit - +b.dataset.fit;
if (mode === "quartile") return +a.dataset.quartile - +b.dataset.quartile;
if (mode === "hindex") return +b.dataset.hindex - +a.dataset.hindex;
return 0;
});
// Re-number and re-append
cards.forEach((card, i) => {
const meta = card.querySelector(".j-meta");
if (meta) {
meta.textContent = meta.textContent.replace(/^#\d+/, `#${i + 1}`);
}
wrap.appendChild(card);
});
};
// โโ Subject Browse โ sort table rows โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
window.ResearchBee.sortSubjectTable = function(mode, btn) {
const tbody = document.getElementById("subj-tbody");
if (!tbody) return;
RB_ROOT.querySelectorAll("#subj-sort-bar .sort-btn").forEach(b => b.classList.remove("active"));
btn.classList.add("active");
const rows = Array.from(tbody.querySelectorAll("tr[data-quartile]"));
rows.sort((a, b) => {
if (mode === "quartile") {
const qDiff = +a.dataset.quartile - +b.dataset.quartile;
if (qDiff !== 0) return qDiff;
return +b.dataset.hindex - +a.dataset.hindex; // secondary: h-index desc
}
if (mode === "hindex") return +b.dataset.hindex - +a.dataset.hindex;
if (mode === "oa") return +a.dataset.oa - +b.dataset.oa;
return 0;
});
// Re-number rank column
rows.forEach((row, i) => {
const rankCell = row.querySelector("td:first-child");
if (rankCell) rankCell.textContent = i + 1;
tbody.appendChild(row);
});
};
/* ------------------------------------------------------------------ */
// license.js - License checking tab
const RB_LICENSE_BASE = "https://nikeshn-researchbee.hf.space";
// โโ Journal name auto-lookup โ multi-suggestion โโโโโโโโโโโโโโโโโโโโโโโโโโ
let _lookupTimer = null;
function initJournalLookup() {
const nameInput = document.getElementById("l-journal");
const issnInput = document.getElementById("l-issn");
const pubInput = document.getElementById("l-publisher");
if (!nameInput) return;
const chipWrap = document.createElement("div");
chipWrap.id = "journal-lookup-wrap";
chipWrap.style.cssText = "margin-top:6px;";
nameInput.parentNode.appendChild(chipWrap);
nameInput.addEventListener("input", () => {
clearTimeout(_lookupTimer);
chipWrap.innerHTML = "";
rbCancelRequest("journal-lookup");
[issnInput, pubInput].forEach(field => { if (field?.dataset.autofilled === "1") { field.value = ""; delete field.dataset.autofilled; } });
const val = nameInput.value.trim();
if (val.length < 4) return;
_lookupTimer = setTimeout(() => runLookup(val, nameInput, issnInput, pubInput, chipWrap), 650);
});
}
async function runLookup(name, nameInput, issnInput, pubInput, chipWrap) {
chipWrap.innerHTML = `<span style="font-size:11px;color:var(--text-muted);font-style:italic">๐ Searching journal database...</span>`;
try {
const data = await rbFetchJson(`${RB_LICENSE_BASE}/api/lookup-journal-meta?name=${encodeURIComponent(name)}`, {}, { requestKey: "journal-lookup", timeoutMs: 20000 });
if (nameInput.value.trim() !== name) return;
const suggestions = data.suggestions || [];
const llmSuggestions = data.llm_suggestions|| [];
// โโ SCImago/OpenAlex suggestions โ fill name + ISSN + publisher โโโโโโโ
if (suggestions.length) {
const items = suggestions.map((s, i) => {
const icon = s.confidence === "high" ? "โ" : "~";
const bg = s.confidence === "high" ? "#f0fdf4" : "#fffbeb";
const bc = s.confidence === "high" ? "#6ee7b7" : "#fcd34d";
const tc = s.confidence === "high" ? "var(--success)" : "#92400e";
return `
<button type="button" class="lookup-suggestion-chip" data-idx="${i}" style="
display:flex;align-items:flex-start;gap:8px;width:100%;
background:${bg};border:1.5px solid ${bc};border-radius:9px;
padding:7px 11px;font-family:system-ui,sans-serif;cursor:pointer;
text-align:left;transition:box-shadow .15s;margin-bottom:4px;
"
onmouseover="this.style.boxShadow='0 2px 8px rgba(0,0,0,.1)'"
onmouseout="this.style.boxShadow='none'">
<span style="color:${tc};font-weight:700;font-size:12px;flex-shrink:0;margin-top:1px">${icon}</span>
<span style="flex:1;min-width:0;">
<span style="font-size:12.5px;font-weight:600;color:#1e293b;display:block;line-height:1.3">
${esc(s.title)}
</span>
<span style="font-size:11px;color:var(--text-muted);display:flex;gap:8px;margin-top:2px;flex-wrap:wrap">
${s.issn ? `<span>ISSN: ${esc(s.issn)}</span>` : ""}
${s.publisher? `<span>${esc(s.publisher)}</span>` : ""}
<span style="opacity:.6">${esc(s.source)}</span>
</span>
</span>
</button>`;
}).join("");
chipWrap.innerHTML = `
<div style="font-size:11px;color:var(--text-muted);margin-bottom:4px;font-weight:500">
๐ Select a journal:
</div>
${items}
<button type="button" onclick="document.getElementById('journal-lookup-wrap').innerHTML=''" style="
background:none;border:none;font-size:11px;color:var(--text-muted);
cursor:pointer;padding:2px 4px;margin-top:2px;
">โ Dismiss</button>`;
// Wire click handlers
chipWrap.querySelectorAll(".lookup-suggestion-chip").forEach(btn => {
btn.addEventListener("click", () => {
const idx = parseInt(btn.dataset.idx);
const s = suggestions[idx];
// Fill journal name field (Option A โ fills all fields)
nameInput.value = s.title;
// Fill ISSN + publisher from verified source
issnInput.value = s.issn || "";
issnInput.dataset.autofilled = "1";
pubInput.value = s.publisher || "";
pubInput.dataset.autofilled = "1";
// Show confirmed chip
chipWrap.innerHTML = `
<div style="
display:inline-flex;align-items:center;gap:6px;
background:var(--success-light);border:1px solid #6ee7b7;
border-radius:8px;padding:4px 10px;font-size:11.5px;
color:var(--success);font-family:system-ui,sans-serif;
">
<span style="font-weight:700">โ</span>
<span>Filled from <strong>${esc(s.source)}</strong></span>
<button type="button" onclick="window.ResearchBee.clearAutofill()" style="
background:none;border:none;cursor:pointer;color:var(--success);
font-size:13px;padding:0 2px;opacity:.7;line-height:1;
" title="Clear">ร</button>
</div>`;
});
});
// โโ LLM name suggestions โ fill name only, re-run lookup for ISSN โโโโ
} else if (llmSuggestions.length) {
const items = llmSuggestions.map((s, i) => `
<button type="button" class="lookup-llm-chip" data-idx="${i}" style="
display:inline-flex;align-items:center;gap:6px;
background:#fef3c7;border:1.5px solid #fcd34d;border-radius:20px;
padding:4px 12px;font-size:12px;color:#92400e;
font-family:system-ui,sans-serif;cursor:pointer;
font-weight:500;transition:background .15s;margin:2px;
"
onmouseover="this.style.background='#fde68a'"
onmouseout="this.style.background='#fef3c7'">
๐ก ${esc(s.name)}
</button>`).join("");
chipWrap.innerHTML = `
<div style="font-size:11px;color:var(--text-muted);margin-bottom:5px;font-weight:500">
Did you mean one of these?
</div>
<div style="display:flex;flex-wrap:wrap;gap:4px">${items}</div>
<div style="font-size:10.5px;color:var(--text-light);margin-top:4px">
โน๏ธ Selecting will search for ISSN automatically
</div>`;
// Wire LLM chip clicks โ fill name only, re-run Layer 1 for ISSN
chipWrap.querySelectorAll(".lookup-llm-chip").forEach(btn => {
btn.addEventListener("click", () => {
const idx = parseInt(btn.dataset.idx);
const s = llmSuggestions[idx];
nameInput.value = s.name;
chipWrap.innerHTML = `<span style="font-size:11px;color:var(--text-muted);font-style:italic">๐ Looking up ISSN for ${esc(s.name)}...</span>`;
// Re-run Layer 1 with corrected name
runLookup(s.name, nameInput, issnInput, pubInput, chipWrap);
});
});
} else {
chipWrap.innerHTML = "";
}
} catch (e) {
if (!rbStaleRequest(e) && nameInput.value.trim() === name) chipWrap.innerHTML = "";
}
}
// Clear auto-fill
window.ResearchBee.clearAutofill = function() {
const issnInput = document.getElementById("l-issn");
const pubInput = document.getElementById("l-publisher");
const chipWrap = document.getElementById("journal-lookup-wrap");
if (issnInput) { issnInput.value = ""; delete issnInput.dataset.autofilled; }
if (pubInput) { pubInput.value = ""; delete pubInput.dataset.autofilled; }
if (chipWrap) chipWrap.innerHTML = "";
};
// โโ License tab โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function licenseTab() {
const form = document.getElementById("license-form");
const results = document.getElementById("license-results");
if (!form) return;
let requestGeneration = 0;
form.addEventListener("reset", () => {
requestGeneration += 1;
rbCancelRequest("license");
clearTimeout(_lookupTimer); _lookupTimer = null;
rbCancelRequest("journal-lookup");
window.ResearchBee.clearAutofill();
rbResetFormUi("license");
});
// Init journal lookup on load
initJournalLookup();
// Clear autofill flags when user manually edits ISSN or publisher
document.getElementById("l-issn")?.addEventListener("input", (e) => {
if (e.isTrusted) delete e.target.dataset.autofilled;
});
document.getElementById("l-publisher")?.addEventListener("input", (e) => {
if (e.isTrusted) delete e.target.dataset.autofilled;
});
form.addEventListener("submit", async (e) => {
e.preventDefault();
const chosenInput = getLicenseData();
const doiVal = chosenInput.doi;
const jrnVal = chosenInput.journal_name;
const issnVal = chosenInput.issn;
if (!doiVal && !jrnVal && !issnVal) {
results.classList.remove("hidden");
const message = RB_ROOT.dataset.rbShareMode === "journal"
? "Enter a journal name or ISSN to continue."
: "Enter an article DOI or URL to continue.";
results.innerHTML = `<div class="card"><div class="card-body"><p role="alert" style="color:var(--danger)">${esc(rbText(message))}</p></div></div>`;
document.getElementById(RB_ROOT.dataset.rbShareMode === "journal" ? "l-journal" : "l-doi")?.focus();
return;
}
const generation = ++requestGeneration;
const submitBtns = form.querySelectorAll(".btn-primary");
submitBtns.forEach(b => { b.disabled = true; b.innerHTML = `๐ Checking policy...`; });
results.innerHTML = "";
results.classList.remove("hidden");
showProgress("license-progress", [
doiVal ? "Resolving DOI..." : "Resolving the journal record...",
doiVal ? "Checking OA.Works Permissions + Khazna..." : "Querying the Jisc Open Policy Finder API...",
doiVal ? "Building deposit guidance..." : "Preparing the journal-level policy options..."
], { requestKey: "license" });
try {
const license_input = getLicenseData();
setStep("license-progress", 1);
const data = await callAPI("/api/check-license", {
license_input, model: getModel(), language: getLanguage()
}, { requestKey: "license" });
if (generation !== requestGeneration) return;
setStep("license-progress", 2);
doneProgress("license-progress", "[OK] Policy check complete");
renderLicenseResults(data.result, results);
rbApplyUiLanguage(results);
} catch (err) {
if (generation !== requestGeneration || rbStaleRequest(err)) return;
failProgress("license-progress", err);
} finally {
if (generation !== requestGeneration) return;
rbStopProgress("license-progress");
results.setAttribute("aria-busy", "false");
submitBtns.forEach(b => {
b.disabled = false;
b.innerHTML = `๐ก <span>${rbText("Check Green OA policy")}</span>`;
});
}
});
}
function getLicenseData() {
const g = id => document.getElementById(id)?.value?.trim() || "";
return {
doi: RB_ROOT.dataset.rbShareMode === "journal" ? "" : g("l-doi"),
journal_name: RB_ROOT.dataset.rbShareMode === "article" ? "" : g("l-journal"),
issn: RB_ROOT.dataset.rbShareMode === "article" ? "" : g("l-issn"),
publisher: RB_ROOT.dataset.rbShareMode === "article" ? "" : g("l-publisher"),
manuscript_version: g("l-version"),
funder: g("l-funder"),
intended_repository: g("l-repo"),
intended_licence: g("l-licence"),
notes: g("l-notes"),
};
}
function renderPolicyCard(j, sourceMode, result) {
const oa = j.green_oa || {};
const policyHeading = sourceMode === "journal_api"
? "๐ Open Policy Finder options by article version"
: "๐ข Green OA / self-archiving by version";
const policyNotes = [
oa.licence_notes ? `<p><strong>Licence notes:</strong> ${esc(oa.licence_notes)}</p>` : "",
oa.repository_action_note ? `<p><strong>Repository action:</strong> ${esc(oa.repository_action_note)}</p>` : "",
oa.evidence_note ? `<p style="font-style:italic;font-size:12px;color:var(--text-muted)">Evidence: ${esc(oa.evidence_note)}</p>` : "",
oa.risk_flag ? `<p class="p-risk">[!] <span><strong>Risk:</strong> ${esc(oa.risk_flag)}</span></p>` : "",
].filter(Boolean).join("");
const vl = j.verify_links || {};
const licenseVerifyLinks = {
sherpa_romeo: vl.sherpa_romeo,
doaj: vl.doaj,
scopus: vl.scopus,
openalex: vl.openalex,
};
return `
<div class="card j-card">
<div class="j-header">
<div class="j-meta">${esc(j.publisher || "")}${j.issn ? ` ยท ISSN ${esc(j.issn)}` : ""}</div>
<div class="j-title">${rbJournalTitle(j)}</div>${rbJournalLinks(j)}
<div class="badge-row">
${provenanceBadge(oa, sourceMode)}
</div>
</div>
<div class="j-body">
<div>
<h5 style="font-size:14px;font-weight:600;margin-bottom:10px">${policyHeading}</h5>
${sourceMode === "journal" && oa.policy_status !== "Confirmed" ? `
<div class="policy-notes"><p><strong>No journal-level policy was retrieved.</strong> ${esc(result?.global_notes || "Use the linked Open Policy Finder search to check the current record.")}</p></div>` : `
<div class="version-list">
${renderVersionBlock("Submitted version / preprint", oa.preprint)}
${renderVersionBlock("Accepted manuscript (AAM / postprint)", oa.postprint)}
${renderVersionBlock("Published version (Version of Record)", oa.published_version)}
</div>`}
</div>
${rbRenderPolicyEvaluation(oa.policy_evaluation || result?.repository_recommendation?.policy_evaluation)}
${renderDepositStatement(oa)}
${policyNotes ? `<div class="policy-notes">${policyNotes}</div>` : ""}
${renderSourcePanel(oa, result)}
${renderVerifyLinks(licenseVerifyLinks, false)}
</div>
</div>`;
}
function renderDepositRecommendation(r) {
if (!r) return "";
return `
<div class="card rec-card mt-6">
<div class="card-header"><h2>๐ฆ Repository deposit recommendation</h2></div>
<div class="card-body space-y">
<dl class="rec-grid">
${r.permission_status ? `<div class="rec-item"><dt>Permission</dt><dd>${esc(r.permission_status)}</dd></div>` : ""}
${r.embargo_status ? `<div class="rec-item"><dt>Embargo status</dt><dd>${esc(r.embargo_status)}</dd></div>` : ""}
<div class="rec-item"><dt>Best version to deposit</dt><dd>${esc(r.best_version_to_deposit)}</dd></div>
<div class="rec-item"><dt>Best timing</dt><dd>${esc(r.best_timing)}</dd></div>
<div class="rec-item"><dt>Immediate open deposit</dt><dd>${esc(r.immediate_open_deposit_possible)}</dd></div>
<div class="rec-item"><dt>Embargoed deposit needed</dt><dd>${esc(r.embargoed_deposit_needed)}</dd></div>
<div class="rec-item"><dt>Metadata-only first</dt><dd>${esc(r.metadata_only_first)}</dd></div>
</dl>
${r.khazna_note ? `<div class="policy-notes"><p><strong>Khazna note:</strong> ${esc(r.khazna_note)}</p></div>` : ""}
${r.manual_checks_required?.length ? `
<div>
<h5 style="font-size:13px;font-weight:600;margin-bottom:6px">[!] Manual checks required</h5>
<ul class="checks-list">${r.manual_checks_required.map(c => `<li>${esc(c)}</li>`).join("")}</ul>
</div>` : ""}
</div>
</div>`;
}
function renderLicenseResults(result, container) {
const journals = result.journals || [];
const sourceMode = result.source_mode || "journal";
const firstOA = journals[0]?.green_oa || {};
const intro = sourceMode === "doi"
? "Here are your verified self-archiving rights for this article."
: sourceMode === "journal_api"
? "Here are the journal-level policy options retrieved from the authenticated Jisc Open Policy Finder API. Select the option that applies before depositing."
: "I could not retrieve a policy summary for this journal โ here is what to check.";
container.innerHTML = `
${renderMascotRow(intro)}
<div class="results-header">
<h2 class="results-title">Policy result</h2>
<div class="results-meta">
<button class="btn btn-ghost" id="license-reset">โฉ Start over</button>
</div>
</div>
<h3 style="font-family:Georgia,serif;font-size:20px;margin-bottom:14px">๐ข Green OA / self-archiving by version</h3>
${journals.map(j => renderPolicyCard(j, sourceMode, result)).join("")}
${renderKhaznaStatus(result.khazna_status)}
${renderDepositRecommendation(result.repository_recommendation)}
${renderShareYourPaper(result, firstOA)}
${renderSubjectRepositories(result.subject_repositories)}
${result.khazna ? renderKhaznaCard(result.khazna, "article") : ""}
${renderNextActions(result.next_actions, result.global_notes)}
${renderHelpCard()}
`;
document.getElementById("license-reset")?.addEventListener("click", () => {
container.innerHTML = "";
container.classList.add("hidden");
document.getElementById("license-progress")?.classList.remove("show");
document.getElementById("license-form")?.reset();
const dEl = document.getElementById("l-doi"); if (dEl) dEl.value = "";
document.getElementById("journal-lookup-wrap") && (document.getElementById("journal-lookup-wrap").innerHTML = "");
RB_ROOT.scrollIntoView({ behavior: "smooth", block: "start" });
});
wireCopyButtons(container);
container.scrollIntoView({ behavior: "smooth", block: "start" });
}
/* ------------------------------------------------------------------ */
// repository.js - Data repository tab
function repositoryTab() {
const form = document.getElementById("repo-form");
const results = document.getElementById("repo-results");
if (!form) return;
let requestGeneration = 0;
form.addEventListener("reset", () => {
requestGeneration += 1;
rbCancelRequest("repository");
rbResetFormUi("repo");
});
form.addEventListener("submit", async (e) => {
e.preventDefault();
const generation = ++requestGeneration;
const submitBtn = form.querySelector('.btn-primary[type="submit"]');
submitBtn.disabled = true;
submitBtn.innerHTML = ` Finding repositories...`;
results.innerHTML = "";
results.classList.remove("hidden");
showProgress("repo-progress", [
"Analysing your dataset...",
"Matching repositories...",
"Building recommendations..."
], { requestKey: "repository" });
try {
const dataset = getDatasetData();
setStep("repo-progress", 1);
const data = await callAPI("/api/find-repository", { dataset, model: getModel(), language: getLanguage() }, { requestKey: "repository" });
if (generation !== requestGeneration) return;
setStep("repo-progress", 2);
doneProgress("repo-progress", `[OK] Repository search complete`);
renderRepoResults(data.result, results);
rbApplyUiLanguage(results);
} catch (err) {
if (generation !== requestGeneration || rbStaleRequest(err)) return;
failProgress("repo-progress", err);
} finally {
if (generation !== requestGeneration) return;
rbStopProgress("repo-progress");
submitBtn.disabled = false;
submitBtn.innerHTML = `<span id="btn-repo-submit">${rbText("Find best repositories")}</span>`;
results.setAttribute("aria-busy", "false");
}
});
}
function getDatasetData() {
const g = id => document.getElementById(id)?.value?.trim() || "";
return {
title: g("r-title"),
description: g("r-desc"),
discipline: g("r-discipline"),
data_types: g("r-datatypes"),
file_formats: g("r-formats"),
approx_size: g("r-size"),
sensitivity: g("r-sensitivity"),
contains_personal_data: g("r-personal"),
licence_intent: g("r-licence"),
funder: g("r-funder"),
institution: g("r-institution"),
country: g("r-country"),
needs_doi: g("r-doi"),
needs_versioning: g("r-versioning"),
embargo_required: g("r-embargo"),
embargo_months: g("r-embargo") === "Yes" && g("r-embargo-months") ? Number(g("r-embargo-months")) : null,
preferred_repository: g("r-preferred"),
related_publication: g("r-publication"),
notes: g("r-notes"),
};
}
function renderDatasetUnderstanding(d) {
if (!d) return "";
return `
<div class="card understanding">
<div class="card-header"><h2>๐ Dataset understanding</h2></div>
<div class="card-body">
<p style="font-size:14px">${esc(d.summary)}</p>
<div class="tag-row">
${d.discipline ? `<span class="badge b-primary">${esc(d.discipline)}</span>` : ""}
<span class="badge b-muted">Sensitivity: ${esc(d.sensitivity_assessment)}</span>
${(d.data_types || []).map(t => `<span class="badge b-muted">${esc(t)}</span>`).join("")}
</div>
${d.inferred_requirements?.length ? `
<div>
<h5 style="font-size:13px;font-weight:600;margin-bottom:6px">Inferred requirements</h5>
<ul style="list-style:disc;padding-left:18px;display:flex;flex-direction:column;gap:3px">
${d.inferred_requirements.map(r => `<li style="font-size:13px;color:var(--text-muted)">${esc(r)}</li>`).join("")}
</ul>
</div>` : ""}
${d.assumptions?.length ? `
<div>
<h5 style="font-size:13px;font-weight:600;margin-bottom:6px">Assumptions made</h5>
<ul style="list-style:disc;padding-left:18px;display:flex;flex-direction:column;gap:3px">
${d.assumptions.map(a => `<li style="font-size:13px;color:var(--text-muted)">${esc(a)}</li>`).join("")}
</ul>
</div>` : ""}
</div>
</div>`;
}
function renderDepositStrategy(s) {
if (!s) return "";
return `
<div class="card rec-card mt-6">
<div class="card-header"><h2> Deposit strategy</h2></div>
<div class="card-body space-y">
${s.selection_status === "no_verified_destination" ? `<p class="policy-notes"><strong>${esc(rbText("No destination is verified for file deposit. Review the requirements with KU Library."))}</strong></p>` : s.selection_status === "candidates_require_review" ? `<p class="policy-notes">${esc(rbText("Candidate repositories need manual review before depositing files."))}</p>` : ""}
<dl class="rec-grid">
<div class="rec-item"><dt>Primary choice</dt><dd>${rbTrustedAnchor(s.primary_url, s.primary_choice)} ${s.primary_url ? rbTrustedAnchor(s.primary_url, rbText("Visit repository"), "btn btn-ghost") : ""}</dd></div>
<div class="rec-item"><dt>Secondary choice</dt><dd>${rbTrustedAnchor(s.secondary_url, s.secondary_choice)} ${s.secondary_url ? rbTrustedAnchor(s.secondary_url, rbText("Visit repository"), "btn btn-ghost") : ""}</dd></div>
<div class="rec-item" style="grid-column:1/-1"><dt>Metadata standard</dt><dd>${esc(s.metadata_standard)}</dd></div>
</dl>
${s.khazna_metadata_note ? `
<div class="khazna-tip" style="background:var(--primary-xlight);border-color:var(--primary-light)">
<span>๏ธ</span><span style="color:var(--primary)">${esc(s.khazna_metadata_note)}</span>
</div>` : ""}
${s.deposit_workflow?.length ? `
<div>
<h5 style="font-size:13px;font-weight:600;margin-bottom:6px">๐ Deposit workflow</h5>
<ol style="list-style:decimal;padding-left:18px;display:flex;flex-direction:column;gap:4px">
${s.deposit_workflow.map(w => `<li style="font-size:13px;color:var(--text-muted)">${esc(w)}</li>`).join("")}
</ol>
</div>` : ""}
${s.manual_checks_required?.length ? `
<div>
<h5 style="font-size:13px;font-weight:600;margin-bottom:6px">[!] Manual checks required</h5>
<ul class="checks-list">${s.manual_checks_required.map(c => `<li>${esc(c)}</li>`).join("")}</ul>
</div>` : ""}
</div>
</div>`;
}
function rbRenderRepositoryExclusions(exclusions) {
const rows = Array.isArray(exclusions) ? exclusions.filter(item => item && item.name).slice(0, 20) : [];
if (!rows.length) return "";
return `<details class="policy-notes rb-repository-exclusions"><summary>${esc(rbText("Candidates excluded by requirement checks"))}</summary>
<p>${esc(rbText("These candidates were removed from the recommendations after checking your requirements. Review the reasons when refining your search."))}</p>
<ul class="checks-list">${rows.map(item => {
const reasons = Array.isArray(item.reasons) ? item.reasons : [];
const unresolved = Array.isArray(item.unresolved_constraints) ? item.unresolved_constraints : [];
return `<li><strong>${esc(item.name)}</strong>${reasons.length ? `: ${reasons.slice(0, 8).map(esc).join("; ")}` : ""}${unresolved.length ? `<p>${esc(rbText("Still unverified:"))} ${unresolved.slice(0, 8).map(esc).join("; ")}</p>` : ""}</li>`;
}).join("")}</ul></details>`;
}
function rbRe3dataSearchUrl(query) {
const text = String(query || "").trim();
return text ? `https://www.re3data.org/search?query=${encodeURIComponent(text)}` : "https://www.re3data.org";
}
function rbRenderRe3dataSupplement(supplement) {
if (!supplement || typeof supplement !== "object") return "";
const status = String(supplement.status || "");
if (!status || status === "skipped" || status === "disabled") return "";
const query = String(supplement.query || "");
const searchLink = `<a href="${esc(safeHttpsUrl(rbRe3dataSearchUrl(query), ["re3data.org"]))}" target="_blank" rel="noopener noreferrer" class="vlink">${esc(rbText("Search re3data.org yourself"))} โ</a>`;
const repos = Array.isArray(supplement.repositories) ? supplement.repositories.filter(item => item && item.name).slice(0, 8) : [];
if (status !== "ok" || !repos.length) {
const message = supplement.message || rbText("No additional re3data repositories were found.");
return `<div class="policy-notes rb-re3data-note"><p>${esc(message)}</p><p>${searchLink}</p></div>`;
}
const list = value => Array.isArray(value) ? value.filter(Boolean).map(String).join(", ") : String(value || "");
const items = repos.map(repo => {
const specs = [
["Subjects", list(repo.subjects)],
["Persistent ID", repo.persistent_identifier],
["Data upload", repo.data_upload],
["Data access", repo.data_access],
["Versioning", repo.versioning],
["Certificates", list(repo.certificates)],
["Country", list(repo.countries)],
].filter(([, value]) => String(value || "").trim());
const notes = Array.isArray(repo.review_notes) ? repo.review_notes.filter(Boolean).slice(0, 4) : [];
const record = safeHttpsUrl(repo.re3data_url, ["re3data.org"]);
const site = safeHttpsUrl(repo.url);
return `<article class="rb-re3data-item">
<h4>${rbTrustedAnchor(repo.url, repo.name)}</h4>
${repo.description ? `<p style="color:var(--text-muted)">${esc(repo.description)}</p>` : ""}
${specs.length ? `<dl class="r-specs">${specs.map(([label, value]) => `<div><dt>${esc(rbText(label))}</dt><dd>${esc(value)}</dd></div>`).join("")}</dl>` : ""}
${notes.length ? `<ul class="checks-list">${notes.map(note => `<li>${esc(note)}</li>`).join("")}</ul>` : ""}
<div class="verify-row">
${site ? `<a href="${esc(site)}" target="_blank" rel="noopener noreferrer" class="vlink">${esc(rbText("Visit repository"))} โ</a>` : ""}
${record ? `<a href="${esc(record)}" target="_blank" rel="noopener noreferrer" class="vlink">${esc(rbText("re3data record"))} โ</a>` : ""}
</div>
${repo.source_note ? `<p style="font-size:12px;color:var(--text-muted)">${esc(repo.source_note)}</p>` : ""}
</article>`;
}).join("");
const open = supplement.recommended_view === "expanded" ? " open" : "";
return `<details class="rb-re3data"${open}>
<summary>${esc(rbText("More repositories from re3data.org"))} (${repos.length})<span class="rb-re3data-tag">${esc(rbText("Not reviewed by KU Library"))}</span></summary>
<div class="rb-re3data-body">
<p class="rb-re3data-intro">${esc(supplement.message || "")} ${esc(rbText("The recommendations above come from the KU Library curated registry; use these listings to widen your options and confirm every detail with the repository."))}</p>
${items}
<p style="margin-top:10px">${searchLink}</p>
</div>
</details>`;
}
function renderRepoResults(result, container) {
const repos = result.repositories || [];
container.innerHTML = `
${renderMascotRow(esc(rbText('Here are repository options and the requirement checks for your dataset.')))}
<div class="results-header">
<h2 class="results-title">Recommended repositories</h2>
<div class="results-meta">
<span class="count-chip">${repos.length} repositories</span>
<button class="btn btn-ghost" id="repo-reset"> Start over</button>
</div>
</div>
${renderDatasetUnderstanding(result.dataset_understanding)}
<h3 style="font-family:Georgia,serif;font-size:22px;margin:20px 0 14px"> Recommended repositories</h3>
${repos.map((r, i) => renderRepoCard(r, i)).join("")}
${rbRenderRe3dataSupplement(result.re3data_supplement)}
${renderDepositStrategy(result.deposit_strategy)}
${rbRenderRepositoryExclusions(result.selection_exclusions)}
${renderNextActions(result.next_actions, result.global_notes)}
${renderHelpCard()}
`;
document.getElementById("repo-reset")?.addEventListener("click", () => {
container.innerHTML = "";
container.classList.add("hidden");
document.getElementById("repo-progress")?.classList.remove("show");
document.getElementById("repo-form")?.reset();
RB_ROOT.scrollIntoView({ behavior: "smooth", block: "start" });
});
container.scrollIntoView({ behavior: "smooth", block: "start" });
}
/* ------------------------------------------------------------------ */
// app.js - tab router, language selector, progress helpers, chat widget
const RB_CHAT_BASE = "https://nikeshn-researchbee.hf.space";
// โโ Mode switcher โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function rbFocusWorkflow(element) {
if (!element) return;
if (!element.hasAttribute("tabindex")) element.setAttribute("tabindex", "-1");
element.focus({ preventScroll: true });
element.scrollIntoView({ behavior: "auto", block: "start" });
}
function rbUpdateDataNotice() {
const hasForm = (RB_ROOT.dataset.rbView === "license" && Boolean(RB_ROOT.dataset.rbShareMode))
|| (RB_ROOT.dataset.rbView === "data" && Boolean(RB_ROOT.dataset.rbRepoStep))
|| (RB_ROOT.dataset.rbView === "journals" && Boolean(RB_ROOT.dataset.rbMode));
const notice = document.getElementById("rb-data-notice");
if (notice) notice.hidden = !hasForm;
}
function switchMode(mode, focus = false) {
const selectedMode = ["subject", "manuscript"].includes(mode) ? mode : "";
RB_ROOT.dataset.rbMode = selectedMode;
RB_ROOT.querySelectorAll(".mode-btn").forEach(button => {
const selected = button.dataset.mode === selectedMode;
button.classList.toggle("active", selected);
button.setAttribute("aria-expanded", String(selected));
button.tabIndex = 0;
});
["subject", "manuscript"].forEach(name => {
const panel = document.getElementById(`mode-${name}`);
if (panel) { panel.hidden = name !== selectedMode; panel.style.display = name === selectedMode ? "block" : "none"; }
});
const choices = document.getElementById("rb-journal-choices");
if (choices) choices.hidden = Boolean(selectedMode);
const back = document.getElementById("rb-mode-back");
if (back) back.hidden = !selectedMode;
rbUpdateDataNotice();
if (focus) rbFocusWorkflow(selectedMode
? document.querySelector(`#mode-${selectedMode} .card-header h2`)
: document.getElementById("rb-journal-choice-title"));
}
window.ResearchBee.switchMode = switchMode;
function activateTab(target, focus = false) {
const selectedTab = ["journals", "license", "data"].includes(target) ? target : "home";
RB_ROOT.dataset.rbView = selectedTab;
RB_ROOT.querySelectorAll(".tab-btn").forEach((button, index) => {
const selected = button.dataset.tab === selectedTab;
button.classList.toggle("active", selected);
button.setAttribute("aria-selected", String(selected));
button.tabIndex = selected || (selectedTab === "home" && index === 0) ? 0 : -1;
});
RB_ROOT.querySelectorAll(".tab-panel").forEach(panel => {
const selected = panel.id === `tab-${selectedTab}`;
panel.classList.toggle("active", selected);
panel.hidden = !selected; panel.style.display = selected ? "block" : "none";
});
const home = document.getElementById("rb-home-view");
if (home) home.hidden = selectedTab !== "home";
if (selectedTab === "journals" || selectedTab === "home") switchMode("");
if (selectedTab === "license" || selectedTab === "home") rbShowShareChoices(false);
if (selectedTab === "data" || selectedTab === "home") rbShowRepositoryIntro(false);
rbUpdateDataNotice();
if (focus) rbFocusWorkflow(selectedTab === "journals"
? document.getElementById("rb-journal-choice-title")
: selectedTab === "license" ? document.getElementById("rb-share-choice-title")
: document.getElementById("rb-repo-intro-title"));
}
function rbShowHome(focus = false) {
activateTab("home");
if (focus) rbFocusWorkflow(document.getElementById("rb-functions-title"));
}
window.ResearchBee.activateTab = activateTab;
RB_ROOT.querySelectorAll(".tab-btn").forEach(btn => {
btn.addEventListener("click", () => activateTab(btn.dataset.tab, true));
});
document.getElementById("rb-back-options")?.addEventListener("click", () => switchMode("", true));
// โโ Language selector โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
const TRANSLATIONS = {
"lbl-title": { en: "Title", ar: "ุงูุนููุงู" },
"lbl-abstract": { en: "Abstract", ar: "ุงูู
ูุฎุต" },
"lbl-keywords": { en: "Keywords (comma-separated)", ar: "ุงูููู
ุงุช ุงูู
ูุชุงุญูุฉ (ู
ูุตููุฉ ุจูุงุตูุฉ)" },
"lbl-discipline": { en: "Discipline / sub-discipline", ar: "ุงูุชุฎุตุต / ุงููุฑุน ุงูุนูู
ู" },
"lbl-article-type": { en: "Article type", ar: "ููุน ุงูู
ูุงูุฉ" },
"lbl-methods": { en: "Methods (brief)", ar: "ุงูู
ููุฌูุฉ (ู
ูุฌุฒุฉ)" },
"lbl-oa-pref": { en: "OA preference", ar: "ุชูุถูู ุงููุตูู ุงูู
ูุชูุญ" },
"lbl-apc": { en: "APC budget", ar: "ู
ูุฒุงููุฉ ุฑุณูู
ุงููุดุฑ" },
"lbl-ranking-pref": { en: "Ranking filter", ar: "ุชุตููุฉ ุญุณุจ ุงูุชุตููู" },
"lbl-ranking-src": { en: "Ranking source", ar: "ู
ุตุฏุฑ ุงูุชุตููู" },
"lbl-speed": { en: "Publication speed", ar: "ุณุฑุนุฉ ุงููุดุฑ" },
"lbl-repo-target": { en: "Repository target", ar: "ุงูู
ุณุชูุฏุน ุงูู
ุณุชูุฏู" },
"lbl-funder": { en: "Funder", ar: "ุงูุฌูุฉ ุงูู
ู
ููุฉ" },
"lbl-institution": { en: "Institution", ar: "ุงูู
ุคุณุณุฉ" },
"lbl-country": { en: "Country / region", ar: "ุงูุฏููุฉ / ุงูู
ูุทูุฉ" },
"lbl-audience": { en: "Target audience", ar: "ุงูุฌู
ููุฑ ุงูู
ุณุชูุฏู" },
"lbl-preferred": { en: "Preferred journals (optional)", ar: "ุงูู
ุฌูุงุช ุงูู
ูุถูุฉ (ุงุฎุชูุงุฑู)" },
"lbl-avoid": { en: "Journals to avoid (optional)", ar: "ุงูู
ุฌูุงุช ุงูู
ุฑุงุฏ ุชุฌูุจูุง (ุงุฎุชูุงุฑู)" },
"btn-journal-submit": { en: "Find best-fit journals", ar: "ุงุจุญุซ ุนู ุฃูุถู ุงูู
ุฌูุงุช ุงูู
ูุงุฆู
ุฉ" },
"lbl-subject": { en: "Subject / discipline", ar: "ุงูู
ูุถูุน / ุงูุชุฎุตุต" },
"btn-subject-submit": { en: "Search journals", ar: "ุงุจุญุซ ุนู ู
ุฌูุงุช" },
"lbl-l-journal": { en: "Journal name", ar: "ุงุณู
ุงูู
ุฌูุฉ" },
"lbl-l-issn": { en: "ISSN (optional)", ar: "ุงูุฑูู
ุงูุฏููู ISSN (ุงุฎุชูุงุฑู)" },
"lbl-l-publisher": { en: "Publisher (optional)", ar: "ุงููุงุดุฑ (ุงุฎุชูุงุฑู)" },
"lbl-l-version": { en: "Manuscript version of interest", ar: "ูุณุฎุฉ ุงูู
ุฎุทูุทุฉ ุงูู
ุทููุจุฉ" },
"lbl-l-funder": { en: "Funder (affects rights retention)", ar: "ุงูุฌูุฉ ุงูู
ู
ููุฉ (ุชุคุซุฑ ุนูู ุญููู ุงูุงุญุชูุงุธ)" },
"lbl-l-repo": { en: "Intended deposit location", ar: "ู
ููุน ุงูุฅูุฏุงุน ุงูู
ูุตูุฏ" },
"lbl-l-licence": { en: "Intended licence", ar: "ุงูุฑุฎุตุฉ ุงูู
ูุตูุฏุฉ" },
"lbl-l-notes": { en: "Additional context (optional)", ar: "ุณูุงู ุฅุถุงูู (ุงุฎุชูุงุฑู)" },
"btn-license-submit": { en: "Check Green OA policy", ar: "ุชุญูู ู
ู ุณูุงุณุฉ ุงููุตูู ุงูู
ูุชูุญ ุงูุฃุฎุถุฑ" },
"lbl-r-title": { en: "Dataset title", ar: "ุนููุงู ู
ุฌู
ูุนุฉ ุงูุจูุงูุงุช" },
"lbl-r-desc": { en: "Description", ar: "ุงููุตู" },
"lbl-r-discipline": { en: "Discipline / domain", ar: "ุงูุชุฎุตุต / ุงูู
ุฌุงู" },
"lbl-r-datatypes": { en: "Data types", ar: "ุฃููุงุน ุงูุจูุงูุงุช" },
"lbl-r-formats": { en: "File formats", ar: "ุตูุบ ุงูู
ููุงุช" },
"lbl-r-size": { en: "Approximate total size", ar: "ุงูุญุฌู
ุงูุฅุฌู
ุงูู ุงูุชูุฑูุจู" },
"lbl-r-sensitivity": { en: "Sensitivity classification", ar: "ุชุตููู ุงูุญุณุงุณูุฉ" },
"lbl-r-personal": { en: "Contains personal / health data?", ar: "ูุญุชูู ุนูู ุจูุงูุงุช ุดุฎุตูุฉ / ุตุญูุฉุ" },
"lbl-r-licence": { en: "Intended licence", ar: "ุงูุฑุฎุตุฉ ุงูู
ูุตูุฏุฉ" },
"lbl-r-embargo": { en: "Embargo required?", ar: "ูู ููุฒู
ุญุธุฑ ูุดุฑุ" },
"lbl-r-doi": { en: "Persistent identifier (DOI) required?", ar: "ูู ููุฒู
ู
ุนุฑู ุฏุงุฆู
(DOI)ุ" },
"lbl-r-versioning": { en: "Versioning required?", ar: "ูู ููุฒู
ุฅุฏุงุฑุฉ ุงูุฅุตุฏุงุฑุงุชุ" },
"lbl-r-funder": { en: "Funder", ar: "ุงูุฌูุฉ ุงูู
ู
ููุฉ" },
"lbl-r-institution": { en: "Institution", ar: "ุงูู
ุคุณุณุฉ" },
"lbl-r-country": { en: "Country / region", ar: "ุงูุฏููุฉ / ุงูู
ูุทูุฉ" },
"lbl-r-preferred": { en: "Preferred / required repository (optional)", ar: "ุงูู
ุณุชูุฏุน ุงูู
ูุถู / ุงูู
ุทููุจ (ุงุฎุชูุงุฑู)" },
"lbl-r-publication": { en: "Linked publication / DOI (optional)", ar: "ุงูู
ูุดูุฑ ุงูู
ุฑุชุจุท / DOI (ุงุฎุชูุงุฑู)" },
"lbl-r-notes": { en: "Additional notes", ar: "ู
ูุงุญุธุงุช ุฅุถุงููุฉ" },
"btn-repo-submit": { en: "Find best repositories", ar: "ุงุจุญุซ ุนู ุฃูุถู ุงูู
ุณุชูุฏุนุงุช" },
};
const PLACEHOLDERS = {
"j-title": { en: "Full manuscript title", ar: "ุนููุงู ุงูู
ุฎุทูุทุฉ ูุงู
ูุงู" },
"j-abstract": { en: "Paste your full abstract here...", ar: "ุงูุตู ู
ูุฎุตู ุงููุงู
ู ููุง..." },
"j-keywords": { en: "e.g. machine learning, library, open access", ar: "ู
ุซุงู: ุชุนูู
ุขููุ ู
ูุชุจุฉุ ูุตูู ู
ูุชูุญ" },
"j-discipline": { en: "e.g. Library and Information Science", ar: "ู
ุซุงู: ุนูู
ุงูู
ูุชุจุงุช ูุงูู
ุนููู
ุงุช" },
"j-methods": { en: "e.g. survey, experiment, case study", ar: "ู
ุซุงู: ู
ุณุญุ ุชุฌุฑุจุฉุ ุฏุฑุงุณุฉ ุญุงูุฉ" },
"j-apc": { en: "e.g. up to USD 2000, or no APC", ar: "ู
ุซุงู: ุญุชู 2000 ุฏููุงุฑุ ุฃู ุจุฏูู ุฑุณูู
" },
"j-funder": { en: "e.g. ERC, NIH, Wellcome", ar: "ู
ุซุงู: ุงูู
ุฌูุณ ุงูุฃูุฑูุจู ููุจุญูุซุ NIH" },
"j-institution": { en: "e.g. Khalifa University", ar: "ู
ุซุงู: ุฌุงู
ุนุฉ ุฎูููุฉ" },
"j-country": { en: "e.g. UAE", ar: "ู
ุซุงู: ุงูุฅู
ุงุฑุงุช ุงูุนุฑุจูุฉ ุงูู
ุชุญุฏุฉ" },
"j-audience": { en: "e.g. library practitioners, AI researchers", ar: "ู
ุซุงู: ุฃู
ูุงุก ุงูู
ูุชุจุงุชุ ุจุงุญุซู ุงูุฐูุงุก ุงูุงุตุทูุงุนู" },
"j-preferred": { en: "e.g. Nature Communications, PLOS ONE", ar: "ู
ุซุงู: Nature Communicationsุ PLOS ONE" },
"j-avoid": { en: "Journals to exclude from recommendations", ar: "ุงูู
ุฌูุงุช ุงูู
ุฑุงุฏ ุงุณุชุจุนุงุฏูุง ู
ู ุงูุชูุตูุงุช" },
"s-subject": { en: "e.g. Petroleum Engineering, Machine Learning...", ar: "ู
ุซุงู: ููุฏุณุฉ ุงูุจุชุฑููุ ุชุนูู
ุขูู..." },
"l-journal": { en: "e.g. Nature Communications", ar: "ู
ุซุงู: Nature Communications" },
"l-issn": { en: "e.g. 2041-1723", ar: "ู
ุซุงู: 2041-1723" },
"l-publisher": { en: "e.g. Springer Nature", ar: "ู
ุซุงู: Springer Nature" },
"l-funder": { en: "e.g. cOAlition S, ERC, NIH", ar: "ู
ุซุงู: ุชุญุงูู Sุ ุงูู
ุฌูุณ ุงูุฃูุฑูุจู ููุจุญูุซ" },
"l-notes": { en: "Already accepted? Embargo concerns?", ar: "ูู ุชู
ูุจูููุงุ ู
ุฎุงูู ุจุดุฃู ุงูุญุธุฑุ" },
"r-title": { en: "Descriptive title for your dataset", ar: "ุนููุงู ูุตูู ูู
ุฌู
ูุนุฉ ุจูุงูุงุชู" },
"r-desc": { en: "What does the dataset contain?", ar: "ู
ุงุฐุง ุชุญุชูู ู
ุฌู
ูุนุฉ ุงูุจูุงูุงุชุ" },
"r-discipline": { en: "e.g. genomics, climate science", ar: "ู
ุซุงู: ุนูู
ุงูุฌูููู
ุ ุนููู
ุงูู
ูุงุฎ" },
"r-datatypes": { en: "e.g. tabular, images, time series", ar: "ู
ุซุงู: ุฌุฏุงููุ ุตูุฑุ ุณูุงุณู ุฒู
ููุฉ" },
"r-formats": { en: "e.g. CSV, FASTQ, NetCDF, TIFF", ar: "ู
ุซุงู: CSVุ FASTQุ NetCDF" },
"r-size": { en: "e.g. 250 MB / 5 GB / 2 TB", ar: "ู
ุซุงู: 250 ู
ูุบุงุจุงูุช / 5 ุฌูุฌุงุจุงูุช" },
"r-funder": { en: "e.g. Horizon Europe, NIH, ADEK", ar: "ู
ุซุงู: ุฃูู ุฃูุฑูุจุงุ NIHุ ุฃุฏูู" },
"r-institution": { en: "e.g. Khalifa University", ar: "ู
ุซุงู: ุฌุงู
ุนุฉ ุฎูููุฉ" },
"r-country": { en: "e.g. UAE", ar: "ู
ุซุงู: ุงูุฅู
ุงุฑุงุช ุงูุนุฑุจูุฉ ุงูู
ุชุญุฏุฉ" },
"r-preferred": { en: "e.g. Zenodo, GenBank", ar: "ู
ุซุงู: Zenodoุ GenBank" },
"r-publication": { en: "Related article DOI or title", ar: "DOI ุฃู ุนููุงู ุงูู
ูุงูุฉ ุงูู
ุฑุชุจุทุฉ" },
"r-notes": { en: "Any special requirements...", ar: "ุฃู ู
ุชุทูุจุงุช ุฎุงุตุฉ..." },
};
function applyLanguage(lang) {
const isAr = lang === "arabic";
RB_ROOT.lang = isAr ? "ar" : "en";
RB_ROOT.dir = isAr ? "rtl" : "ltr";
window.ResearchBee.chatLang = lang;
Object.entries(PLACEHOLDERS).forEach(([id, text]) => {
const element = document.getElementById(id);
if (element) element.placeholder = isAr ? text.ar : text.en;
});
RB_ROOT.querySelectorAll("input[type=text], textarea").forEach(element => { element.dir = ["l-doi", "l-issn"].includes(element.id) ? "ltr" : "auto"; });
RB_ROOT.querySelectorAll(".lang-btn").forEach(button => button.setAttribute("aria-pressed", String(button.dataset.lang === lang)));
let banner = document.getElementById("ar-instruction-banner");
if (!banner) {
banner = document.createElement("div"); banner.id = "ar-instruction-banner"; banner.className = "ar-banner";
RB_ROOT.querySelector(".main-content")?.prepend(banner);
}
banner.hidden = !isAr;
banner.textContent = "ูุถุน ุงูุนุฑุจูุฉ: ุชุธูุฑ ุชุณู
ูุงุช ุงููุงุฌูุฉ ูุฅุฌุงุจุงุช ุงูุฐูุงุก ุงูุงุตุทูุงุนู ุจุงูุนุฑุจูุฉ. ุชุจูู ุฃุณู
ุงุก ุงูู
ุฌูุงุช ูุจูุงูุงุช ุงูู
ุตุงุฏุฑ ูุดุฑูุท ุงูุณูุงุณุงุช ุจูุบุชูุง ุงูุฃุตููุฉ ููุชุญูู ู
ููุง.";
["j-preferred", "j-avoid", "s-preferred", "s-avoid"].forEach(id => { const field = document.getElementById(id); if (field) field.placeholder = isAr ? "ุงุณู
ู
ุฌูุฉ ูุงุญุฏ ูู ูู ุณุทุฑุ ุชุจูู ุงูููุงุตู ุฏุงุฎู ุงูุนูุงููู ูู
ุง ูู" : "One journal title per line; commas within titles are preserved"; });
rbApplyUiLanguage(RB_ROOT);
}
RB_ROOT.querySelectorAll(".lang-btn").forEach(btn => {
btn.addEventListener("click", () => {
RB_ROOT.querySelectorAll(".lang-btn").forEach(b => b.classList.remove("active"));
btn.classList.add("active");
applyLanguage(btn.dataset.lang);
});
});
// โโ Progress helpers โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// The API returns one completed response; do not invent backend stage updates.
const RB_PROGRESS = new Map();
function rbStartWaiting(wrap, options = {}) {
const started = Date.now();
const status = document.createElement("div");
status.className = "rb-wait-status";
status.style.cssText = "font-size:13px;line-height:1.6";
const label = document.createElement("span");
label.setAttribute("role", "status"); label.setAttribute("aria-live", "polite");
const clock = document.createElement("span");
clock.style.cssText = "display:block;font-size:12px;opacity:.85";
clock.setAttribute("aria-hidden", "true"); // Avoid announcing every second.
status.append(label, clock);
wrap.appendChild(status);
let timer = null, stopped = false;
const stop = () => { stopped = true; clearTimeout(timer); cancel?.remove(); };
const cancel = options.onCancel ? document.createElement("button") : null;
if (cancel) {
cancel.type = "button"; cancel.className = "btn btn-ghost rb-wait-cancel";
cancel.style.cssText = "margin-top:8px;padding:6px 12px;font-size:12px";
cancel.textContent = rbWaitText("Cancel waiting", "ุฅูุบุงุก ุงูุงูุชุธุงุฑ");
cancel.addEventListener("click", () => {
const restoreFocus = cancel.contains(document.activeElement);
stop(); options.onCancel();
if (restoreFocus) options.focusTarget?.()?.focus();
});
status.appendChild(cancel);
}
const update = () => {
if (stopped) return;
const seconds = Math.max(0, Math.floor((Date.now() - started) / 1000));
const receiving = options.receiving?.();
const message = receiving
? rbWaitText("Receiving your replyโฆ", "ุฌุงุฑู ุงุณุชูุงู
ุงูุฑุฏโฆ")
: seconds >= 60
? rbWaitText("Still waiting for the service. You can cancel waiting and try again; your entries will be kept.", "ู
ุง ุฒููุง ููุชุธุฑ ุงูุฎุฏู
ุฉ. ูู
ููู ุฅูุบุงุก ุงูุงูุชุธุงุฑ ูุงูู
ุญุงููุฉ ู
ุฑุฉ ุฃุฎุฑูุ ุณูุชู
ุงูุงุญุชูุงุธ ุจู
ุฏุฎูุงุชู.")
: seconds >= 20
? rbWaitText("Still processing. ResearchBee or a data service may be starting up or busy.", "ูุง ุชุฒุงู ุงูู
ุนุงูุฌุฉ ุฌุงุฑูุฉ. ูุฏ ุชููู ResearchBee ุฃู ุฅุญุฏู ุฎุฏู
ุงุช ุงูุจูุงูุงุช ููุฏ ุงูุชุดุบูู ุฃู ู
ุดุบููุฉ.")
: rbWaitText("Request sent. Waiting for ResearchBee and its data servicesโฆ", "ุชู
ุฅุฑุณุงู ุงูุทูุจ. ุฌุงุฑู ุงูุชุธุงุฑ ResearchBee ูุฎุฏู
ุงุช ุงูุจูุงูุงุชโฆ");
if (label.textContent !== message) label.textContent = message;
clock.textContent = rbWaitText(`Elapsed: ${seconds} seconds ยท maximum wait 2 minutes`, `ุงูููุช ุงูู
ููุถู: ${seconds} ุซุงููุฉ ยท ุฃูุตู ุงูุชุธุงุฑ ุฏูููุชุงู`);
timer = setTimeout(update, 1000);
};
update();
return { stop, remove: () => { stop(); status.remove(); } };
}
function rbStopProgress(containerId) {
RB_PROGRESS.get(containerId)?.stop();
RB_PROGRESS.delete(containerId);
document.getElementById(containerId.replace("-progress", "-results"))?.setAttribute("aria-busy", "false");
}
function showProgress(containerId, _steps, options = {}) {
rbStopProgress(containerId);
const wrap = document.getElementById(containerId);
if (!wrap) return;
wrap.replaceChildren();
wrap.classList.add("show");
wrap.setAttribute("role", "status");
document.getElementById(containerId.replace("-progress", "-results"))?.setAttribute("aria-busy", "true");
RB_PROGRESS.set(containerId, rbStartWaiting(wrap, {
focusTarget: () => document.getElementById(containerId.replace("-progress", "-form"))?.querySelector("input, textarea, select"),
onCancel: options.requestKey ? () => {
rbCancelRequest(options.requestKey, true);
doneProgress(containerId, rbWaitText("Stopped waiting. Your entries are preserved. You can try again.", "ุชู
ุฅููุงู ุงูุงูุชุธุงุฑ. ุชู
ุงูุงุญุชูุงุธ ุจู
ุฏุฎูุงุชู ููู
ููู ุงูู
ุญุงููุฉ ู
ุฑุฉ ุฃุฎุฑู."));
} : null,
}));
}
function setStep(_containerId, _idx) { /* Kept for legacy callers; no simulated stages. */ }
function doneProgress(containerId, message) {
rbStopProgress(containerId);
const wrap = document.getElementById(containerId);
if (!wrap) return;
wrap.replaceChildren();
const label = document.createElement("div");
label.className = "p-step done"; label.textContent = message || rbWaitText("Complete", "ุงูุชู
ู");
wrap.appendChild(label);
}
function hideProgress(containerId) {
rbStopProgress(containerId);
document.getElementById(containerId)?.classList.remove("show");
}
function failProgress(containerId, error) {
doneProgress(containerId, error?.message || rbWaitText("The request could not be completed. Please try again.", "ุชุนุฐุฑ ุฅูู
ุงู ุงูุทูุจ. ูุฑุฌู ุงูู
ุญุงููุฉ ู
ุฑุฉ ุฃุฎุฑู."));
document.getElementById(containerId)?.setAttribute("role", error?.cancelled ? "status" : "alert");
}
// โโ Clipboard helper โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
window.ResearchBee.copyToClipboard = function(text, el) {
navigator.clipboard.writeText(text).then(() => {
const orig = el.innerHTML;
el.innerHTML = "Copied!";
setTimeout(() => { el.innerHTML = orig; }, 1500);
});
};
// โโ Chat widget โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
(function initChat() {
const MAX_HIST = 20;
const WELCOME = "Hi! I'm ResearchBee, Khalifa University Library's publishing and research-data assistant.\n\nI can explain how to choose and verify journals, interpret CiteScore, quartiles and impact indicators, understand KU Open Access and APC support, check article-sharing rights, and make research-data management and repository decisions. Use the three tools for structured results, or ask me to explain any publishing step.\n\nWhat would you like help with?";
const EXAMPLE_CHIPS = [
"How do I choose the best journal?",
"What does Q1 or CiteScore percentile mean?",
"Does KU cover my APC?",
"How do I choose a data repository?",
];
const MENU_CARDS = [
{
emoji: "๐", color: "#1a2744", route: "journals", prefill: {},
title: "Find the best journal for my paper",
desc: "AI-matched journals with verified metrics and cover-letter support",
},
{
emoji: "๐ก๏ธ", color: "#059669", route: "license", prefill: {},
title: "Deposit my article to Khazna or other repositories",
desc: "Check self-archiving rights, embargo & allowed versions",
},
{
emoji: "๐๏ธ", color: "#d97706", route: "data", prefill: {},
title: "Find the right repository for my dataset",
desc: "Match your data to domain-specific & institutional repos",
},
{
emoji: "๐ฌ", color: "#4338CA", route: null, prefill: {},
title: "Other publishing questions",
desc: "KU OA policy, APC funding, publisher agreements & more",
},
];
const TAB_META = {
journals: { emoji: "๐ฐ", label: "Open Journal Submission tool", color: "#1a2744" },
license: { emoji: "๐ก๏ธ", label: "Open License Checker", color: "#059669" },
data: { emoji: "๐๏ธ", label: "Open Data Repository tool", color: "#d97706" },
};
let isOpen = false, isTyping = false, history = [];
let chatController = null, chatGeneration = 0, chatReturnFocus = null, chatWait = null, chatTimer = null;
let chatHintTimer = null, chatHintHideTimer = null;
const panel = document.getElementById("rb-chat-panel");
const launcher = document.getElementById("rb-chat-launcher");
const closeBtn = document.getElementById("rb-chat-close");
const msgs = document.getElementById("rb-chat-messages");
const input = document.getElementById("rb-chat-input");
const sendBtn = document.getElementById("rb-chat-send");
const badge = document.getElementById("rb-chat-badge");
const tooltip = document.getElementById("rb-chat-tooltip");
if (!panel || !launcher) return;
function getLang() {
return window.ResearchBee.chatLang
|| RB_ROOT.querySelector(".lang-btn.active")?.dataset.lang
|| "english";
}
function esc(str) {
return String(str || "")
.replace(/&/g,"&").replace(/</g,"<")
.replace(/>/g,">");
}
function scrollBottom() { msgs.scrollTop = msgs.scrollHeight; }
function addMessage(role, text) {
msgs.querySelector(".rb-menu-wrap")?.remove();
document.getElementById("rb-chips-wrap")?.remove();
const wrap = document.createElement("div");
wrap.className = `rb-msg ${role}`;
const bubble = document.createElement("div");
bubble.className = "rb-bubble";
rbRenderChatText(bubble, text);
wrap.appendChild(bubble);
msgs.appendChild(wrap);
scrollBottom();
}
function addRouteCTA(route, prefill) {
const meta = TAB_META[route];
if (!meta) return;
const wrap = document.createElement("div");
wrap.className = "rb-msg assistant";
const btn = document.createElement("button");
btn.className = "rb-route-btn";
btn.style.background = meta.color;
btn.innerHTML = `${meta.emoji} ${meta.label} โ`;
btn.addEventListener("click", () => {
closePanel();
activateTabAndPrefill(route, prefill || {});
});
wrap.appendChild(btn);
msgs.appendChild(wrap);
scrollBottom();
}
function activateTabAndPrefill(route, prefill) {
activateTab(route);
if (route === "license" && (prefill.doi || prefill.journal_name || prefill.issn)) rbSetShareMode(prefill.doi ? "article" : "journal");
if (route === "data") rbSetRepositoryStep(1);
// Pre-fill fields
const FIELD_MAP = {
journals: { title: "j-title", abstract: "j-abstract", keywords: "j-keywords", discipline: "j-discipline", subject: "s-subject" },
license: { doi: "l-doi", journal_name: "l-journal", issn: "l-issn", publisher: "l-publisher" },
data: { title: "r-title", discipline: "r-discipline", data_types: "r-datatypes" },
};
const map = FIELD_MAP[route] || {};
Object.entries(prefill).forEach(([key, value]) => {
const elId = map[key];
if (!elId || !value) return;
const el = document.getElementById(elId);
if (el) el.value = value;
});
// Switch to correct mode for journals tab
if (route === "journals") {
switchMode(prefill.subject ? "subject" : "manuscript");
}
RB_ROOT.querySelector(".tabs-bar")?.scrollIntoView({ behavior: "smooth", block: "start" });
}
function showTyping() {
const wrap = document.createElement("div");
wrap.className = "rb-msg assistant";
wrap.id = "rb-typing-indicator";
wrap.innerHTML = '<div class="rb-typing"><span></span><span></span><span></span></div>';
msgs.appendChild(wrap);
scrollBottom();
}
function removeTyping() {
document.getElementById("rb-typing-indicator")?.remove();
}
function showExampleChips() {
if (document.getElementById("rb-chips-wrap")) return;
const wrap = document.createElement("div");
wrap.id = "rb-chips-wrap";
wrap.style.cssText = "display:flex;flex-wrap:wrap;gap:6px;padding:4px 14px 8px;";
EXAMPLE_CHIPS.forEach(text => {
const chip = document.createElement("button");
chip.style.cssText = "background:#f1f5f9;border:1px solid #e2e8f0;border-radius:20px;padding:5px 12px;font-family:system-ui,sans-serif;font-size:12px;color:#475569;cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap;";
chip.textContent = rbText(text);
chip.addEventListener("mouseover", () => { chip.style.background="#e0e7ff"; chip.style.borderColor="#4338CA"; chip.style.color="#4338CA"; });
chip.addEventListener("mouseout", () => { chip.style.background="#f1f5f9"; chip.style.borderColor="#e2e8f0"; chip.style.color="#475569"; });
chip.addEventListener("click", () => {
wrap.remove();
sendMessage(rbText(text));
});
wrap.appendChild(chip);
});
const inputArea = panel.querySelector(".rb-chat-input-wrap");
if (inputArea) panel.insertBefore(wrap, inputArea);
else msgs.appendChild(wrap);
}
function removeChips() {
document.getElementById("rb-chips-wrap")?.remove();
}
function rbResetChat(close = false) {
chatGeneration += 1;
chatController?.abort(); chatController = null;
chatWait?.remove(); chatWait = null;
clearTimeout(chatTimer); chatTimer = null;
clearTimeout(chatHintTimer); chatHintTimer = null;
clearTimeout(chatHintHideTimer); chatHintHideTimer = null;
isTyping = false; history = [];
msgs.replaceChildren();
input.value = ""; input.style.height = "auto";
sendBtn.disabled = true;
badge.classList.remove("visible"); tooltip.classList.remove("show");
document.getElementById("rb-clear-wrap")?.remove();
document.getElementById("rb-chips-wrap")?.remove();
if (close) closePanel();
else {
addMessage("assistant", getLang() === "arabic" ? RB_CHAT_WELCOME_AR : WELCOME);
showMenuCards();
}
}
window.ResearchBee.resetChat = () => rbResetChat(true);
// showMenuCards โ chips only on welcome, clear button
function showMenuCards() {
showExampleChips();
const existing = document.getElementById("rb-clear-wrap");
if (existing) return;
const wrap = document.createElement("div");
wrap.id = "rb-clear-wrap";
wrap.style.cssText = "text-align:right;padding:0 14px 4px;";
const clearBtn = document.createElement("button");
clearBtn.className = "rb-clear-btn";
clearBtn.textContent = rbText("Clear");
clearBtn.addEventListener("click", () => rbResetChat(false));
wrap.appendChild(clearBtn);
const inputArea = panel.querySelector(".rb-chat-input-wrap");
if (inputArea) panel.insertBefore(wrap, inputArea);
scrollBottom();
}
function openPanel() {
chatReturnFocus = document.activeElement;
isOpen = true;
panel.hidden = false; panel.inert = false;
panel.classList.add("open");
panel.setAttribute("aria-hidden", "false");
launcher.setAttribute("aria-expanded", "true");
mobileBar?.setAttribute("aria-expanded", "true");
badge.classList.remove("visible");
tooltip.classList.remove("show");
input.focus();
if (!msgs.children.length) {
addMessage("assistant", getLang() === "arabic" ? RB_CHAT_WELCOME_AR : WELCOME);
showMenuCards();
}
}
function closePanel() {
isOpen = false;
panel.classList.remove("open");
panel.hidden = true; panel.inert = true;
if (panel.contains(document.activeElement)) (chatReturnFocus?.isConnected ? chatReturnFocus : launcher).focus();
panel.setAttribute("aria-hidden", "true");
launcher.setAttribute("aria-expanded", "false");
mobileBar?.setAttribute("aria-expanded", "false");
}
panel.hidden = true; panel.inert = true;
panel.addEventListener("keydown", event => { if (event.key === "Escape") { event.preventDefault(); closePanel(); } });
const mobileBar = document.getElementById("rb-mobile-chat-bar");
launcher.addEventListener("click", () => isOpen ? closePanel() : openPanel());
mobileBar?.addEventListener("click", () => isOpen ? closePanel() : openPanel());
closeBtn.addEventListener("click", closePanel);
document.addEventListener("click", (e) => {
const clickedMobileBar = mobileBar && mobileBar.contains(e.target);
if (isOpen && !panel.contains(e.target) && !launcher.contains(e.target) && !clickedMobileBar) {
closePanel();
}
});
input.addEventListener("input", () => {
input.style.height = "auto";
input.style.height = Math.min(input.scrollHeight, 100) + "px";
sendBtn.disabled = !input.value.trim() || isTyping;
});
input.addEventListener("keydown", (e) => {
if (e.key === "Enter" && !e.shiftKey) {
e.preventDefault();
if (!sendBtn.disabled) sendMessage();
}
});
sendBtn.addEventListener("click", sendMessage);
async function sendMessage(presetText) {
const text = (typeof presetText === "string" ? presetText : input.value).trim();
if (!text || isTyping) return;
input.value = "";
input.style.height = "auto";
sendBtn.disabled = true;
isTyping = true;
addMessage("user", text);
history.push({ role: "user", content: text });
if (history.length > MAX_HIST) history = history.slice(-MAX_HIST);
// Create streaming bubble
msgs.querySelector(".rb-menu-wrap")?.remove();
document.getElementById("rb-chips-wrap")?.remove();
const wrap = document.createElement("div");
wrap.className = "rb-msg assistant";
const bubble = document.createElement("div");
bubble.className = "rb-bubble";
bubble.textContent = rbWaitText("Waiting for your replyโฆ", "ุฌุงุฑู ุงูุชุธุงุฑ ุงูุฑุฏโฆ");
wrap.appendChild(bubble);
msgs.appendChild(wrap);
scrollBottom();
let fullText = "";
const generation = ++chatGeneration;
const controller = new AbortController();
chatController = controller;
let cancelled = false, timedOut = false;
const waiting = rbStartWaiting(wrap, {
receiving: () => fullText.length > 0,
focusTarget: () => input,
onCancel: () => { cancelled = true; controller.abort(); },
});
chatWait = waiting;
const timer = setTimeout(() => { timedOut = true; controller.abort(); }, 120000);
chatTimer = timer;
try {
const res = await fetch(`${RB_CHAT_BASE}/api/chat`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ messages: rbPrepareChatHistory(history), language: getLang() }),
signal: controller.signal,
});
if (!res.ok) throw new Error(rbApiError(await res.json().catch(() => ({})), res.status));
const reader = res.body.getReader();
const decoder = new TextDecoder();
let buffer = "";
let route = null;
let prefill = {};
let receivedFinal = false;
while (true) {
const { done, value } = await reader.read();
if (generation !== chatGeneration) return;
if (done) break;
buffer += decoder.decode(value, { stream: true });
const lines = buffer.split("\n\n");
buffer = lines.pop(); // keep incomplete chunk
for (const line of lines) {
if (!line.startsWith("data: ")) continue;
let evt;
try { evt = JSON.parse(line.slice(6)); }
catch (_) { continue; } // Ignore malformed chunks; require a final event below.
if (evt.error) throw new Error(typeof evt.error === "string" ? evt.error : "The response was interrupted. Please try again.");
{
if (evt.done) {
receivedFinal = true;
// Final event โ use clean reply from server
route = evt.route || null;
prefill = evt.prefill || {};
if (typeof evt.reply === "string") fullText = evt.reply;
else if (evt.token) fullText += evt.token;
} else if (evt.token) {
fullText += evt.token;
}
// Update bubble with current text
rbRenderChatText(bubble, fullText, !evt.done);
scrollBottom();
}
}
}
if (!receivedFinal) throw new Error("The response was interrupted. Please try again.");
// Store clean reply in history
const cleanReply = fullText.trim();
if (!cleanReply) throw new Error("No answer was received. Please try again.");
rbRenderChatText(bubble, cleanReply);
history.push({ role: "assistant", content: cleanReply.slice(0, 12000) });
if (history.length > MAX_HIST) history = history.slice(-MAX_HIST);
// Show routing CTA
if (route && TAB_META[route]) {
addRouteCTA(route, prefill);
}
} catch (err) {
controller.abort();
if (generation !== chatGeneration) return;
const message = cancelled
? rbWaitText("Stopped waiting. Your question is restored below; you can try again.", "ุชู
ุฅููุงู ุงูุงูุชุธุงุฑ. ุชู
ุช ุงุณุชุนุงุฏุฉ ุณุคุงูู ุฃุฏูุงูุ ูู
ููู ุงูู
ุญุงููุฉ ู
ุฑุฉ ุฃุฎุฑู.")
: timedOut || err.name === "AbortError"
? rbWaitText("The chat request timed out. Your question is restored below. Please try again; the service may be starting up or busy.", "ุงูุชูุช ู
ููุฉ ุงูู
ุญุงุฏุซุฉ. ุชู
ุช ุงุณุชุนุงุฏุฉ ุณุคุงูู ุฃุฏูุงู. ูุฑุฌู ุงูู
ุญุงููุฉ ู
ุฑุฉ ุฃุฎุฑูุ ูุฏ ุชููู ุงูุฎุฏู
ุฉ ููุฏ ุงูุชุดุบูู ุฃู ู
ุดุบููุฉ.")
: rbWaitText(`Unable to complete the reply: ${err.message || "Please try again."}`, `ุชุนุฐุฑ ุฅูู
ุงู ุงูุฑุฏ: ${err.message || "ูุฑุฌู ุงูู
ุญุงููุฉ ู
ุฑุฉ ุฃุฎุฑู."}`);
rbRenderChatText(bubble, message);
history = history.filter((_, index) => index !== history.length - 1);
if (!input.value.trim()) input.value = text;
bubble.setAttribute("role", cancelled ? "status" : "alert");
} finally {
clearTimeout(timer);
waiting.remove();
if (generation === chatGeneration) { chatController = null; chatWait = null; chatTimer = null; isTyping = false; sendBtn.disabled = !input.value.trim(); }
}
}
// The introduction opens on request, so the form is ready without an overlay.
(function initServiceIntro() {
const backdrop = document.getElementById("rb-service-intro-backdrop");
const intro = document.getElementById("rb-service-intro");
const closeIntro = document.getElementById("rb-service-intro-close");
const exploreBtn = document.getElementById("rb-service-intro-explore");
const chatBtn = document.getElementById("rb-service-intro-chat");
const aboutBtn = document.getElementById("rb-service-intro-open");
if (!backdrop || !intro || !aboutBtn) return;
let armed = false;
let introReturnFocus = null;
const dismiss = () => {
backdrop.classList.remove("show");
backdrop.setAttribute("aria-hidden", "true");
backdrop.inert = true;
if (intro.contains(document.activeElement)) (introReturnFocus?.isConnected ? introReturnFocus : document.getElementById("s-subject"))?.focus({ preventScroll: true });
aboutBtn.setAttribute("aria-expanded", "false");
if (armed) {
document.removeEventListener("click", dismissOnFirstClick, false);
armed = false;
}
};
const dismissOnFirstClick = () => dismiss();
closeIntro?.addEventListener("click", dismiss);
exploreBtn?.addEventListener("click", () => {
dismiss();
RB_ROOT.querySelector(".tabs-bar")?.scrollIntoView({ behavior: "smooth", block: "start" });
});
chatBtn?.addEventListener("click", () => {
dismiss();
openPanel();
});
document.addEventListener("keydown", (event) => {
if (!backdrop.classList.contains("show")) return;
if (event.key === "Escape") { event.preventDefault(); dismiss(); }
if (event.key === "Tab") rbTrapFocus(intro, event);
});
aboutBtn.addEventListener("click", (event) => {
event.stopPropagation();
introReturnFocus = aboutBtn;
aboutBtn.setAttribute("aria-expanded", "true");
backdrop.inert = false;
backdrop.classList.add("show");
backdrop.setAttribute("aria-hidden", "false");
window.ResearchBee.serviceIntroShownThisLoad = true;
intro.focus({ preventScroll: true });
armed = true;
document.addEventListener("click", dismissOnFirstClick, false);
});
})();
// Tooltip on first load. Do not stack it on top of the service intro.
chatHintTimer = setTimeout(() => {
badge.classList.add("visible");
if (!window.ResearchBee.serviceIntroShownThisLoad) {
tooltip.classList.add("show");
chatHintHideTimer = setTimeout(() => tooltip.classList.remove("show"), 4000);
}
}, 2500);
})();
window.ResearchBee.frontendVersion = "1.9.3-links";
/* ========================================================================
ResearchBee v1.8 โ unified verified journal discovery UI
The same renderer, policy checks, comparison and export are used by both
subject browsing and manuscript matching.
======================================================================== */
const RB_DISCOVERY_STATE = {
generation: 0,
mode: "",
result: null,
all: [],
byKey: new Map(),
selected: new Set(),
container: null,
context: { funder: "", intended_repository: "Institutional repository" },
};
function rbV18Value(id) {
return document.getElementById(id)?.value?.trim() || "";
}
function rbV18JournalKey(journal) {
return String(journal?.id || journal?.scopus_id || journal?.issn || journal?.name || "");
}
function rbV18AllJournals(result) {
return [...(result?.journals || []), ...(result?.extended_list || [])];
}
function rbV18Quartile(journal) {
return journal?.quartile || journal?.ranking?.quartile || "";
}
function rbV18HIndex(journal) {
return Number(journal?.h_index ?? journal?.ranking?.h_index ?? 0) || 0;
}
function rbV18MatchedSubject(journal) {
const rows = Array.isArray(journal?.matched_subjects) ? journal.matched_subjects : [];
const withField = rows.filter(row => row && row.field);
if (!withField.length) return rbV18Quartile(journal) || "Not resolved";
return withField.slice(0, 2).map(row => `${row.field}${row.quartile ? ` (${row.quartile})` : ""}`).join("; ");
}
function rbV18GetManuscriptData() {
return {
title: rbV18Value("j-title"),
abstract: rbV18Value("j-abstract"),
keywords: rbV18Value("j-keywords"),
discipline: rbV18Value("j-discipline"),
article_type: rbV18Value("j-article-type") || "Original research article",
methods: rbV18Value("j-methods"),
audience: rbV18Value("j-audience"),
funder: rbV18Value("j-funder"),
institution: rbV18Value("j-institution"),
country: rbV18Value("j-country"),
apc_budget: rbV18Value("j-apc"),
access_preference: rbV18Value("j-access-pref") || "Any journal",
sharing_requirement: Boolean(document.getElementById("j-sharing-required")?.checked),
intended_repository: rbV18Value("j-repo-target") || "Institutional repository",
ranking_preference: rbV18Value("j-ranking-pref") || "No filter",
preferred_journals: rbV18Value("j-preferred"),
avoid_journals: rbV18Value("j-avoid"),
// Empty legacy fields keep the request compatible without reintroducing
// Green OA as a journal business-model filter.
oa_preference: "",
ranking_source: "",
speed_preference: "",
repository_target: "",
};
}
function rbV18GetSubjectData() {
return {
subject: rbV18Value("s-subject"),
ranking_preference: rbV18Value("s-ranking-pref") || "No filter",
access_preference: rbV18Value("s-access-pref") || "Any journal",
sharing_requirement: Boolean(document.getElementById("s-sharing-required")?.checked),
intended_repository: rbV18Value("s-repo-target") || "Institutional repository",
apc_budget: rbV18Value("s-apc"),
funder: rbV18Value("s-funder"),
preferred_journals: rbV18Value("s-preferred"),
avoid_journals: rbV18Value("s-avoid"),
model: getModel(),
language: getLanguage(),
};
}
function rbV18InitialiseState(result, container, mode, context) {
RB_DISCOVERY_STATE.generation += 1;
RB_DISCOVERY_STATE.mode = mode;
RB_DISCOVERY_STATE.result = result;
RB_DISCOVERY_STATE.all = rbV18AllJournals(result);
RB_DISCOVERY_STATE.byKey = new Map();
RB_DISCOVERY_STATE.selected = new Set();
RB_DISCOVERY_STATE.container = container;
RB_DISCOVERY_STATE.context = context || { funder: "", intended_repository: "Institutional repository" };
RB_DISCOVERY_STATE.all.forEach(journal => {
const key = rbV18JournalKey(journal);
if (key) RB_DISCOVERY_STATE.byKey.set(key, journal);
});
RB_COVER_LETTER_PAYLOADS.clear();
RB_RELATED_WORK_PAYLOADS.clear();
}
function rbV18List(items, emptyText) {
const values = (items || []).filter(Boolean);
return values.length
? `<ul class="rb-criteria-list">${values.map(item => `<li>${esc(item)}</li>`).join("")}</ul>`
: `<p style="font-size:12px;color:var(--text-muted)">${esc(emptyText)}</p>`;
}
function rbV18RenderCriteria(result) {
return `
<section class="rb-criteria-card" aria-label="Applied and unverified selection criteria">
<div class="rb-criteria-columns">
<div class="rb-verified-box">
<h4>โ Applied before ranking</h4>
${rbV18List(result.applied_criteria, "No additional hard filters were selected.")}
</div>
<div class="rb-unverified-box">
<h4>Needs a current or manual check</h4>
${rbV18List(result.unverified_criteria, "No unresolved criteria were reported.")}
</div>
</div>
<p style="font-size:11.5px;color:var(--text-muted)">ResearchBee does not silently relax a selected hard filter. Missing policy, fee, or timing data remains unknown.</p>
</section>`;
}
function rbV18RenderUnderstanding(result, mode) {
if (mode === "manuscript") {
const understanding = result.manuscript_understanding || {};
const keywords = Array.isArray(understanding.keywords) ? understanding.keywords : [];
return `
${renderManuscriptUnderstanding(understanding)}
<div class="rb-refine-row">
<button class="rb-refine-btn" id="rb-refine-manuscript" type="button">Review or correct inferred details</button>
${keywords.length ? `<span style="font-size:11.5px;color:var(--text-muted);align-self:center">Inferred keywords: ${keywords.map(esc).join(", ")}</span>` : ""}
</div>`;
}
const subject = result.subject_understanding || {};
const mapping = result.subject_mapping || {};
const alternatives = Array.isArray(mapping.alternatives) ? mapping.alternatives : [];
const mappingClass = mapping.spelling_corrected ? " spelling"
: (mapping.used_nearest_category || mapping.match_type === "synonym") ? " nearest" : "";
const mappingMessage = result.user_message || "Subject relevance is based on the verified ASJC/SCImago mapping.";
return `
<section class="card understanding">
<div class="card-header"><h2>๐งญ Subject interpretation</h2></div>
<div class="card-body">
<p style="font-size:14px">${esc(subject.summary || "Verified subject discovery")}</p>
<div class="tag-row">
${subject.category ? `<span class="badge b-primary">${esc(subject.category)}</span>` : ""}
${subject.area ? `<span class="badge b-muted">${esc(subject.area)}</span>` : ""}
${subject.confidence ? `<span class="badge b-muted">${esc(subject.confidence)} match</span>` : ""}
</div>
<div class="rb-subject-map-note${mappingClass}">${esc(mappingMessage)}</div>
${alternatives.length ? `<div class="rb-subject-alternatives">
<span class="rb-subject-alternatives-label">Try another verified category:</span>
${alternatives.map(item => `<button type="button" class="rb-refine-btn rb-subject-suggestion" data-subject="${esc(item.category || item)}">${esc(item.category || item)}${item.n_journals ? ` (${item.n_journals})` : ""}</button>`).join("")}
</div>` : ""}
</div>
</section>`;
}
function rbV18IdentityBadge(journal) {
const identity = journal.identity_verification || {};
const label = identity.status === "Confirmed" ? "Journal identity verified" : "Confirm journal identity";
return `<span class="rb-id-badge" title="${esc(identity.method || "Verified journal index")}">โ ${esc(label)}</span>`;
}
function rbV18AccessBadge(journal) {
const access = journal.access_model || {};
const evidence = access.verification || "Journal-level source flag; verify current terms on the journal website.";
if (access.code === "diamond") return `<span class="badge b-diamond" title="${esc(evidence)}">โ Diamond OA ยท source flag</span>`;
if (access.code === "open") return `<span class="badge b-success" title="${esc(evidence)}">โ Open-access journal ยท source flag</span>`;
return `<span class="badge b-muted" title="${esc(evidence)}">OA status not confirmed</span>`;
}
function rbV18PolicyBadge(journal) {
const policy = journal.sharing_policy || {};
if (policy.status !== "confirmed") return "";
const state = policy.requirement_status;
if (state === "meets") return `<span class="badge b-success">AAM sharing option found</span>`;
if (state === "conditional") return `<span class="badge b-warning">AAM sharing conditional</span>`;
if (state === "does_not_meet") return `<span class="badge b-danger">AAM sharing not permitted</span>`;
return `<span class="badge b-warning">Policy retrieved ยท applicability check</span>`;
}
function rbV18RenderFitBreakdown(journal) {
const components = Array.isArray(journal.fit_components) ? journal.fit_components : [];
if (!components.length) return "";
return `
<div class="rb-fit-breakdown">
<h5>Why this fit score was assigned</h5>
${journal.scoring_note ? `<p class="rb-scoring-note">${esc(journal.scoring_note)}</p>` : ""}
${components.map(component => {
const score = Number(component.score || 0);
const max = Math.max(Number(component.max || 0), 1);
const width = Math.max(0, Math.min(100, Math.round(score / max * 100)));
return `<div class="rb-fit-component">
<span class="rb-fit-component-label">${esc(component.label || component.key)}</span>
<span class="rb-fit-bar" aria-hidden="true"><span style="width:${width}%"></span></span>
<span class="rb-fit-component-value">${score}/${max}</span>
</div>`;
}).join("")}
<p style="font-size:11px;color:var(--text-muted);margin-top:7px">Scope and subject fit carry more weight than journal rank. The score supports comparison; it does not predict acceptance.</p>
</div>`;
}
function rbV18ArticleUrl(item) {
return safeHttpsUrl(item?.doi || item?.openalex_url || "");
}
function rbV18RenderEvidence(journal) {
const works = Array.isArray(journal.similar_articles) ? journal.similar_articles : [];
const note = journal.article_evidence_summary || (
works.length ? "Recent article-title evidence supports this match." : "Recent article evidence was unavailable."
);
return `
<div class="rb-evidence">
<h5>๐ Recent article evidence</h5>
<p class="rb-evidence-note">${esc(note)}${journal.article_similarity_score ? ` Local title-overlap signal: ${esc(String(journal.article_similarity_score))}/100.` : ""}</p>
${works.length ? `<ol class="rb-evidence-list">${works.slice(0, 3).map(item => {
const url = rbV18ArticleUrl(item);
const title = esc(item.title || "Untitled work");
const meta = [item.year, item.cited_by != null ? `${item.cited_by} citations` : ""].filter(Boolean).join(" ยท ");
return `<li>${url ? `<a href="${esc(url)}" target="_blank" rel="noopener noreferrer">${title}</a>` : title}${meta ? ` <span style="color:var(--text-muted)">(${esc(meta)})</span>` : ""}</li>`;
}).join("")}</ol>` : `<p style="font-size:12px;color:var(--text-muted)">No recent OpenAlex article titles were available. Review the journalโs current aims, scope and recent issues manually.</p>`}
</div>`;
}
function rbV18RenderAccessPanel(journal) {
const access = journal.access_model || {};
return `
<div class="rb-info-panel rb-access-panel">
<h5>๐ Journal access model</h5>
<p><strong>${esc(access.label || "Not confirmed")}</strong></p>
<p>${esc(access.author_fee_status || "Current title-level APC is not available in the journal index.")}</p>
<p style="margin-top:5px;font-size:11px">${esc(access.verification || "Verify current access and fee terms on the journal website.")}</p>
</div>`;
}
function rbV18RenderKuPanel(journal) {
const publisherSignal = Boolean(journal.ku_agreement_publisher);
const candidate = Boolean(journal.ku_apc_candidate);
const heading = candidate
? "Potential KU publisher-agreement candidate"
: publisherSignal
? "KU publisher-level agreement signal"
: "No configured KU agreement signal";
const publisherLink = publisherSignal ? safeHttpsUrl(getKuPubPage(journal.publisher)) : "";
return `
<div class="rb-info-panel rb-ku-panel">
<h5>๐ KU APC planning</h5>
<p><strong>${esc(heading)}</strong></p>
<p>${esc(journal.ku_apc_status || "Eligibility is not confirmed by Journal Finder.")}</p>
${publisherSignal ? `<div style="display:flex;gap:8px;flex-wrap:wrap;margin-top:7px">
${publisherLink ? `<a href="${esc(publisherLink)}" target="_blank" rel="noopener noreferrer" class="vlink">Publisher process</a>` : ""}
<a href="${esc(KU_RATINGS)}" target="_blank" rel="noopener noreferrer" class="vlink">Check exact rating eligibility</a>
</div>` : ""}
</div>`;
}
function rbV18AamSummary(journal) {
const policy = journal.sharing_policy || {};
if (policy.status !== "confirmed") return policy.status === "unavailable" ? "Policy unavailable" : "Not checked";
const postprint = policy.green_oa?.postprint || {};
const parts = [postprint.allowed || "Unclear", postprint.embargo, postprint.where].filter(Boolean);
return parts.join(" ยท ") || "Retrieved; review options";
}
function rbV18PolicyRequirementLabel(state) {
return {
meets: "Accepted-manuscript requirement appears met",
conditional: "Accepted-manuscript sharing is conditional",
does_not_meet: "Retrieved options do not meet the requirement",
unknown: "Applicability remains unknown",
not_requested: "No sharing requirement selected",
}[state] || "Applicability remains unknown";
}
function rbV18RenderPolicyPanel(journal) {
const key = rbV18JournalKey(journal);
const policy = journal.sharing_policy || { status: "not_checked" };
const verifyUrl = safeHttpsUrl(policy.verify_url || journal.verify_links?.sherpa_romeo || "");
let resultHtml = "";
if (policy.status === "loading") {
resultHtml = `<div class="rb-policy-unknown">Checking Jisc Open Policy Finderโฆ</div>`;
} else if (policy.status === "confirmed" && policy.green_oa) {
const green = policy.green_oa;
resultHtml = `
<div class="rb-policy-result">
${provenanceBadge(green, "journal_api")}
${rbRenderPolicyEvaluation(policy.policy_evaluation || green.policy_evaluation)}
<p class="rb-policy-status" style="margin-top:8px"><strong>${esc(rbV18PolicyRequirementLabel(policy.requirement_status))}.</strong> Select the policy option that applies to the manuscript, funder and deposit location.</p>
<div class="version-list">
${renderVersionBlock("Submitted version / preprint", green.preprint)}
${renderVersionBlock("Accepted manuscript (AAM / postprint)", green.postprint)}
${renderVersionBlock("Published version (Version of Record)", green.published_version)}
</div>
${renderSourcePanel(green, {})}
<p style="font-size:11.5px;color:var(--text-muted);margin-top:9px">This is a journal-level policy. After publication, use the article DOI in License Checking for an article-level permission and Khazna status check.</p>
</div>`;
} else if (policy.status === "unavailable") {
resultHtml = `<div class="rb-policy-result rb-policy-unknown"><strong>Policy not retrieved.</strong> ${esc(policy.message || "No matching journal-level record was available.")}</div>`;
} else {
resultHtml = `<p class="rb-policy-status">Sharing policy not yet checked. Retrieve the journal-level version, embargo, licence and location options before planning deposit.</p>`;
}
return `
<div class="rb-info-panel rb-policy-panel">
<h5>๐ก Sharing policy</h5>
${resultHtml}
<div class="rb-policy-actions" style="margin-top:8px">
<button type="button" class="rb-policy-check-btn" data-policy-key="${esc(key)}" ${policy.status === "loading" ? "disabled aria-busy=\"true\"" : ""}>${policy.status === "confirmed" ? "Refresh policy" : "Check sharing policy"}</button>
${verifyUrl ? `<a href="${esc(verifyUrl)}" target="_blank" rel="noopener noreferrer" class="vlink">Open public record search</a>` : ""}
</div>
</div>`;
}
function rbV18RenderVerification(journal) {
const links = journal.verify_links || {};
return renderVerifyLinks({
scopus: links.scopus || links.scopus_sources,
sherpa_romeo: links.sherpa_romeo,
doaj: links.doaj,
openalex: links.openalex,
});
}
function rbV18RenderDetailedCard(journal, index, mode) {
const key = rbV18JournalKey(journal);
const uid = rbDomKey(key, `journal-${index}`);
const quartile = rbV18Quartile(journal);
const qRank = ({ Q1: 1, Q2: 2, Q3: 3, Q4: 4 })[quartile] || 9;
const accessRank = journal.access_model?.code === "diamond" ? 0 : journal.access_model?.code === "open" ? 1 : 2;
const actions = mode === "manuscript"
? `${renderCoverLetterBtn(journal, window.ResearchBee.lastManuscript || {}, uid)}`
: `<button type="button" class="rb-refine-btn rb-analyse-from-subject" data-journal-key="${esc(key)}">Analyse this journal with a manuscript</button>`;
const ranking = journal.ranking;
const rankingNote = ranking ? [ranking.source, ranking.year, ranking.verification_status || "Unverified โ check manually"].filter(Boolean).join(" ยท ") : "";
return `
<article class="card j-card rb-discovery-card" data-key="${esc(key)}"
data-fit="${Number(journal.fit_score || 0)}" data-quartile="${qRank}"
data-hindex="${rbV18HIndex(journal)}" data-access="${accessRank}">
<div class="rb-fit-score" title="Explainable comparison score, not an acceptance prediction"><strong>${esc(String(journal.fit_score ?? "โ"))}</strong><span>fit / 100</span></div>
<div class="j-header">
<div class="j-meta"><span class="rb-rank-number">#${index + 1}</span> ยท ${esc(journal.publisher || "Publisher not listed")}${journal.issn ? ` ยท ISSN ${esc(journal.issn)}` : ""}</div>
<div class="j-title">${rbJournalTitle(journal)}</div>${rbJournalLinks(journal)}
<div class="rb-identity-row">
${rbV18IdentityBadge(journal)}
${quartile ? quartileBadge(quartile) : ""}
${rbV18AccessBadge(journal)}
${rbV18PolicyBadge(journal)}
</div>
<label class="rb-card-select"><input class="rb-compare-checkbox" type="checkbox" data-compare-key="${esc(key)}"/> Add to comparison</label>
</div>
<div class="j-body">
${renderIndexationNotice(journal)}
<div class="rb-card-fit"><h5>๐ฏ Why it fits</h5><p>${esc(journal.fit_reason || "Verified subject and journal metadata support this match.")}</p></div>
${rankingNote ? `<p class="rb-card-ranking-note"><strong>Ranking source and verification:</strong> ${esc(rankingNote)}</p>` : ""}
<div class="rb-refine-row rb-card-primary-actions">${actions}</div>
<details class="rb-journal-details">
<summary><span class="rb-details-closed-label">View journal details</span><span class="rb-details-open-label">Hide journal details</span></summary>
<div class="rb-journal-details-body">
<div class="detail-grid">
<div class="detail-item"><h5>๐ฅ Audience match</h5><p>${esc(journal.audience_match || "Review the journal's current audience and recent issues.")}</p></div>
<div class="detail-item"><h5>๐ Submission strategy</h5><p>${esc(journal.submission_strategy || "Review current author instructions before submission.")}</p></div>
<div class="detail-item"><h5>๐ Open Access planning</h5><p>${esc(journal.open_access_planning || "Check current access, fees and sharing rights separately.")}</p></div>
</div>
${rbV18RenderFitBreakdown(journal)}
${renderRankingBlock(journal.ranking, journal)}
<div class="rb-section-grid">
${rbV18RenderAccessPanel(journal)}
${rbV18RenderKuPanel(journal)}
</div>
<div id="rb-policy-panel-${uid}" class="rb-policy-panel-host" data-policy-host-key="${esc(key)}">${rbV18RenderPolicyPanel(journal)}</div>
${rbV18RenderEvidence(journal)}
${renderOpenAlexMetrics(journal.openalex)}
${renderRelatedWorksAccordion(journal, uid)}
${rbV18RenderVerification(journal)}
${renderDeeperAnalysisStrip(journal.name, journal.issn)}
</div>
</details>
</div>
</article>`;
}
function rbV18RenderExtraTable(journals) {
if (!journals.length) return "";
return `
<div class="extended-wrap">
<button type="button" class="ext-toggle" id="rb-extra-toggle"><span>๐ Show ${journals.length} additional verified possibilities</span><span class="ext-arrow">โผ</span></button>
<div class="ext-body" id="rb-extra-body">
<table class="ext-table rb-extra-table">
<thead><tr><th>#</th><th>Journal</th><th>Fit</th><th>Matched field</th><th>Access</th><th>Shortlist & policy</th></tr></thead>
<tbody>${journals.map((journal, index) => {
const key = rbV18JournalKey(journal);
const q = rbV18Quartile(journal);
return `<tr data-key="${esc(key)}">
<td>${index + 6}</td>
<td><strong>${rbJournalTitle(journal)}</strong>${rbJournalLinks(journal)}${rbCategoryRows(journal)}<br><span style="font-size:11px;color:var(--text-muted)">${esc(journal.publisher || "")}${journal.issn ? ` ยท ${esc(journal.issn)}` : ""}</span></td>
<td><span class="rb-extra-score">${esc(String(journal.fit_score ?? "โ"))}/100</span></td>
<td>${q ? quartileBadge(q) : ""}<span style="display:block;margin-top:4px;font-size:11px;color:var(--text-muted)">${esc(rbV18MatchedSubject(journal))}</span></td>
<td>${rbV18AccessBadge(journal)}</td>
<td><div class="rb-extra-actions">
<label style="display:inline-flex;align-items:center;gap:4px;font-size:10.5px"><input class="rb-compare-checkbox" type="checkbox" data-compare-key="${esc(key)}"/> Compare</label>
<button type="button" class="rb-extra-policy" data-policy-key="${esc(key)}">Check policy</button>
${RB_DISCOVERY_STATE.mode === "subject" ? `<button type="button" class="rb-extra-policy rb-analyse-from-subject" data-journal-key="${esc(key)}">Analyse manuscript</button>` : ""}
</div></td>
</tr><tr class="rb-extra-policy-row"><td colspan="6"><details><summary>${esc(journal.name)} โ Sharing policy details</summary><div class="rb-policy-panel-host" data-policy-host-key="${esc(key)}">${rbV18RenderPolicyPanel(journal)}</div></details></td></tr>`;
}).join("")}</tbody>
</table>
</div>
</div>`;
}
function rbV18ComparisonRows(journals) {
const rows = [
["Fit score", j => `${j.fit_score ?? "โ"}/100`],
["Relevant subject / quartile", j => rbV18MatchedSubject(j)],
["Current index status", j => j.currently_indexed === false ? "Not currently indexed" : "Active Scopus source record"],
["Access model", j => j.access_model?.label || "Not confirmed"],
["Current APC", j => j.access_model?.author_fee_status || "Unknown"],
["KU agreement signal", j => j.ku_apc_status || "Not confirmed"],
["Accepted manuscript policy", j => rbV18AamSummary(j)],
["Recent article evidence", j => `${(j.similar_articles || []).length} representative article(s)${j.article_similarity_score ? ` ยท overlap ${j.article_similarity_score}/100` : ""}`],
["Key caution", j => j.warn ? (j.state_message || "Indexation warning") : (j.sharing_policy?.status === "confirmed" ? "Review policy applicability and current journal instructions" : "Sharing policy and current fee still need checking")],
];
return rows.map(([label, getter]) => `
<tr><td>${esc(label)}</td>${journals.map(journal => `<td>${esc(getter(journal))}</td>`).join("")}</tr>`).join("");
}
function rbV18RenderComparison() {
const panel = document.getElementById("rb-comparison-panel");
if (!panel) return;
const journals = RB_DISCOVERY_STATE.all.filter(journal => RB_DISCOVERY_STATE.selected.has(rbV18JournalKey(journal)));
if (!journals.length) {
panel.innerHTML = `<div class="rb-comparison-empty">Select two to five journals to build a side-by-side decision table. You may select one journal first and add others later.</div>`;
return;
}
panel.innerHTML = `
<div class="rb-comparison-head">
<div><h3>Journal decision table</h3><span class="rb-shortlist-count">${journals.length} of 5 selected</span></div>
<div style="display:flex;gap:7px;flex-wrap:wrap">
<button type="button" class="rb-export-compare" id="rb-export-comparison">Export CSV</button>
<button type="button" class="rb-export-compare" id="rb-clear-comparison">Clear shortlist</button>
</div>
</div>
<div class="rb-comparison-scroll"><table class="rb-comparison-table">
<thead><tr><th>Criterion</th>${journals.map(journal => `<th>${rbJournalTitle(journal)}</th>`).join("")}</tr></thead>
<tbody><tr><td>${esc(rbText("Journal links"))}</td>${journals.map(j => `<td>${rbJournalLinks(j)}</td>`).join("")}</tr><tr><td>SCImago SJR</td>${journals.map(j => `<td>${rbCategoryRows(j)}</td>`).join("")}</tr>${rbV18ComparisonRows(journals)}</tbody>
</table></div>`;
document.getElementById("rb-export-comparison")?.addEventListener("click", rbV18ExportComparison);
document.getElementById("rb-clear-comparison")?.addEventListener("click", () => {
RB_DISCOVERY_STATE.selected.clear();
RB_DISCOVERY_STATE.container?.querySelectorAll(".rb-compare-checkbox").forEach(box => { box.checked = false; });
rbV18RenderComparison();
rbV18UpdateShortlistCount();
});
rbApplyUiLanguage(panel);
}
function rbV18Csv(value) {
let text = String(value ?? "");
if (/^[\s]*[=+@-]/.test(text) || /^[\t\r\n]/.test(text)) text = "'" + text;
return `"${text.replace(/"/g, '\"\"')}"`;
}
function rbV18ExportComparison() {
const journals = RB_DISCOVERY_STATE.all.filter(journal => RB_DISCOVERY_STATE.selected.has(rbV18JournalKey(journal)));
if (!journals.length) return;
const headers = ["Journal", "Publisher", "ISSN", "Fit score", "Matched subject", "Quartile", "H-index", "Access model", "APC status", "KU agreement signal", "Accepted manuscript policy", "Recent evidence", "Scopus ID"];
const rows = journals.map(journal => [
journal.name, journal.publisher, journal.issn, journal.fit_score,
rbV18MatchedSubject(journal), rbV18Quartile(journal), rbV18HIndex(journal),
journal.access_model?.label, journal.access_model?.author_fee_status,
journal.ku_apc_status, rbV18AamSummary(journal),
`${(journal.similar_articles || []).length} article(s); overlap ${journal.article_similarity_score || 0}/100`,
journal.scopus_id || journal.id,
]);
const csv = [headers, ...rows].map(row => row.map(rbV18Csv).join(",")).join("\r\n");
const blob = new Blob(["\ufeff" + csv], { type: "text/csv;charset=utf-8" });
const url = URL.createObjectURL(blob);
const link = document.createElement("a");
link.href = url;
link.download = "researchbee-journal-comparison.csv";
document.body.appendChild(link);
link.click();
link.remove();
URL.revokeObjectURL(url);
}
function rbV18UpdateShortlistCount(message = "") {
const count = document.getElementById("rb-shortlist-count");
if (count) count.textContent = message || (getLanguage() === "arabic" ? `ุชู
ุงุฎุชูุงุฑ ${RB_DISCOVERY_STATE.selected.size} ู
ู 5` : `${RB_DISCOVERY_STATE.selected.size} of 5 selected`);
}
function rbV18SetCompare(key, checked, checkbox) {
if (!key) return;
if (checked && RB_DISCOVERY_STATE.selected.size >= 5 && !RB_DISCOVERY_STATE.selected.has(key)) {
if (checkbox) checkbox.checked = false;
rbV18UpdateShortlistCount("Maximum 5 journals. Remove one before adding another.");
return;
}
if (checked) RB_DISCOVERY_STATE.selected.add(key);
else RB_DISCOVERY_STATE.selected.delete(key);
RB_DISCOVERY_STATE.container?.querySelectorAll(".rb-compare-checkbox").forEach(box => {
if (box.dataset.compareKey === key) box.checked = RB_DISCOVERY_STATE.selected.has(key);
});
rbV18UpdateShortlistCount();
rbV18RenderComparison();
}
function rbV18RefreshPolicyPanel(key) {
const journal = RB_DISCOVERY_STATE.byKey.get(key);
if (!journal) return;
RB_DISCOVERY_STATE.container?.querySelectorAll(".rb-policy-panel-host").forEach(host => {
if (host.dataset.policyHostKey === key) {
host.innerHTML = rbV18RenderPolicyPanel(journal);
const details = host.closest("details");
if (details && journal.sharing_policy?.status === "loading") details.open = true;
}
});
RB_DISCOVERY_STATE.container?.querySelectorAll("[data-policy-key]").forEach(button => {
if (button.dataset.policyKey !== key || button.closest(".rb-policy-panel-host")) return;
const status = journal.sharing_policy?.status;
button.textContent = status === "confirmed" ? "Policy checked" : status === "loading" ? "Checkingโฆ" : "Check policy";
button.disabled = status === "loading";
});
rbV18WirePolicyButtons(RB_DISCOVERY_STATE.container);
rbV18RenderComparison();
}
async function rbV18CheckPolicies(keys, trigger) {
const unique = [...new Set((keys || []).filter(key => RB_DISCOVERY_STATE.byKey.has(key) && RB_DISCOVERY_STATE.byKey.get(key).sharing_policy?.status !== "loading"))].slice(0, 5);
if (!unique.length) return;
const generation = RB_DISCOVERY_STATE.generation;
const journalsByKey = new Map(unique.map(key => [key, RB_DISCOVERY_STATE.byKey.get(key)]));
const context = { ...RB_DISCOVERY_STATE.context };
const original = trigger?.textContent || "";
if (trigger) { trigger.disabled = true; trigger.textContent = "Checkingโฆ"; }
unique.forEach(key => {
const journal = journalsByKey.get(key);
journal.sharing_policy = { ...(journal.sharing_policy || {}), status: "loading", message: "Checking Jisc Open Policy Finderโฆ" };
rbV18RefreshPolicyPanel(key);
});
try {
const response = await callAPI("/api/check-journal-policies", {
journals: unique.map(key => {
const journal = journalsByKey.get(key);
return { key, name: journal.name, issn: journal.issn || "", publisher: journal.publisher || "" };
}),
manuscript_version: "Accepted manuscript (AAM / postprint)",
intended_repository: context.intended_repository || "Institutional repository",
funder: context.funder || "",
language: getLanguage(),
});
if (generation !== RB_DISCOVERY_STATE.generation) return;
(response.results || []).forEach(item => {
const journal = RB_DISCOVERY_STATE.byKey.get(String(item.key || ""));
if (journal) journal.sharing_policy = item.policy || { status: "unavailable", requirement_status: "unknown", message: "Policy not retrieved." };
});
unique.forEach(key => {
const journal = journalsByKey.get(key);
if (journal.sharing_policy?.status === "loading") journal.sharing_policy = { status: "unavailable", requirement_status: "unknown", message: "The service did not return a policy result for this journal. Please try again." };
});
} catch (error) {
if (generation !== RB_DISCOVERY_STATE.generation) return;
unique.forEach(key => {
const journal = journalsByKey.get(key);
journal.sharing_policy = { status: "unavailable", requirement_status: "unknown", message: error.message || "Policy lookup failed." };
});
} finally {
if (generation === RB_DISCOVERY_STATE.generation) { unique.forEach(rbV18RefreshPolicyPanel); rbApplyUiLanguage(RB_DISCOVERY_STATE.container); }
if (trigger) { trigger.disabled = false; trigger.textContent = original || "Check policies for top 3"; }
}
}
function rbV18WirePolicyButtons(root) {
root?.querySelectorAll("[data-policy-key]").forEach(button => {
if (button.dataset.rbPolicyWired === "1") return;
button.dataset.rbPolicyWired = "1";
button.addEventListener("click", () => rbV18CheckPolicies([button.dataset.policyKey || ""], button));
});
}
function rbV18PrefillManuscriptFromResult() {
const understanding = RB_DISCOVERY_STATE.result?.manuscript_understanding || {};
const fillIfBlank = (id, value) => {
const element = document.getElementById(id);
if (element && !element.value.trim() && value) element.value = Array.isArray(value) ? value.join(", ") : value;
};
fillIfBlank("j-keywords", understanding.keywords);
fillIfBlank("j-discipline", understanding.discipline);
fillIfBlank("j-methods", understanding.methods);
fillIfBlank("j-audience", understanding.audience);
const details = document.getElementById("manuscript-advanced");
if (details) details.open = true;
switchMode("manuscript");
document.getElementById("journal-form")?.scrollIntoView({ behavior: "smooth", block: "start" });
}
function rbV18AnalyseFromSubject(key) {
const journal = RB_DISCOVERY_STATE.byKey.get(key);
if (!journal) return;
switchMode("manuscript");
const preferred = document.getElementById("j-preferred");
if (preferred) {
const current = preferred.value.split(/[;\n]+/).map(value => value.trim()).filter(Boolean);
if (!current.some(value => value.toLowerCase() === String(journal.name).toLowerCase())) current.unshift(journal.name);
preferred.value = current.join("\n");
}
const details = document.getElementById("manuscript-advanced");
if (details) details.open = true;
document.getElementById("journal-form")?.scrollIntoView({ behavior: "smooth", block: "start" });
}
function rbV18WireDiscovery(root) {
root?.querySelectorAll(".rb-edit-search").forEach(button => button.addEventListener("click", () => rbV18EditSearch(button.dataset.editMode || "subject")));
root?.querySelectorAll(".rb-compare-checkbox").forEach(box => {
box.checked = RB_DISCOVERY_STATE.selected.has(box.dataset.compareKey || "");
box.addEventListener("change", () => rbV18SetCompare(box.dataset.compareKey || "", box.checked, box));
});
rbV18WirePolicyButtons(root);
document.getElementById("rb-bulk-policy")?.addEventListener("click", event => {
const keys = RB_DISCOVERY_STATE.all.slice(0, 3).map(rbV18JournalKey);
rbV18CheckPolicies(keys, event.currentTarget);
});
document.getElementById("rb-compare-open")?.addEventListener("click", () => {
document.getElementById("rb-comparison-panel")?.scrollIntoView({ behavior: "smooth", block: "start" });
});
document.getElementById("rb-extra-toggle")?.addEventListener("click", event => {
event.currentTarget.classList.toggle("open");
document.getElementById("rb-extra-body")?.classList.toggle("show");
});
document.getElementById("rb-refine-manuscript")?.addEventListener("click", rbV18PrefillManuscriptFromResult);
root?.querySelectorAll(".rb-analyse-from-subject").forEach(button => {
button.addEventListener("click", () => rbV18AnalyseFromSubject(button.dataset.journalKey || ""));
});
document.getElementById("journal-reset")?.addEventListener("click", () => rbV18Reset("manuscript"));
document.getElementById("subject-reset")?.addEventListener("click", () => rbV18Reset("subject"));
root?.querySelectorAll(".rb-subject-suggestion").forEach(button => {
button.addEventListener("click", () => {
const input = document.getElementById("s-subject");
if (input) input.value = button.dataset.subject || "";
document.getElementById("subject-form")?.requestSubmit();
});
});
wireCoverLetterButtons(root);
wireRelatedWorks(root);
rbV18RenderComparison();
}
function rbV18EditSearch(mode) {
switchMode(mode);
const form = document.getElementById(mode === "subject" ? "subject-form" : "journal-form");
form?.scrollIntoView({ behavior: "smooth", block: "start" });
form?.querySelector("input, textarea")?.focus({ preventScroll: true });
}
function rbV18Reset(mode) {
rbCancelRequest("discovery");
RB_DISCOVERY_STATE.generation += 1;
const container = document.getElementById(mode === "subject" ? "subject-results" : "journal-results");
const progress = document.getElementById(mode === "subject" ? "subject-progress" : "journal-progress");
const form = document.getElementById(mode === "subject" ? "subject-form" : "journal-form");
if (container) { container.innerHTML = ""; container.classList.add("hidden"); }
progress?.classList.remove("show");
form?.reset();
RB_DISCOVERY_STATE.selected.clear();
form?.scrollIntoView({ behavior: "smooth", block: "start" });
}
function rbV18RenderNoResults(result, container, mode) {
const suggestions = Array.isArray(result.suggestions) ? result.suggestions : [];
const title = result.filter_no_match ? "No journal met every selected hard filter" : "No verified journal match found";
const message = result.global_notes || result.user_message || "Try a recognised subject or revise the selected filters.";
container.innerHTML = `
<div class="rb-no-results">
<h3>${esc(title)}</h3>
<p>${esc(message)}</p>
${suggestions.length ? `<div class="rb-refine-row" style="justify-content:center;margin-top:13px">${suggestions.map(item => `<button type="button" class="rb-refine-btn rb-subject-suggestion" data-subject="${esc(item.category || item)}">${esc(item.category || item)}${item.n_journals ? ` (${item.n_journals})` : ""}</button>`).join("")}</div>` : ""}
<div class="rb-refine-row" style="justify-content:center;margin-top:13px"><button type="button" class="rb-refine-btn rb-edit-search" data-edit-mode="${mode}">Edit search</button></div>
</div>`;
rbV18WireDiscovery(container);
rbApplyUiLanguage(container);
}
function rbV18RenderDiscoveryResults(result, container, mode) {
const all = rbV18AllJournals(result);
const context = mode === "manuscript"
? { funder: rbV18Value("j-funder"), intended_repository: rbV18Value("j-repo-target") || "Institutional repository" }
: { funder: rbV18Value("s-funder"), intended_repository: rbV18Value("s-repo-target") || "Institutional repository" };
rbV18InitialiseState(result, container, mode, context);
if (!all.length) {
rbV18RenderNoResults(result, container, mode);
return;
}
const intro = mode === "manuscript"
? "Here are the strongest verified journal matches for your manuscript. Scope fit is weighted more heavily than rank."
: "Here are active, verified journals in the interpreted subject. Use the evidence and comparison table to refine the shortlist.";
container.innerHTML = `
${renderMascotRow(intro)}
<div class="results-header">
<h2 class="results-title">${mode === "manuscript" ? "Manuscript journal analysis" : "Subject journal discovery"}</h2>
<div class="results-meta"><span class="count-chip">${all.length} verified journal${all.length === 1 ? "" : "s"}</span><button class="btn btn-ghost" id="${mode === "subject" ? "subject-reset" : "journal-reset"}" type="button">โฉ Start over</button></div>
</div>
${rbV18RenderUnderstanding(result, mode)}
${rbV18RenderCriteria(result)}
${result.scoring_note ? `<div class="policy-notes rb-scoring-note" role="note">${esc(result.scoring_note)}</div>` : ""}
<div class="rb-journal-toolbar">
<div class="sort-bar" id="journal-sort-bar" style="margin:0">
<span class="sort-label">Sort detailed shortlist:</span>
<button class="sort-btn active" type="button" data-sort="fit">๐ฏ Best fit</button>
<button class="sort-btn" type="button" data-sort="quartile">๐ Quartile</button>
<button class="sort-btn" type="button" data-sort="hindex">๐ H-index</button>
</div>
<div style="display:flex;gap:7px;align-items:center;flex-wrap:wrap">
<span class="rb-shortlist-count" id="rb-shortlist-count">0 of 5 selected</span>
<button type="button" class="rb-policy-bulk" id="rb-bulk-policy">Check policies for top 3</button>
<button type="button" class="rb-compare-open" id="rb-compare-open">Open comparison</button>
</div>
</div>
<h3 style="font-family:Georgia,serif;font-size:22px;margin:0 0 10px">๐ Strongest verified matches</h3>
<div id="journal-cards-wrap">${(result.journals || []).map((journal, index) => rbV18RenderDetailedCard(journal, index, mode)).join("")}</div>
${rbV18RenderExtraTable(result.extended_list || [])}
<section class="rb-comparison-panel" id="rb-comparison-panel" aria-live="polite"></section>
${renderNextActions(result.next_actions, result.global_notes)}
${renderHelpCard()}
${renderJournalFinderCard()}`;
container.querySelectorAll("#journal-sort-bar .sort-btn").forEach(button => {
button.addEventListener("click", () => window.ResearchBee.sortJournalCards(button.dataset.sort || "fit", button));
});
rbV18WireDiscovery(container);
rbApplyUiLanguage(container);
container.scrollIntoView({ behavior: "smooth", block: "start" });
}
function rbV18RenderJournalResults(result, container) {
rbV18RenderDiscoveryResults(result, container, "manuscript");
}
function rbV18RenderSubjectResults(result, container) {
rbV18RenderDiscoveryResults(result, container, "subject");
}
function rbV18JournalTab() {
const form = document.getElementById("journal-form");
const results = document.getElementById("journal-results");
if (!form || !results) return;
form.addEventListener("submit", async event => {
event.preventDefault();
const manuscript = rbV18GetManuscriptData();
if (!manuscript.title || !manuscript.abstract) return;
window.ResearchBee.lastManuscript = manuscript;
RB_DISCOVERY_STATE.generation += 1;
const generation = RB_DISCOVERY_STATE.generation;
hideProgress("subject-progress");
const otherResults = document.getElementById("subject-results");
if (otherResults) { otherResults.innerHTML = ""; otherResults.classList.add("hidden"); }
const submit = form.querySelector(".btn-primary");
submit.dataset.requestGeneration = String(generation);
submit.disabled = true;
submit.textContent = rbText("Analysing verified candidatesโฆ");
results.innerHTML = "";
results.classList.remove("hidden");
showProgress("journal-progress", [
"Classifying the manuscript into verified subject fieldsโฆ",
"Retrieving active journals and enforcing hard filtersโฆ",
"Checking recent article evidence and ranking fitโฆ",
manuscript.sharing_requirement ? "Checking accepted-manuscript sharing for the strongest candidatesโฆ" : "Building the evidence-rich shortlistโฆ",
], { requestKey: "discovery" });
try {
setStep("journal-progress", 1);
const data = await callAPI("/api/analyze-journal", { manuscript, model: getModel(), language: getLanguage() }, { requestKey: "discovery" });
if (generation !== RB_DISCOVERY_STATE.generation) return;
setStep("journal-progress", 2);
setStep("journal-progress", 3);
const apiResult = data.result || {};
if (apiResult.schema_version !== "journal_discovery_v2") {
throw new Error("ResearchBee front-end/back-end version mismatch. Refresh the page after deploying the matching backend.");
}
doneProgress("journal-progress", `[OK] ${apiResult.total || 0} verified journals shortlisted`);
rbV18RenderJournalResults(apiResult, results);
} catch (error) {
if (generation !== RB_DISCOVERY_STATE.generation || rbStaleRequest(error)) return;
failProgress("journal-progress", error);
} finally {
if (submit.dataset.requestGeneration !== String(generation)) return;
rbStopProgress("journal-progress");
submit.disabled = false;
submit.innerHTML = `<span>๐</span> <span id="btn-journal-submit">${rbText("Find best-fit journals")}</span>`;
results.setAttribute("aria-busy", "false");
}
});
}
function rbV18SubjectTab() {
const form = document.getElementById("subject-form");
const results = document.getElementById("subject-results");
if (!form || !results) return;
form.addEventListener("submit", async event => {
event.preventDefault();
const payload = rbV18GetSubjectData();
if (!payload.subject) return;
RB_DISCOVERY_STATE.generation += 1;
const generation = RB_DISCOVERY_STATE.generation;
hideProgress("journal-progress");
const otherResults = document.getElementById("journal-results");
if (otherResults) { otherResults.innerHTML = ""; otherResults.classList.add("hidden"); }
const submit = form.querySelector(".btn-primary");
submit.dataset.requestGeneration = String(generation);
submit.disabled = true;
submit.textContent = rbText("Searching verified indexโฆ");
results.innerHTML = "";
results.classList.remove("hidden");
showProgress("subject-progress", [
"Mapping the subject to the verified ASJC/SCImago vocabularyโฆ",
"Retrieving active journals and enforcing hard filtersโฆ",
"Checking recent article evidence and ranking subject relevanceโฆ",
payload.sharing_requirement ? "Checking accepted-manuscript sharing for the strongest candidatesโฆ" : "Building the evidence-rich shortlistโฆ",
], { requestKey: "discovery" });
try {
setStep("subject-progress", 1);
const data = await callAPI("/api/browse-subject", payload, { requestKey: "discovery" });
if (generation !== RB_DISCOVERY_STATE.generation) return;
setStep("subject-progress", 2);
setStep("subject-progress", 3);
const apiResult = data.result || {};
if (apiResult.schema_version !== "journal_discovery_v2") {
throw new Error("ResearchBee front-end/back-end version mismatch. Refresh the page after deploying the matching backend.");
}
doneProgress("subject-progress", `[OK] ${apiResult.total || 0} verified journals shortlisted`);
rbV18RenderSubjectResults(apiResult, results);
} catch (error) {
if (generation !== RB_DISCOVERY_STATE.generation || rbStaleRequest(error)) return;
failProgress("subject-progress", error);
} finally {
if (submit.dataset.requestGeneration !== String(generation)) return;
rbStopProgress("subject-progress");
submit.disabled = false;
submit.innerHTML = `<span id="btn-subject-submit">${rbText("Find verified journals")}</span>`;
results.setAttribute("aria-busy", "false");
}
});
}
window.ResearchBee.sortJournalCards = function rbV18SortJournalCards(mode, button) {
const wrap = document.getElementById("journal-cards-wrap");
if (!wrap) return;
RB_ROOT.querySelectorAll("#journal-sort-bar .sort-btn").forEach(item => item.classList.remove("active"));
button?.classList.add("active");
const cards = Array.from(wrap.querySelectorAll(".rb-discovery-card"));
cards.sort((a, b) => {
if (mode === "quartile") return Number(a.dataset.quartile) - Number(b.dataset.quartile) || Number(b.dataset.fit) - Number(a.dataset.fit);
if (mode === "hindex") return Number(b.dataset.hindex) - Number(a.dataset.hindex) || Number(b.dataset.fit) - Number(a.dataset.fit);
return Number(b.dataset.fit) - Number(a.dataset.fit);
});
cards.forEach((card, index) => {
const rank = card.querySelector(".rb-rank-number");
if (rank) rank.textContent = `#${index + 1}`;
wrap.appendChild(card);
});
};
// Assign before the shared initialisation calls below. This prevents the legacy
// independent renderers from attaching handlers, while preserving all shared
// licence, repository, chat, cover-letter and related-works helpers.
getManuscriptData = rbV18GetManuscriptData;
renderJournalResults = rbV18RenderJournalResults;
renderSubjectResults = rbV18RenderSubjectResults;
journalTab = rbV18JournalTab;
subjectTab = rbV18SubjectTab;
// One display dictionary. Select values and source records retain API/original values.
const RB_CHAT_WELCOME_AR = "ู
ุฑุญุจุงู! ุฃูุง ResearchBeeุ ู
ุณุงุนุฏ ู
ูุชุจุฉ ุฌุงู
ุนุฉ ุฎูููุฉ ูููุดุฑ ูุฅุฏุงุฑุฉ ุจูุงูุงุช ุงูุจุญุซ. ูู
ูููู ู
ุณุงุนุฏุชู ูู ุงุฎุชูุงุฑ ุงูู
ุฌูุงุช ูุงูุชุญูู ู
ููุงุ ูููู
ุฏุนู
ุงููุดุฑ ูุงููุตูู ุงูู
ูุชูุญ ูุญููู ู
ุดุงุฑูุฉ ุงูู
ูุงูุงุชุ ูุงุฎุชูุงุฑ ู
ุณุชูุฏุนุงุช ุงูุจูุงูุงุช. ููู ูู
ูููู ู
ุณุงุนุฏุชูุ";
const RB_UI_ORIGINAL_TEXT = new WeakMap();
const RB_UI_STRINGS = {
"Share feedback": "ุดุงุฑููุง ู
ูุงุญุธุงุชู",
"View journal details": "ุนุฑุถ ุชูุงุตูู ุงูู
ุฌูุฉ",
"Hide journal details": "ุฅุฎูุงุก ุชูุงุตูู ุงูู
ุฌูุฉ",
"Ranking source and verification:": "ู
ุตุฏุฑ ุงูุชุตููู ูุญุงูุฉ ุงูุชุญูู:",
"Find a home for your research data": "ุงุนุซุฑ ุนูู ู
ุณุชูุฏุน ู
ูุงุณุจ ูุจูุงูุงุช ุจุญุซู",
"Find a suitable repository in two simple steps.": "ุงุนุซุฑ ุนูู ู
ุณุชูุฏุน ู
ูุงุณุจ ูู ุฎุทูุชูู ุจุณูุทุชูู.",
"Describe your dataset": "ุตูู ู
ุฌู
ูุนุฉ ุจูุงูุงุชู",
"Tell us about your data, research field, file formats and approximate size.": "ุฃุฎุจุฑูุง ุนู ุจูุงูุงุชู ูู
ุฌุงู ุจุญุซู ูุตูุบ ุงูู
ููุงุช ูุญุฌู
ูุง ุงูุชูุฑูุจู.",
"Set your sharing requirements": "ุญุฏูุฏ ู
ุชุทูุจุงุช ู
ุดุงุฑูุฉ ุจูุงูุงุชู",
"Choose access, licence and deposit requirements to find suitable repositories.": "ุงุฎุชุฑ ู
ุชุทูุจุงุช ุงููุตูู ูุงูุชุฑุฎูุต ูุงูุฅูุฏุงุน ููุนุซูุฑ ุนูู ู
ุณุชูุฏุนุงุช ู
ูุงุณุจุฉ.",
"Start: describe your dataset": "ุงุจุฏุฃ ุจูุตู ู
ุฌู
ูุนุฉ ุจูุงูุงุชู",
"Back to data repository overview": "ุงูุนูุฏุฉ ุฅูู ูุธุฑุฉ ุนุงู
ุฉ ุนูู ู
ุณุชูุฏุนุงุช ุงูุจูุงูุงุช",
"Step 1 of 2": "ุงูุฎุทูุฉ 1 ู
ู 2",
"Step 2 of 2": "ุงูุฎุทูุฉ 2 ู
ู 2",
"Enter the basic details so ResearchBee can identify suitable repositories.": "ุฃุฏุฎู ุงูุชูุงุตูู ุงูุฃุณุงุณูุฉ ููุชู
ูู ResearchBee ู
ู ุชุญุฏูุฏ ุงูู
ุณุชูุฏุนุงุช ุงูู
ูุงุณุจุฉ.",
"Review access, licences and deposit requirements, then find suitable repositories.": "ุฑุงุฌุน ู
ุชุทูุจุงุช ุงููุตูู ูุงูุชุฑุงุฎูุต ูุงูุฅูุฏุงุนุ ุซู
ุงุจุญุซ ุนู ู
ุณุชูุฏุนุงุช ู
ูุงุณุจุฉ.",
"Next: sharing requirements": "ุงูุชุงูู: ู
ุชุทูุจุงุช ุงูู
ุดุงุฑูุฉ",
"Back to dataset details": "ุงูุนูุฏุฉ ุฅูู ุชูุงุตูู ู
ุฌู
ูุนุฉ ุงูุจูุงูุงุช",
"How would you like to check sharing permissions?": "ููู ุชูุฏ ุงูุชุญูู ู
ู ุตูุงุญูุงุช ุงูู
ุดุงุฑูุฉุ",
"Check a specific article or explore a journal's sharing policy.": "ุชุญูู ู
ู ู
ูุงูุฉ ู
ุญุฏุฏุฉ ุฃู ุงุณุชูุดู ุณูุงุณุฉ ุงูู
ุดุงุฑูุฉ ูุฅุญุฏู ุงูู
ุฌูุงุช.",
"Check a specific article": "ุชุญูู ู
ู ู
ูุงูุฉ ู
ุญุฏุฏุฉ",
"Use a DOI or article URL to check sharing permissions and whether your article is in Khazna.": "ุงุณุชุฎุฏู
ู
ุนุฑูู DOI ุฃู ุฑุงุจุท ุงูู
ูุงูุฉ ููุชุญูู ู
ู ุตูุงุญูุงุช ุงูู
ุดุงุฑูุฉ ููุฌูุฏ ู
ูุงูุชู ูู ุฎุฒูุฉ.",
"Check my article": "ุชุญูู ู
ู ู
ูุงูุชู",
"Check a journal's sharing policy": "ุชุญูู ู
ู ุณูุงุณุฉ ุงูู
ุดุงุฑูุฉ ููู
ุฌูุฉ",
"Use a journal name or ISSN to explore publisher policies on sharing article versions.": "ุงุณุชุฎุฏู
ุงุณู
ุงูู
ุฌูุฉ ุฃู ุฑูู
ISSN ูุงุณุชูุดุงู ุณูุงุณุงุช ุงููุงุดุฑ ุจุดุฃู ู
ุดุงุฑูุฉ ูุณุฎ ุงูู
ูุงูุฉ.",
"Check a journal policy": "ุชุญูู ู
ู ุณูุงุณุฉ ุงูู
ุฌูุฉ",
"Back to sharing options": "ุงูุนูุฏุฉ ุฅูู ุฎูุงุฑุงุช ุงูู
ุดุงุฑูุฉ",
"Check article-sharing permissions": "ุชุญูู ู
ู ุตูุงุญูุงุช ู
ุดุงุฑูุฉ ุงูู
ูุงูุฉ",
"Review which version you may share, where you may deposit it, and any conditions that apply.": "ุฑุงุฌุน ุงููุณุฎุฉ ุงูุชู ูู
ููู ู
ุดุงุฑูุชูุง ูู
ูุงู ุฅูุฏุงุนูุง ูุงูุดุฑูุท ุงูุชู ุชูุทุจู ุนูููุง.",
"Article version, deposit location and other preferences": "ูุณุฎุฉ ุงูู
ูุงูุฉ ูู
ูุงู ุงูุฅูุฏุงุน ูุงูุชูุถููุงุช ุงูุฃุฎุฑู",
"Enter a journal name or ISSN to continue.": "ุฃุฏุฎู ุงุณู
ุงูู
ุฌูุฉ ุฃู ุฑูู
ISSN ููู
ุชุงุจุนุฉ.",
"Enter an article DOI or URL to continue.": "ุฃุฏุฎู ู
ุนุฑูู DOI ุฃู ุฑุงุจุท ุงูู
ูุงูุฉ ููู
ุชุงุจุนุฉ.",
"Choose a function": "ุงุฎุชุฑ ุฅุญุฏู ุงููุธุงุฆู",
"Clear all & return home": "ู
ุณุญ ุงููู ูุงูุนูุฏุฉ ุฅูู ุงูุจุฏุงูุฉ",
"Select a function above to get started.": "ุงุฎุชุฑ ุฅุญุฏู ุงููุธุงุฆู ุฃุนูุงู ููุจุฏุก.",
"Choose one of two options": "ุงุฎุชุฑ ุฃุญุฏ ุงูุฎูุงุฑูู",
"Start with your research subject or use your manuscript.": "ุงุจุฏุฃ ุจู
ูุถูุน ุจุญุซู ุฃู ุงุณุชุฎุฏู
ู
ุฎุทูุทุชู.",
"Enter your research subject to explore and compare suitable journals.": "ุฃุฏุฎู ู
ูุถูุน ุจุญุซู ูุงุณุชูุดุงู ุงูู
ุฌูุงุช ุงูู
ูุงุณุจุฉ ูุงูู
ูุงุฑูุฉ ุจูููุง.",
"Browse journals by subject": "ุชุตูุญ ุงูู
ุฌูุงุช ุญุณุจ ุงูู
ูุถูุน",
"Analyse your manuscript": "ุญููู ู
ุฎุทูุทุชู",
"Enter your title and abstract to find journals that match your manuscript.": "ุฃุฏุฎู ุนููุงู ู
ุฎุทูุทุชู ูู
ูุฎุตูุง ููุนุซูุฑ ุนูู ู
ุฌูุงุช ู
ูุงุณุจุฉ ููุง.",
"Find journals for my manuscript": "ุงุจุญุซ ุนู ู
ุฌูุงุช ู
ูุงุณุจุฉ ูู
ุฎุทูุทุชู",
"Back to journal options": "ุงูุนูุฏุฉ ุฅูู ุฎูุงุฑุงุช ุงูุจุญุซ ุนู ุงูู
ุฌูุงุช",
"AI assistance uses external services. Do not enter confidential manuscripts or identifiable personal or health data.": "ุชุณุชุฎุฏู
ุงูู
ุณุงุนุฏุฉ ุจุงูุฐูุงุก ุงูุงุตุทูุงุนู ุฎุฏู
ุงุช ุฎุงุฑุฌูุฉ. ูุง ุชูุฏุฎู ู
ุฎุทูุทุงุช ุณุฑูุฉ ุฃู ุจูุงูุงุช ุดุฎุตูุฉ ุฃู ุตุญูุฉ ุชูุดู ุงููููุฉ.",
"How your information is used": "ููู ุชูุณุชุฎุฏู
ู
ุนููู
ุงุชู",
"Your manuscript, dataset description and chat messages may be sent to OpenAI to provide AI assistance. OpenAlex receives subject keywords to identify suitable journals using related article evidence. Policy checks send journal identifiers or the DOI to the relevant services. Describe sensitive datasets without sharing their contents. Contact KU Library for help with confidential research.": "ูุฏ ุชูุฑุณู ู
ุฎุทูุทุชู ููุตู ู
ุฌู
ูุนุฉ ุงูุจูุงูุงุช ูุฑุณุงุฆู ุงูุฏุฑุฏุดุฉ ุฅูู OpenAI ูุชูุฏูู
ุงูู
ุณุงุนุฏุฉ ุจุงูุฐูุงุก ุงูุงุตุทูุงุนู. ูุชููู OpenAlex ููู
ุงุช ู
ูุชุงุญูุฉ ูุชุญุฏูุฏ ุงูู
ุฌูุงุช ุงูู
ูุงุณุจุฉ ุจุงูุงุณุชูุงุฏ ุฅูู ู
ูุงูุงุช ุฐุงุช ุตูุฉ. ุชูุฑุณู ู
ุนุฑููุงุช ุงูู
ุฌูุงุช ุฃู ู
ุนุฑูู DOI ุฅูู ุงูุฎุฏู
ุงุช ุงูู
ุนููุฉ ููุชุญูู ู
ู ุงูุณูุงุณุงุช. ุตูู ู
ุฌู
ูุนุงุช ุงูุจูุงูุงุช ุงูุญุณุงุณุฉ ุฏูู ู
ุดุงุฑูุฉ ู
ุญุชูุงูุง. ุชูุงุตู ู
ุน ู
ูุชุจุฉ ุงูุฌุงู
ุนุฉ ููู
ุณุงุนุฏุฉ ูู ุงูุฃุจุญุงุซ ุงูุณุฑูุฉ.",
"Khalifa University Library": "ู
ูุชุจุฉ ุฌุงู
ุนุฉ ุฎูููุฉ",
"Your publication support assistant": "ู
ุณุงุนุฏู ูุฏุนู
ุงููุดุฑ ุงูุนูู
ู",
"Helping you publish and share your research.": "ูุณุงุนุฏู ุนูู ูุดุฑ ุฃุจุญุงุซู ูู
ุดุงุฑูุชูุง.",
"Find suitable journals for your article": "ุงุนุซุฑ ุนูู ู
ุฌูุงุช ู
ูุงุณุจุฉ ูู
ูุงูุชู",
"Identify and compare journals that match your research.": "ุชุนุฑูู ุนูู ุงูู
ุฌูุงุช ุงูู
ูุงุณุจุฉ ูุจุญุซู ููุงุฑู ุจูููุง.",
"Check whether you can share your article": "ุชุญูู ู
ู ุฅู
ูุงููุฉ ู
ุดุงุฑูุฉ ู
ูุงูุชู",
"Review publisher policies, article versions, licences, and waiting periods before repository deposit.": "ุฑุงุฌุน ุณูุงุณุงุช ุงููุงุดุฑ ููุณุฎ ุงูู
ูุงูุฉ ูุงูุชุฑุงุฎูุต ููุชุฑุงุช ุงูุญุธุฑ ูุจู ุงูุฅูุฏุงุน ูู ุงูู
ุณุชูุฏุน.",
"Find a research data repository": "ุงุนุซุฑ ุนูู ู
ุณุชูุฏุน ูุจูุงูุงุช ุงูุจุญุซ",
"Explore suitable repositories for storing and sharing your research data.": "ุงุณุชูุดู ู
ุณุชูุฏุนุงุช ู
ูุงุณุจุฉ ูุญูุธ ุจูุงูุงุช ุจุญุซู ูู
ุดุงุฑูุชูุง.",
"Looking for articles to read?": "ูู ุชุจุญุซ ุนู ู
ูุงูุงุช ููุฑุงุกุชูุงุ",
"ResearchBee is not an article search tool. Use LibBee or Library Primo to find articles.": "ResearchBee ููุณ ุฃุฏุงุฉ ููุจุญุซ ุนู ุงูู
ูุงูุงุช. ุงุณุชุฎุฏู
LibBee ุฃู Primo ุงูู
ูุชุจุฉ ููุนุซูุฑ ุนูู ุงูู
ูุงูุงุช.",
"Library Primo": "Primo ุงูู
ูุชุจุฉ",
"About ResearchBee": "ุนู ResearchBee",
...Object.fromEntries(Object.values(TRANSLATIONS).map(item => [item.en, item.ar])),
"Register your publication with Khazna. Deposit a manuscript file only when the checked version, repository location, licence and embargo conditions permit it; contact KU Library when permission is unclear.": "ุณุฌูู ู
ูุดูุฑู ูู ุฎุฒูุฉ. ุฃูุฏุน ู
ูู ุงูู
ุฎุทูุทุฉ ููุท ุนูุฏู
ุง ุชุณู
ุญ ุจุฐูู ุงูุดุฑูุท ุงูู
ุชุญูู ู
ููุง ุจุดุฃู ุงููุณุฎุฉ ูู
ููุน ุงูู
ุณุชูุฏุน ูุงูุฑุฎุตุฉ ูุญุธุฑ ุงููุดุฑุ ุชูุงุตู ู
ุน ู
ูุชุจุฉ ุงูุฌุงู
ุนุฉ ุนูุฏู
ุง ูููู ุงูุฅุฐู ุบูุฑ ูุงุถุญ.",
"Not found in loaded snapshot": "ูู
ููุนุซุฑ ุนููู ูู ููุทุฉ ุงูุจูุงูุงุช ุงูู
ุญู
ููุฉ",
"Found in loaded snapshot": "ุนูุซุฑ ุนููู ูู ููุทุฉ ุงูุจูุงูุงุช ุงูู
ุญู
ููุฉ",
"This DOI was not found in the loaded Khazna snapshot. Confirm in the live portal before creating another record.": "ูู
ููุนุซุฑ ุนูู ู
ุนุฑูู DOI ูุฐุง ูู ููุทุฉ ุจูุงูุงุช ุฎุฒูุฉ ุงูู
ุญู
ููุฉ. ุชุญูู ู
ู ุงูุจูุงุจุฉ ุงูุญุงููุฉ ูุจู ุฅูุดุงุก ุณุฌู ุขุฎุฑ.",
"Candidates excluded by requirement checks": "ู
ุฑุดุญูู ุงุณุชูุจุนุฏูุง ุจุนุฏ ุงูุชุญูู ู
ู ุงูู
ุชุทูุจุงุช",
"These candidates were removed from the recommendations after checking your requirements. Review the reasons when refining your search.": "ุงุณุชูุจุนุฏ ูุคูุงุก ุงูู
ุฑุดุญูู ู
ู ุงูุชูุตูุงุช ุจุนุฏ ุงูุชุญูู ู
ู ู
ุชุทูุจุงุชู. ุฑุงุฌุน ุงูุฃุณุจุงุจ ุนูุฏ ุชุนุฏูู ุงูุจุญุซ.",
"Still unverified:": "ูู
ููุชุญูู ุจุนุฏ ู
ู:", "Here are repository options and the requirement checks for your dataset.": "ุฅููู ุฎูุงุฑุงุช ุงูู
ุณุชูุฏุนุงุช ููุชุงุฆุฌ ุงูุชุญูู ู
ู ู
ุชุทูุจุงุช ู
ุฌู
ูุนุฉ ุงูุจูุงูุงุช ุงูุฎุงุตุฉ ุจู.",
"Verify on:": "ุชุญูู ุนุจุฑ:", "Criterion": "ุงูู
ุนูุงุฑ", "โฌ Download .txt": "โฌ ุชูุฒูู ู
ูู ูุตู", "๐ Copy": "๐ ูุณุฎ",
"No destination is verified for file deposit. Review the requirements with KU Library.": "ูู
ููุชุญูู ู
ู ูุฌูุฉ ูุฅูุฏุงุน ุงูู
ููุงุช. ุฑุงุฌุน ุงูู
ุชุทูุจุงุช ู
ุน ู
ูุชุจุฉ ุงูุฌุงู
ุนุฉ.",
"Candidate repositories need manual review before depositing files.": "ุชุญุชุงุฌ ุงูู
ุณุชูุฏุนุงุช ุงูู
ุฑุดุญุฉ ุฅูู ู
ุฑุงุฌุนุฉ ูุฏููุฉ ูุจู ุฅูุฏุงุน ุงูู
ููุงุช.",
"Chat messages are sent to OpenAI. Do not share confidential or personal data.": "ุชูุฑุณู ุฑุณุงุฆู ุงูู
ุญุงุฏุซุฉ ุฅูู OpenAI. ูุง ุชุดุงุฑู ุจูุงูุงุช ุณุฑูุฉ ุฃู ุดุฎุตูุฉ.",
"Classifying the manuscript into verified subject fieldsโฆ": "ุฌุงุฑู ุชุตููู ุงูู
ุฎุทูุทุฉ ุถู
ู ู
ุฌุงูุงุช ู
ูุถูุนูุฉ ู
ุชุญูู ู
ููุงโฆ",
"Retrieving active journals and enforcing hard filtersโฆ": "ุฌุงุฑู ุงุณุชุฑุฌุงุน ุงูู
ุฌูุงุช ุงููุดุทุฉ ูุชุทุจูู ุดุฑูุท ุงูุชุตููุฉโฆ",
"Checking recent article evidence and ranking fitโฆ": "ุฌุงุฑู ูุญุต ุฃุฏูุฉ ุงูู
ูุงูุงุช ุงูุญุฏูุซุฉ ูุชุฑุชูุจ ุงูู
ูุงุกู
ุฉโฆ",
"Checking accepted-manuscript sharing for the strongest candidatesโฆ": "ุฌุงุฑู ุงูุชุญูู ู
ู ู
ุดุงุฑูุฉ ุงูู
ุฎุทูุทุฉ ุงูู
ูุจููุฉ ูุฏู ุฃููู ุงูู
ุฑุดุญููโฆ",
"Building the evidence-rich shortlistโฆ": "ุฌุงุฑู ุฅุนุฏุงุฏ ุงููุงุฆู
ุฉ ุงูู
ุฎุชุตุฑุฉ ุงูู
ุฏุนูู
ุฉ ุจุงูุฃุฏูุฉโฆ",
"Mapping the subject to the verified ASJC/SCImago vocabularyโฆ": "ุฌุงุฑู ู
ุทุงุจูุฉ ุงูู
ูุถูุน ู
ุน ู
ูุฑุฏุงุช ASJC/SCImago ุงูู
ุชุญูู ู
ููุงโฆ",
"Checking recent article evidence and ranking subject relevanceโฆ": "ุฌุงุฑู ูุญุต ุงูู
ูุงูุงุช ุงูุญุฏูุซุฉ ูุชุฑุชูุจ ุงูุตูุฉ ุจุงูู
ูุถูุนโฆ",
"Analysing your dataset...": "ุฌุงุฑู ุชุญููู ูุตู ู
ุฌู
ูุนุฉ ุงูุจูุงูุงุช...", "Matching repositories...": "ุฌุงุฑู ู
ุทุงุจูุฉ ุงูู
ุณุชูุฏุนุงุช...", "Building recommendations...": "ุฌุงุฑู ุฅุนุฏุงุฏ ุงูุชูุตูุงุช...",
"Resolving DOI...": "ุฌุงุฑู ุงูุชุญูู ู
ู DOI...", "Resolving the journal record...": "ุฌุงุฑู ุงูุชุญูู ู
ู ุณุฌู ุงูู
ุฌูุฉ...", "Checking OA.Works Permissions + Khazna...": "ุฌุงุฑู ุงูุชุญูู ู
ู ุฃุฐููุงุช OA.Works ูุฎุฒูุฉ...",
"Querying the Jisc Open Policy Finder API...": "ุฌุงุฑู ุงูุงุณุชุนูุงู
ู
ู Jisc Open Policy Finder...", "Building deposit guidance...": "ุฌุงุฑู ุฅุนุฏุงุฏ ุฅุฑุดุงุฏุงุช ุงูุฅูุฏุงุน...", "Preparing the journal-level policy options...": "ุฌุงุฑู ุฅุนุฏุงุฏ ุฎูุงุฑุงุช ุณูุงุณุฉ ุงูู
ุฌูุฉ...",
"Language:": "ุงููุบุฉ:", "Publishing and research data, made clearer.": "ุฏุนู
ุฃูุถุญ ูููุดุฑ ูุจูุงูุงุช ุงูุจุญุซ.",
"Find your journal": "ุงุนุซุฑ ุนูู ู
ุฌูุชู", "Share your article": "ุดุงุฑู ู
ูุงูุชู", "Deposit your data": "ุฃูุฏุน ุจูุงูุงุชู",
"Journal fit, rankings & OA options": "ู
ูุงุกู
ุฉ ุงูู
ุฌูุฉ ูุชุตูููุงุชูุง ูุฎูุงุฑุงุช ุงููุตูู ุงูู
ูุชูุญ", "Deposit rights & KU repository": "ุญููู ุงูุฅูุฏุงุน ูู
ุณุชูุฏุน ุงูุฌุงู
ุนุฉ", "Find the right repository": "ุงุนุซุฑ ุนูู ุงูู
ุณุชูุฏุน ุงูู
ูุงุณุจ",
"Browse by subject": "ุชุตูุญ ุญุณุจ ุงูู
ูุถูุน", "Analyse manuscript": "ุญูู ุงูู
ุฎุทูุทุฉ", "Advanced journal preferences": "ุชูุถููุงุช ุงูู
ุฌูุงุช ุงูู
ุชูุฏู
ุฉ",
"Advanced journal preferences and manuscript context": "ุชูุถููุงุช ุงูู
ุฌูุงุช ุงูู
ุชูุฏู
ุฉ ูุณูุงู ุงูู
ุฎุทูุทุฉ", "Quartile filter": "ุชุตููุฉ ุญุณุจ ุงูุฑุจุน ุงูุชุตูููู",
"Journal access model": "ูู
ูุฐุฌ ุงููุตูู ุฅูู ุงูู
ุฌูุฉ", "Accepted manuscript must be depositable in a repository": "ูุฌุจ ุฃู ููุณู
ุญ ุจุฅูุฏุงุน ุงูู
ุฎุทูุทุฉ ุงูู
ูุจููุฉ ูู ู
ุณุชูุฏุน",
"Intended repository": "ุงูู
ุณุชูุฏุน ุงูู
ูุตูุฏ", "planning only": "ููุชุฎุทูุท ููุท", "Preferred journals": "ุงูู
ุฌูุงุช ุงูู
ูุถูุฉ", "Journals to exclude": "ุงูู
ุฌูุงุช ุงูู
ุณุชุจุนุฏุฉ",
"Keywords": "ุงูููู
ุงุช ุงูู
ูุชุงุญูุฉ", "Methods": "ุงูู
ููุฌูุฉ", "No filter": "ุจุฏูู ุชุตููุฉ", "Q1 or Q2": "Q1 ุฃู Q2", "Any journal": "ุฃู ู
ุฌูุฉ",
"Open-access journals": "ู
ุฌูุงุช ุงููุตูู ุงูู
ูุชูุญ", "Diamond / no APC": "ูุตูู ู
ุงุณู / ุจุฏูู ุฑุณูู
ูุดุฑ", "Institutional repository": "ู
ุณุชูุฏุน ู
ุคุณุณู",
"Subject repository": "ู
ุณุชูุฏุน ุชุฎุตุตู", "Both institutional & subject": "ู
ุณุชูุฏุน ู
ุคุณุณู ูุชุฎุตุตู", "Not sure": "ุบูุฑ ู
ุชุฃูุฏ",
"Original research article": "ู
ูุงูุฉ ุจุญุซูุฉ ุฃุตููุฉ", "Review article": "ู
ูุงูุฉ ู
ุฑุงุฌุนุฉ", "Systematic review / meta-analysis": "ู
ุฑุงุฌุนุฉ ู
ููุฌูุฉ / ุชุญููู ุชููู",
"Short communication": "ู
ุฑุงุณูุฉ ุจุญุซูุฉ ูุตูุฑุฉ", "Case study": "ุฏุฑุงุณุฉ ุญุงูุฉ", "Methods paper": "ูุฑูุฉ ู
ููุฌูุฉ", "Perspective / commentary": "ูุฌูุฉ ูุธุฑ / ุชุนููู", "Letter": "ุฑุณุงูุฉ", "Conference paper": "ูุฑูุฉ ู
ุคุชู
ุฑ",
"All versions": "ุฌู
ูุน ุงููุณุฎ", "Submitted version / preprint": "ุงููุณุฎุฉ ุงูู
ูุฏู
ุฉ / ู
ุง ูุจู ุงููุดุฑ", "Accepted manuscript (AAM / postprint)": "ุงูู
ุฎุทูุทุฉ ุงูู
ูุจููุฉ (AAM)", "Published version (VoR)": "ุงููุณุฎุฉ ุงูู
ูุดูุฑุฉ (VoR)",
"Subject repository (e.g. arXiv, PMC, SSRN)": "ู
ุณุชูุฏุน ุชุฎุตุตู (ู
ุซู arXiv ุฃู PMC ุฃู SSRN)", "Personal website": "ู
ููุน ุดุฎุตู", "Preprint server": "ุฎุงุฏู
ู
ุง ูุจู ุงููุดุฑ", "Publisher's bespoke licence": "ุฑุฎุตุฉ ุงููุงุดุฑ ุงูุฎุงุตุฉ",
"Yes": "ูุนู
", "No": "ูุง", "Unsure": "ุบูุฑ ู
ุชุฃูุฏ", "Open": "ู
ูุชูุญ", "Restricted": "ู
ููุฏ", "Sensitive": "ุญุณุงุณ", "Mixed": "ู
ุฎุชูุท",
"Yes โ anonymised": "ูุนู
โ ู
ุฌูููุฉ ุงููููุฉ", "Yes โ pseudonymised": "ูุนู
โ ู
ุณุชุนุงุฑุฉ ุงููููุฉ", "Yes โ identifiable": "ูุนู
โ ูุงุจูุฉ ูุชุญุฏูุฏ ุงููููุฉ", "Restricted / custom": "ู
ููุฏุฉ / ู
ุฎุตุตุฉ",
"Embargo duration (months, optional)": "ู
ุฏุฉ ุงูุญุธุฑ (ุจุงูุฃุดูุฑุ ุงุฎุชูุงุฑู)", "Enter a duration only when an embargo is required.": "ุฃุฏุฎู ุงูู
ุฏุฉ ููุท ุนูุฏ ุงูุญุงุฌุฉ ุฅูู ุญุธุฑ ุงููุดุฑ.",
"Sensitivity & access": "ุงูุญุณุงุณูุฉ ูุงููุตูู", "Context": "ุงูุณูุงู", "Article DOI or URL": "ู
ุนุฑูู DOI ุฃู ุฑุงุจุท ุงูู
ูุงูุฉ", "recommended โ gives a verified answer": "ู
ูุตู ุจู โ ููุชุญูู ุนูู ู
ุณุชูู ุงูู
ูุงูุฉ",
"Journal name": "ุงุณู
ุงูู
ุฌูุฉ", "ISSN (optional โ improves accuracy)": "ุงูุฑูู
ุงูุฏููู ISSN (ุงุฎุชูุงุฑู โ ูุญุณูู ุงูุฏูุฉ)",
"๐ Browse verified journals by subject": "๐ ุชุตูุญ ุงูู
ุฌูุงุช ุงูู
ุชุญูู ู
ููุง ุญุณุจ ุงูู
ูุถูุน", "๐ฐ Match a manuscript to verified journals": "๐ฐ ุทุงุจู ุงูู
ุฎุทูุทุฉ ู
ุน ุงูู
ุฌูุงุช ุงูู
ุชุญูู ู
ููุง",
"๐ก Share your published article": "๐ก ุดุงุฑู ู
ูุงูุชู ุงูู
ูุดูุฑุฉ", "๐ Find a research data repository": "๐ ุงุนุซุฑ ุนูู ู
ุณุชูุฏุน ูุจูุงูุงุช ุงูุจุญุซ",
"Find verified journals": "ุงุนุซุฑ ุนูู ู
ุฌูุงุช ู
ุชุญูู ู
ููุง", "Find best-fit verified journals": "ุงุนุซุฑ ุนูู ุฃูุณุจ ุงูู
ุฌูุงุช ุงูู
ุชุญูู ู
ููุง", "Find best-fit journals": "ุงุนุซุฑ ุนูู ุฃูุณุจ ุงูู
ุฌูุงุช", "Check Green OA policy": "ุชุญูู ู
ู ุณูุงุณุฉ ุงูุฅูุฏุงุน ูู ุงูู
ุณุชูุฏุนุงุช", "Find best repositories": "ุงุนุซุฑ ุนูู ุฃูุถู ุงูู
ุณุชูุฏุนุงุช",
"Analysing verified candidatesโฆ": "ุฌุงุฑู ุชุญููู ุงูู
ุฌูุงุช ุงูู
ุฑุดุญุฉ ุงูู
ุชุญูู ู
ููุงโฆ", "Searching verified indexโฆ": "ุฌุงุฑู ุงูุจุญุซ ูู ุงูููุฑุณ ุงูู
ุชุญูู ู
ููโฆ",
"๐ Checking policy...": "๐ ุฌุงุฑู ุงูุชุญูู ู
ู ุงูุณูุงุณุฉ...", "Finding repositories...": "ุฌุงุฑู ุงูุจุญุซ ุนู ุงูู
ุณุชูุฏุนุงุช...",
"Edit search": "ุชุนุฏูู ุงูุจุญุซ", "โฉ Start over": "โฉ ุงุจุฏุฃ ู
ู ุฌุฏูุฏ", "Start over": "ุงุจุฏุฃ ู
ู ุฌุฏูุฏ", "Add to comparison": "ุฃุถู ุฅูู ุงูู
ูุงุฑูุฉ", "Compare": "ูุงุฑู",
"Check policy": "ุชุญูู ู
ู ุงูุณูุงุณุฉ", "Check sharing policy": "ุชุญูู ู
ู ุณูุงุณุฉ ุงูู
ุดุงุฑูุฉ", "Refresh policy": "ุชุญุฏูุซ ุงูุณูุงุณุฉ", "Policy checked": "ุชู
ุงูุชุญูู ู
ู ุงูุณูุงุณุฉ", "Checkingโฆ": "ุฌุงุฑู ุงูุชุญููโฆ",
"Check policies for top 3": "ุชุญูู ู
ู ุณูุงุณุงุช ุฃูุถู ุซูุงุซ ู
ุฌูุงุช", "Open comparison": "ุงูุชุญ ุงูู
ูุงุฑูุฉ", "Journal decision table": "ุฌุฏูู ุงูู
ูุงุฑูุฉ ูุงุชุฎุงุฐ ุงููุฑุงุฑ", "Export CSV": "ุชุตุฏูุฑ CSV", "Clear shortlist": "ู
ุณุญ ุงููุงุฆู
ุฉ ุงูู
ุฎุชุตุฑุฉ",
"Sort detailed shortlist:": "ุชุฑุชูุจ ุงููุงุฆู
ุฉ ุงูุชูุตูููุฉ:", "๐ฏ Best fit": "๐ฏ ุฃูุถู ู
ูุงุกู
ุฉ", "๐ Quartile": "๐ ุงูุฑุจุน ุงูุชุตูููู", "๐ H-index": "๐ ู
ุคุดุฑ H",
"Manuscript journal analysis": "ุชุญููู ุงูู
ุฌูุงุช ููู
ุฎุทูุทุฉ", "Subject journal discovery": "ุงุณุชูุดุงู ุงูู
ุฌูุงุช ุญุณุจ ุงูู
ูุถูุน", "๐ Strongest verified matches": "๐ ุฃููู ุงูู
ุทุงุจูุงุช ุงูู
ุชุญูู ู
ููุง",
"No journal met every selected hard filter": "ูู
ุชุณุชููู ุฃู ู
ุฌูุฉ ุฌู
ูุน ุดุฑูุท ุงูุชุตููุฉ ุงูู
ุญุฏุฏุฉ", "No verified journal match found": "ูู
ุชูุนุซุฑ ุนูู ู
ุฌูุฉ ู
ุทุงุจูุฉ ู
ุชุญูู ู
ููุง",
"Journal analysis could not be completed": "ุชุนุฐุฑ ุฅูู
ุงู ุชุญููู ุงูู
ุฌูุงุช", "Subject search could not be completed": "ุชุนุฐุฑ ุฅูู
ุงู ุงูุจุญุซ ุญุณุจ ุงูู
ูุถูุน",
"Review or correct inferred details": "ุฑุงุฌุน ุฃู ุตุญุญ ุงูุชูุงุตูู ุงูู
ุณุชูุชุฌุฉ", "Analyse this journal with a manuscript": "ุญูู ูุฐู ุงูู
ุฌูุฉ ุจุงุณุชุฎุฏุงู
ู
ุฎุทูุทุฉ", "Analyse manuscript": "ุชุญููู ุงูู
ุฎุทูุทุฉ",
"โ Generate cover letter": "โ ุฅูุดุงุก ุฎุทุงุจ ุงูุชูุฏูู
", "Generating...": "ุฌุงุฑู ุงูุฅูุดุงุก...", "Writing cover letter...": "ุฌุงุฑู ูุชุงุจุฉ ุฎุทุงุจ ุงูุชูุฏูู
...",
"Draft only. Verify every claim and complete author confirmations for originality, approval, conflicts of interest and ethics before sending.": "ู
ุณูุฏุฉ ููุท. ุชุญูู ู
ู ุฌู
ูุน ุงูุงุฏุนุงุกุงุช ูุฃูู
ู ุชุฃููุฏุงุช ุงูู
ุคูููู ุจุดุฃู ุงูุฃุตุงูุฉ ูุงูู
ูุงููุฉ ูุชุถุงุฑุจ ุงูู
ุตุงูุญ ูุงูุฃุฎูุงููุงุช ูุจู ุงูุฅุฑุณุงู.",
"๐ Related works in this journal": "๐ ุฃุจุญุงุซ ุฐุงุช ุตูุฉ ูู ูุฐู ุงูู
ุฌูุฉ", "Highly cited": "ุงูุฃูุซุฑ ุงุณุชุดูุงุฏุงู", "Citation chain": "ุณูุณูุฉ ุงูุงุณุชุดูุงุฏุงุช", "See who cites this โ": "ุงุทูุน ุนูู ุงูุฃุจุญุงุซ ุงูุชู ุชุณุชุดูุฏ ุจูุฐุง โ",
"Before you submit:": "ูุจู ุงูุฅุฑุณุงู:",
"Your manuscript, dataset description and chat messages may be sent to OpenAI to provide AI assistance. OpenAlex receives subject keywords for article discovery. Do not paste confidential manuscripts or identifiable personal or health data. Describe sensitive datasets without sharing their contents. Policy checks send journal identifiers or the DOI to the relevant services. Contact KU Library for help with confidential research.": "ูุฏ ุชูุฑุณู ู
ุฎุทูุทุชู ููุตู ู
ุฌู
ูุนุฉ ุงูุจูุงูุงุช ูุฑุณุงุฆู ุงูู
ุญุงุฏุซุฉ ุฅูู OpenAI ูุชูุฏูู
ุงูู
ุณุงุนุฏุฉ. ูุชููู OpenAlex ููู
ุงุช ู
ูุถูุนูุฉ ููุจุญุซ ุนู ุงูู
ูุงูุงุช. ูุง ุชูุตู ู
ุฎุทูุทุงุช ุณุฑูุฉ ุฃู ุจูุงูุงุช ุดุฎุตูุฉ ุฃู ุตุญูุฉ ูุงุจูุฉ ูุชุญุฏูุฏ ุงููููุฉ. ุตู ู
ุฌู
ูุนุงุช ุงูุจูุงูุงุช ุงูุญุณุงุณุฉ ุฏูู ู
ุดุงุฑูุฉ ู
ุญุชููุงุชูุง. ุชุฑุณู ุนู
ููุงุช ุงูุชุญูู ู
ู ุงูุณูุงุณุงุช ู
ุนุฑููุงุช ุงูู
ุฌูุฉ ุฃู DOI ุฅูู ุงูุฎุฏู
ุงุช ุงูู
ุนููุฉ. ุชูุงุตู ู
ุน ู
ูุชุจุฉ ุงูุฌุงู
ุนุฉ ููุญุตูู ุนูู ุฏุนู
ููุจุญูุซ ุงูุณุฑูุฉ.",
"Need help?": "ูู ุชุญุชุงุฌ ุฅูู ู
ุณุงุนุฏุฉุ", "Chat with ResearchBee": "ุชุญุฏุซ ู
ุน ResearchBee", "Clear": "ู
ุณุญ", "Send message": "ุฅุฑุณุงู ุฑุณุงูุฉ", "Close chat": "ุฅุบูุงู ุงูู
ุญุงุฏุซุฉ",
"How do I choose the best journal?": "ููู ุฃุฎุชุงุฑ ุงูู
ุฌูุฉ ุงูุฃูุณุจุ", "What does Q1 or CiteScore percentile mean?": "ู
ุง ู
ุนูู Q1 ุฃู ุงููุณุจุฉ ุงูู
ุฆููุฉ ูู CiteScoreุ", "Does KU cover my APC?": "ูู ุชุบุทู ุฌุงู
ุนุฉ ุฎูููุฉ ุฑุณูู
ุงููุดุฑุ", "How do I choose a data repository?": "ููู ุฃุฎุชุงุฑ ู
ุณุชูุฏุนุงู ููุจูุงูุงุชุ",
"Metadata registration only": "ุชุณุฌูู ุงูุจูุงูุงุช ุงููุตููุฉ ููุท", "Review required before file deposit": "ุชูุฒู
ู
ุฑุงุฌุนุฉ ูุจู ุฅูุฏุงุน ุงูู
ููุงุช", "Repository requirement checks": "ุงูุชุญูู ู
ู ู
ุชุทูุจุงุช ุงูู
ุณุชูุฏุน",
"Register metadata with KU Library. Dataset file hosting, DOI assignment, embargo and versioning need separate confirmation.": "ุณุฌูู ุงูุจูุงูุงุช ุงููุตููุฉ ูุฏู ู
ูุชุจุฉ ุงูุฌุงู
ุนุฉ. ุชุญุชุงุฌ ุงุณุชุถุงูุฉ ู
ููุงุช ุงูุจูุงูุงุช ูุชุฎุตูุต DOI ูุงูุญุธุฑ ูุฅุฏุงุฑุฉ ุงูุฅุตุฏุงุฑุงุช ุฅูู ุชุฃููุฏ ู
ููุตู.",
"File deposit is not recommended until the repository and KU Library confirm the requirements for this dataset.": "ูุง ูููุตู ุจุฅูุฏุงุน ุงูู
ููุงุช ูุจู ุชุฃููุฏ ุงูู
ุณุชูุฏุน ูู
ูุชุจุฉ ุงูุฌุงู
ุนุฉ ู
ุชุทูุจุงุช ู
ุฌู
ูุนุฉ ุงูุจูุงูุงุช ูุฐู.",
"Sensitive-data review required. Do not upload identifiable or confidential files.": "ุชูุฒู
ู
ุฑุงุฌุนุฉ ุงูุจูุงูุงุช ุงูุญุณุงุณุฉ. ูุง ุชุฑูุน ู
ููุงุช ุณุฑูุฉ ุฃู ูุงุจูุฉ ูุชุญุฏูุฏ ุงููููุฉ.", "Capability record reviewed:": "ุชุงุฑูุฎ ู
ุฑุงุฌุนุฉ ุณุฌู ุงูุฅู
ูุงูุงุช:",
"Selected context appears compatible": "ูุจุฏู ุงูุณูุงู ุงูู
ุญุฏุฏ ู
ุชูุงููุงู", "Conditional โ review the applicable option": "ู
ุดุฑูุท โ ุฑุงุฌุน ุงูุฎูุงุฑ ุงูู
ูุทุจู", "Selected context is not permitted by the assessed options": "ูุง ุชุณู
ุญ ุงูุฎูุงุฑุงุช ุงูู
ููู
ุฉ ุจุงูุณูุงู ุงูู
ุญุฏุฏ", "Selected-context applicability is unknown": "ู
ุฏู ุงูุทุจุงู ุงูุณูุงุณุฉ ุนูู ุงูุณูุงู ุงูู
ุญุฏุฏ ุบูุฑ ู
ุนููู
",
"Policy result": "ูุชูุฌุฉ ุงูุชุญูู ู
ู ุงูุณูุงุณุฉ", "๐ข Green OA / self-archiving by version": "๐ข ุงูุฅูุฏุงุน ุงูุฐุงุชู ุญุณุจ ูุณุฎุฉ ุงูู
ูุงูุฉ", "Where": "ู
ูุงู ุงูุฅูุฏุงุน", "Embargo": "ุญุธุฑ ุงููุดุฑ", "Licence": "ุงูุฑุฎุตุฉ", "Conditions": "ุงูุดุฑูุท",
"๐ Dataset understanding": "๐ ููู
ู
ุฌู
ูุนุฉ ุงูุจูุงูุงุช", "Deposit strategy": "ุงุณุชุฑุงุชูุฌูุฉ ุงูุฅูุฏุงุน", "Primary choice": "ุงูุฎูุงุฑ ุงูุฃูู", "Secondary choice": "ุงูุฎูุงุฑ ุงูุซุงูู", "Metadata standard": "ู
ุนูุงุฑ ุงูุจูุงูุงุช ุงููุตููุฉ",
"Journal": "ุงูู
ุฌูุฉ", "Publisher": "ุงููุงุดุฑ", "Fit": "ุงูู
ูุงุกู
ุฉ", "Matched field": "ุงูู
ุฌุงู ุงูู
ุทุงุจู", "Access": "ุงููุตูู", "Shortlist & policy": "ุงููุงุฆู
ุฉ ูุงูุณูุงุณุฉ", "Fit score": "ุฏุฑุฌุฉ ุงูู
ูุงุกู
ุฉ",
"Why this fit score was assigned": "ุณุจุจ ุชุญุฏูุฏ ุฏุฑุฌุฉ ุงูู
ูุงุกู
ุฉ", "๐ฏ Why it fits": "๐ฏ ุณุจุจ ุงูู
ูุงุกู
ุฉ", "๐ฅ Audience match": "๐ฅ ู
ูุงุกู
ุฉ ุงูุฌู
ููุฑ", "๐ Submission strategy": "๐ ุงุณุชุฑุงุชูุฌูุฉ ุงูุชูุฏูู
", "๐ Open Access planning": "๐ ุงูุชุฎุทูุท ูููุตูู ุงูู
ูุชูุญ",
"๐ Journal access model": "๐ ูู
ูุฐุฌ ุงููุตูู ุฅูู ุงูู
ุฌูุฉ", "๐ KU APC planning": "๐ ุงูุชุฎุทูุท ูุฏุนู
ุฑุณูู
ุงููุดุฑ ุจุงูุฌุงู
ุนุฉ", "๐ก Sharing policy": "๐ก ุณูุงุณุฉ ุงูู
ุดุงุฑูุฉ", "๐ Recent article evidence": "๐ ุฃุฏูุฉ ู
ู ุงูู
ูุงูุงุช ุงูุญุฏูุซุฉ",
"Open public record search": "ุงูุชุญ ุงูุจุญุซ ูู ุงูุณุฌู ุงูุนุงู
", "Copy": "ูุณุฎ", "Copied!": "ุชู
ุงููุณุฎ!", "Download TXT": "ุชูุฒูู TXT", "Download": "ุชูุฒูู",
};
Object.assign(RB_UI_STRINGS, {"More repositories from re3data.org": "ู
ุณุชูุฏุนุงุช ุฅุถุงููุฉ ู
ู re3data.org", "Not reviewed by KU Library": "ูู
ุชุฑุงุฌุนูุง ู
ูุชุจุฉ ุฌุงู
ุนุฉ ุฎูููุฉ", "Search re3data.org yourself": "ุงุจุญุซ ูู re3data.org ุจููุณู", "re3data record": "ุณุฌู re3data", "Subjects": "ุงูู
ุฌุงูุงุช", "Data upload": "ุฑูุน ุงูุจูุงูุงุช", "Data access": "ุงููุตูู ุฅูู ุงูุจูุงูุงุช", "Certificates": "ุงูุดูุงุฏุงุช", "Country": "ุงูุฏููุฉ", "No additional re3data repositories were found.": "ูู
ููุนุซุฑ ุนูู ู
ุณุชูุฏุนุงุช ุฅุถุงููุฉ ูู re3data.", "The recommendations above come from the KU Library curated registry; use these listings to widen your options and confirm every detail with the repository.": "ุงูุชูุตูุงุช ุฃุนูุงู ู
ุฃุฎูุฐุฉ ู
ู ุงูุณุฌู ุงูู
ุนุชู
ุฏ ูุฏู ู
ูุชุจุฉ ุฌุงู
ุนุฉ ุฎูููุฉุ ุงุณุชุฎุฏู
ูุฐู ุงูููุงุฆู
ูุชูุณูุน ุฎูุงุฑุงุชู ูุชุญูู ู
ู ูู ุงูุชูุงุตูู ูุฏู ุงูู
ุณุชูุฏุน."});
Object.assign(RB_UI_STRINGS, {"Journal website": "ู
ููุน ุงูู
ุฌูุฉ", "Author guidelines": "ุฅุฑุดุงุฏุงุช ุงูู
ุคูููู", "Find author guidelines": "ุงูุจุญุซ ุนู ุฅุฑุดุงุฏุงุช ุงูู
ุคูููู", "Not available": "ุบูุฑ ู
ุชุงุญ", "Metadata only": "ุจูุงูุงุช ูุตููุฉ ููุท", "Checked": "ุชู
ุงูุชุญูู", "Curated": "ู
ุฎุชุงุฑ ู
ู ุงูุณุฌู", "Source": "ุงูู
ุตุฏุฑ", "Journal-specific instructions": "ุฅุฑุดุงุฏุงุช ุฎุงุตุฉ ุจุงูู
ุฌูุฉ", "General publisher guidance": "ุฅุฑุดุงุฏุงุช ุนุงู
ุฉ ูููุงุดุฑ", "Journal links": "ุฑูุงุจุท ุงูู
ุฌูุฉ", "Visit repository": "ุฒูุงุฑุฉ ุงูู
ุณุชูุฏุน", "Quartile by field": "ุงูุฑุจุน ุญุณุจ ุงูุชุฎุตุต", "Checking official publisher pageโฆ": "ุฌุงุฑู ูุญุต ุตูุญุฉ ุงููุงุดุฑ ุงูุฑุณู
ูุฉโฆ", "Author guidance unavailable; use the journal website if available.": "ุฅุฑุดุงุฏุงุช ุงูู
ุคูููู ุบูุฑ ู
ุชุงุญุฉุ ุงุณุชุฎุฏู
ู
ููุน ุงูู
ุฌูุฉ ุฅู ุชููุฑ.", "The lookup failed. The journal website remains available; try again later.": "ุชุนุฐุฑ ุงูุจุญุซ. ูุจูู ู
ููุน ุงูู
ุฌูุฉ ู
ุชุงุญูุงุ ุญุงูู ูุงุญููุง.", "Each quartile belongs to its own category. SCImago SJR is separate from Scopus CiteScore.": "ูู ุฑุจุน ูุฎุต ูุฆุชู ููุท. ุชุตููู SCImago SJR ู
ููุตู ุนู Scopus CiteScore."});
function rbText(text) { return getLanguage() === "arabic" ? (RB_UI_STRINGS[text] || text) : text; }
function rbApplyUiLanguage(scope = RB_ROOT) {
if (!scope) return;
const isArabic = getLanguage() === "arabic";
scope.querySelectorAll("select option").forEach(option => {
if (!option.dataset.rbEnglish) { option.dataset.rbEnglish = option.textContent; if (!option.hasAttribute("value")) option.value = option.textContent; }
const next = isArabic ? (RB_UI_STRINGS[option.dataset.rbEnglish] || option.dataset.rbEnglish) : option.dataset.rbEnglish;
if (option.textContent !== next) option.textContent = next;
});
const walker = document.createTreeWalker(scope, NodeFilter.SHOW_TEXT);
while (walker.nextNode()) {
const node = walker.currentNode;
if (!node.parentElement || node.parentElement.closest("script, style, textarea, option, pre, .ds-body, .rb-bubble, .rw-title, .rw-authors")) continue;
const original = RB_UI_ORIGINAL_TEXT.get(node) ?? node.nodeValue;
const trimmed = original.trim();
if (!Object.prototype.hasOwnProperty.call(RB_UI_STRINGS, trimmed)) continue;
RB_UI_ORIGINAL_TEXT.set(node, original);
const value = isArabic ? original.replace(trimmed, RB_UI_STRINGS[trimmed]) : original;
if (node.nodeValue !== value) node.nodeValue = value;
}
}
function rbTrapFocus(container, event) {
const controls = Array.from(container.querySelectorAll('button:not([disabled]), a[href], input:not([disabled]), textarea:not([disabled]), select:not([disabled]), [tabindex="0"]')).filter(element => !element.hidden && element.getClientRects().length);
if (!controls.length) { event.preventDefault(); container.focus(); return; }
const first = controls[0], last = controls[controls.length - 1];
if (event.shiftKey && (document.activeElement === first || document.activeElement === container)) { event.preventDefault(); last.focus(); }
else if (!event.shiftKey && (document.activeElement === last || document.activeElement === container)) { event.preventDefault(); first.focus(); }
}
function rbInitialiseAccessibility() {
const tabs = Array.from(RB_ROOT.querySelectorAll(".tab-btn"));
RB_ROOT.querySelector(".tabs-inner")?.setAttribute("role", "tablist");
RB_ROOT.querySelector(".tabs-inner")?.setAttribute("aria-labelledby", "rb-functions-title");
tabs.forEach(button => {
button.id = `rb-tab-${button.dataset.tab}`;
button.setAttribute("role", "tab"); button.setAttribute("aria-controls", `tab-${button.dataset.tab}`);
const panel = document.getElementById(`tab-${button.dataset.tab}`);
panel?.setAttribute("role", "tabpanel"); panel?.setAttribute("aria-labelledby", button.id);
button.addEventListener("keydown", event => rbTabKeys(event, tabs, current => activateTab(current.dataset.tab)));
});
RB_ROOT.querySelectorAll(".mode-btn").forEach(button => {
button.id = `rb-mode-${button.dataset.mode}`;
button.setAttribute("aria-controls", `mode-${button.dataset.mode}`);
const panel = document.getElementById(`mode-${button.dataset.mode}`);
panel?.setAttribute("role", "region"); panel?.setAttribute("aria-labelledby", button.id);
});
["journal", "subject", "license", "repo"].forEach(prefix => {
const progress = document.getElementById(`${prefix}-progress`);
progress?.setAttribute("role", "status"); progress?.setAttribute("aria-live", "polite"); progress?.setAttribute("aria-atomic", "true");
document.getElementById(`${prefix}-results`)?.setAttribute("aria-busy", "false");
});
["rb-chat-launcher", "rb-mobile-chat-bar"].forEach(id => { const button = document.getElementById(id); button?.setAttribute("aria-controls", "rb-chat-panel"); button?.setAttribute("aria-expanded", "false"); });
const backdrop = document.getElementById("rb-service-intro-backdrop"); if (backdrop) backdrop.inert = true;
const embargo = document.getElementById("r-embargo"), months = document.getElementById("r-embargo-months");
embargo?.addEventListener("change", () => { if (months) { months.disabled = embargo.value !== "Yes"; if (months.disabled) months.value = ""; } });
document.getElementById("repo-form")?.addEventListener("reset", () => { if (months) months.disabled = true; });
["j-abstract", "r-desc", "l-notes", "r-notes"].forEach(id => {
const input = document.getElementById(id); if (!input) return;
const counter = document.createElement("span"); counter.id = `${id}-count`; counter.className = "rb-character-count";
input.insertAdjacentElement("afterend", counter); input.setAttribute("aria-describedby", `${input.getAttribute("aria-describedby") || ""} ${counter.id}`.trim());
const update = () => { counter.textContent = `${input.value.length} / ${input.maxLength}`; };
input.addEventListener("input", update); input.form?.addEventListener("reset", () => setTimeout(update, 0)); update();
});
rbShowHome(false);
}
function rbTabKeys(event, tabs, activate) {
if (!["ArrowLeft", "ArrowRight", "Home", "End"].includes(event.key)) return;
event.preventDefault(); const index = tabs.indexOf(event.currentTarget);
const rtl = RB_ROOT.dir === "rtl", step = (event.key === "ArrowRight" ? 1 : -1) * (rtl ? -1 : 1);
const next = event.key === "Home" ? 0 : event.key === "End" ? tabs.length - 1 : (index + step + tabs.length) % tabs.length;
activate(tabs[next]); tabs[next].focus();
}
// Article and journal policy checks have separate entry screens.
function rbSetShareMode(mode, focus = false) {
const next = ["article", "journal"].includes(mode) ? mode : "";
rbCancelRequest("license");
rbCancelRequest("journal-lookup");
clearTimeout(_lookupTimer); _lookupTimer = null;
rbResetFormUi("license");
RB_ROOT.dataset.rbShareMode = next;
document.getElementById("rb-share-choices").hidden = Boolean(next);
document.getElementById("rb-share-work").hidden = !next;
document.querySelector("#license-form .doi-primary").hidden = next !== "article";
document.getElementById("rb-share-journal-fields").hidden = next !== "journal";
const title = document.getElementById("rb-share-form-title");
title.textContent = rbText(next === "journal" ? "Check a journal's sharing policy" : "Check a specific article");
rbUpdateDataNotice();
if (focus) rbFocusWorkflow(next ? title : document.getElementById("rb-share-choice-title"));
}
function rbShowShareChoices(focus = false) { rbSetShareMode("", focus); }
function rbInitSharingChoices() {
RB_ROOT.querySelectorAll(".rb-share-choice").forEach(button => {
button.addEventListener("click", () => rbSetShareMode(button.dataset.shareMode, true));
});
document.getElementById("rb-share-back")?.addEventListener("click", () => rbShowShareChoices(true));
}
// Clear all returns to the service chooser without reloading LibGuides.
function rbResetFormUi(prefix) {
hideProgress(`${prefix}-progress`);
document.getElementById(`${prefix}-progress`)?.replaceChildren();
const results = document.getElementById(`${prefix}-results`);
if (results) {
results.replaceChildren(); results.classList.add("hidden");
results.setAttribute("aria-busy", "false");
}
const form = document.getElementById(`${prefix}-form`);
const labels = {
subject: '<span id="btn-subject-submit">Find verified journals</span>',
journal: '<span aria-hidden="true">๐</span> <span id="btn-journal-submit">Find best-fit journals</span>',
license: '<span aria-hidden="true">๐ก</span> <span>Check Green OA policy</span>',
repo: '<span aria-hidden="true">๐</span> <span id="btn-repo-submit">Find best repositories</span>',
};
form?.querySelectorAll('.btn-primary[type="submit"]').forEach(button => {
button.disabled = false;
delete button.dataset.requestGeneration;
button.innerHTML = labels[prefix] || button.innerHTML;
});
form?.querySelectorAll("details").forEach(details => { details.open = false; });
if (form) rbApplyUiLanguage(form);
}
function rbClearAll() {
rbCancelAllRequests();
clearTimeout(_lookupTimer); _lookupTimer = null;
RB_DISCOVERY_STATE.generation += 1;
RB_DISCOVERY_STATE.mode = "";
RB_DISCOVERY_STATE.result = null;
RB_DISCOVERY_STATE.all = [];
RB_DISCOVERY_STATE.byKey.clear();
RB_DISCOVERY_STATE.selected.clear();
RB_DISCOVERY_STATE.container = null;
RB_DISCOVERY_STATE.context = { funder: "", intended_repository: "Institutional repository" };
RB_COVER_LETTER_PAYLOADS.clear();
RB_RELATED_WORK_PAYLOADS.clear();
RB_SUBJECT_JOURNAL_PAYLOADS.clear();
delete window.ResearchBee.lastManuscript;
["subject", "journal", "license", "repo"].forEach(prefix => {
document.getElementById(`${prefix}-form`)?.reset();
rbResetFormUi(prefix);
});
window.ResearchBee.clearAutofill();
document.getElementById("analyse-notice")?.remove();
RB_ROOT.querySelectorAll("details").forEach(details => { details.open = false; });
RB_ROOT.querySelectorAll("[data-autofilled]").forEach(field => { delete field.dataset.autofilled; });
window.ResearchBee.resetChat?.();
document.getElementById("rb-service-intro-close")?.click();
rbShowHome(true);
}
window.ResearchBee.clearAll = rbClearAll;
function rbInitResetControls() {
document.getElementById("rb-clear-all")?.addEventListener("click", rbClearAll);
["subject", "journal"].forEach(prefix => {
document.getElementById(`${prefix}-form`)?.addEventListener("reset", () => {
rbCancelRequest("discovery");
RB_DISCOVERY_STATE.generation += 1;
rbResetFormUi(prefix);
});
});
}
// The repository payload stays unchanged; only one form section is visible.
function rbShowRepositoryIntro(focus = false) {
RB_ROOT.dataset.rbRepoStep = "";
const intro = document.getElementById("rb-repo-intro");
if (intro) intro.hidden = false;
const form = document.getElementById("repo-form");
if (form) form.hidden = true;
const back = document.getElementById("rb-repo-back-wrap");
if (back) back.hidden = true;
["repo-progress", "repo-results"].forEach(id => {
const element = document.getElementById(id); if (element) element.hidden = true;
});
rbUpdateDataNotice();
if (focus) rbFocusWorkflow(document.getElementById("rb-repo-intro-title"));
}
function rbSetRepositoryStep(step, focus = false) {
const next = String(step) === "2" ? "2" : "1";
RB_ROOT.dataset.rbRepoStep = next;
const intro = document.getElementById("rb-repo-intro");
if (intro) intro.hidden = true;
const form = document.getElementById("repo-form");
if (form) form.hidden = false;
const back = document.getElementById("rb-repo-back-wrap");
if (back) back.hidden = false;
["1", "2"].forEach(number => {
const section = document.getElementById(`rb-repo-stage-${number}`);
if (section) section.hidden = number !== next;
});
["repo-progress", "repo-results"].forEach(id => {
const element = document.getElementById(id); if (element) element.hidden = next !== "2";
});
const content = next === "1"
? ["Step 1 of 2", "Describe your dataset", "Enter the basic details so ResearchBee can identify suitable repositories."]
: ["Step 2 of 2", "Set your sharing requirements", "Review access, licences and deposit requirements, then find suitable repositories."];
["rb-repo-step-label", "rb-repo-step-title", "rb-repo-step-description"].forEach((id, index) => {
const element = document.getElementById(id); if (element) element.textContent = content[index];
});
rbApplyUiLanguage(form);
rbUpdateDataNotice();
if (focus) rbFocusWorkflow(document.getElementById("rb-repo-step-title"));
}
function rbValidateRepositoryFields(scope) {
const invalid = Array.from(scope?.querySelectorAll("input, select, textarea") || [])
.find(field => field.willValidate && !field.validity.valid);
if (!invalid) return true;
rbSetRepositoryStep(invalid.closest("#rb-repo-stage-1") ? "1" : "2");
invalid.reportValidity();
invalid.focus();
return false;
}
function rbAdvanceRepositoryStep() {
if (rbValidateRepositoryFields(document.getElementById("rb-repo-stage-1"))) rbSetRepositoryStep("2", true);
}
function rbInitialiseRepositorySteps() {
const form = document.getElementById("repo-form");
if (!form) return;
document.getElementById("rb-repo-start")?.addEventListener("click", () => rbSetRepositoryStep("1", true));
document.getElementById("rb-repo-next")?.addEventListener("click", rbAdvanceRepositoryStep);
document.getElementById("rb-repo-previous")?.addEventListener("click", () => rbSetRepositoryStep("1", true));
document.getElementById("rb-repo-back-options")?.addEventListener("click", () => rbShowRepositoryIntro(true));
form.addEventListener("keydown", event => {
if (event.key !== "Enter" || event.isComposing || event.target.tagName === "TEXTAREA") return;
if (RB_ROOT.dataset.rbRepoStep !== "1" || !event.target.matches("input, select")) return;
event.preventDefault(); rbAdvanceRepositoryStep();
});
// Capture runs before the existing repository submission handler.
form.addEventListener("submit", event => {
if (RB_ROOT.dataset.rbRepoStep !== "2") {
event.preventDefault(); event.stopImmediatePropagation();
if (RB_ROOT.dataset.rbRepoStep === "1") rbAdvanceRepositoryStep();
return;
}
if (!rbValidateRepositoryFields(form)) {
event.preventDefault(); event.stopImmediatePropagation();
}
}, true);
form.addEventListener("reset", () => rbShowRepositoryIntro(false));
rbShowRepositoryIntro(false);
}
window.ResearchBee.showRepositoryIntro = rbShowRepositoryIntro;
window.ResearchBee.setRepositoryStep = rbSetRepositoryStep;
// โโ Init โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
rbInitialiseAccessibility();
applyLanguage(getLanguage());
journalTab();
subjectTab();
licenseTab();
repositoryTab();
rbInitResetControls();
rbInitialiseRepositorySteps();
rbInitSharingChoices();
})();
</script> |